--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
107 lines
3.3 KiB
C++
107 lines
3.3 KiB
C++
#include "classes.h"
|
|
|
|
// 009b7500
|
|
void PopupWindow::hide()
|
|
{
|
|
int fieldOffset;
|
|
uint8_t *animNameChar;
|
|
uint32_t compareResult;
|
|
char *dissapearChar;
|
|
int iVar1;
|
|
int animNameOffset;
|
|
bool isLess;
|
|
int soundId;
|
|
uint8_t ch;
|
|
Manager *manager;
|
|
|
|
manager = g_manager;
|
|
if (*GHIDRA_CAST<int *>(this) != 0) {
|
|
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
|
|
animNameOffset = 0x174;
|
|
fieldOffset = 0x174;
|
|
if (iVar1 != 1) {
|
|
fieldOffset = 0x60;
|
|
}
|
|
if (*GHIDRA_CAST<int *>((fieldOffset + GHIDRA_INT(this))) != 0) {
|
|
fieldOffset = 0x184;
|
|
if (iVar1 != 1) {
|
|
fieldOffset = 0x70;
|
|
}
|
|
if (*GHIDRA_CAST<char *>((fieldOffset + GHIDRA_INT(this))) == '\0') {
|
|
if (iVar1 != 1) {
|
|
animNameOffset = 0x60;
|
|
}
|
|
animNameChar = *GHIDRA_CAST<uint8_t **>((animNameOffset + GHIDRA_INT(this)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((animNameChar + 0x14))) {
|
|
animNameChar = *GHIDRA_CAST<uint8_t **>(animNameChar);
|
|
}
|
|
dissapearChar = "Dissapear";
|
|
do {
|
|
ch = *animNameChar;
|
|
isLess = ch < (uint8_t)*dissapearChar;
|
|
if (ch != *dissapearChar) {
|
|
LAB_009b75c6:
|
|
compareResult = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009b75cb;
|
|
}
|
|
if (ch == 0) break;
|
|
ch = animNameChar[1];
|
|
isLess = ch < (uint8_t)dissapearChar[1];
|
|
if (ch != dissapearChar[1]) goto LAB_009b75c6;
|
|
animNameChar = animNameChar + 2;
|
|
dissapearChar = dissapearChar + 2;
|
|
} while (ch != 0);
|
|
compareResult = 0;
|
|
LAB_009b75cb:
|
|
if (compareResult == 0) {
|
|
return;
|
|
}
|
|
}
|
|
else {
|
|
if (iVar1 != 1) {
|
|
animNameOffset = 0x60;
|
|
}
|
|
animNameChar = *GHIDRA_CAST<uint8_t **>((animNameOffset + GHIDRA_INT(this)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((animNameChar + 0x14))) {
|
|
animNameChar = *GHIDRA_CAST<uint8_t **>(animNameChar);
|
|
}
|
|
dissapearChar = "Dissapear";
|
|
do {
|
|
ch = *animNameChar;
|
|
isLess = ch < (uint8_t)*dissapearChar;
|
|
if (ch != *dissapearChar) {
|
|
LAB_009b7580:
|
|
compareResult = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009b7585;
|
|
}
|
|
if (ch == 0) break;
|
|
ch = animNameChar[1];
|
|
isLess = ch < (uint8_t)dissapearChar[1];
|
|
if (ch != dissapearChar[1]) goto LAB_009b7580;
|
|
animNameChar = animNameChar + 2;
|
|
dissapearChar = dissapearChar + 2;
|
|
} while (ch != 0);
|
|
compareResult = 0;
|
|
LAB_009b7585:
|
|
if (compareResult == 0) {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
soundId = 0x12;
|
|
seed_fart_sound_override(&soundId);
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(soundId,0.7,2,0,1.0,0.0);
|
|
iVar1 = 0x140;
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 1) {
|
|
iVar1 = 0x2c;
|
|
}
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((iVar1 + GHIDRA_INT(this))))))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Dissapear"),0);
|
|
iVar1 = 400;
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 1) {
|
|
iVar1 = 0x7c;
|
|
}
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((iVar1 + GHIDRA_INT(this))))))->AnimationState::SetAnimationData((void *)0x0);
|
|
}
|
|
return;
|
|
}
|