#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(this) != 0) { iVar1 = *GHIDRA_CAST((GHIDRA_CAST(this) + 4)); animNameOffset = 0x174; fieldOffset = 0x174; if (iVar1 != 1) { fieldOffset = 0x60; } if (*GHIDRA_CAST((fieldOffset + GHIDRA_INT(this))) != 0) { fieldOffset = 0x184; if (iVar1 != 1) { fieldOffset = 0x70; } if (*GHIDRA_CAST((fieldOffset + GHIDRA_INT(this))) == '\0') { if (iVar1 != 1) { animNameOffset = 0x60; } animNameChar = *GHIDRA_CAST((animNameOffset + GHIDRA_INT(this))); if (0xf < *GHIDRA_CAST((animNameChar + 0x14))) { animNameChar = *GHIDRA_CAST(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((animNameOffset + GHIDRA_INT(this))); if (0xf < *GHIDRA_CAST((animNameChar + 0x14))) { animNameChar = *GHIDRA_CAST(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((&manager->_sfxManager)))->SoundEffects::Play(soundId,0.7,2,0,1.0,0.0); iVar1 = 0x140; if (*GHIDRA_CAST((GHIDRA_CAST(this) + 4)) != 1) { iVar1 = 0x2c; } (GHIDRA_CAST((GHIDRA_CAST((iVar1 + GHIDRA_INT(this))))))->ANM2::Play(GHIDRA_CAST("Dissapear"),0); iVar1 = 400; if (*GHIDRA_CAST((GHIDRA_CAST(this) + 4)) != 1) { iVar1 = 0x7c; } (GHIDRA_CAST((GHIDRA_CAST((iVar1 + GHIDRA_INT(this))))))->AnimationState::SetAnimationData((void *)0x0); } return; }