#include "classes.h" // 009c3ab0 void PopupManager::close(int *popupId, int *result) { int *piVar1; int *node; int *this_00; longlong elapsedMs; int *listHead; if (*popupId != -1) { piVar1 = GHIDRA_CAST((GHIDRA_INT(this) + 8)); (**(code **)(*piVar1 + 0xc))(0xffffffff); this_00 = GHIDRA_CAST(0x0); listHead = *GHIDRA_CAST(this); node = GHIDRA_CAST(*listHead); if (node != listHead) { while (this_00 = GHIDRA_CAST(node[2]), *this_00 != *popupId) { node = GHIDRA_CAST(*node); if (node == listHead) { (**(code **)(*piVar1 + 0x10))(); return; } } } (**(code **)(*piVar1 + 0x10))(); if ((this_00 != GHIDRA_CAST(0x0)) && (this_00[1] < 3)) { elapsedMs = (GHIDRA_CAST((this_00)))->Popup::get_elapsed_ms(); if ((GHIDRA_INT(((ulonglong)elapsedMs >> 0x20)) == 0) && (GHIDRA_UINT(elapsedMs) < GHIDRA_UINT(this_00[0x15]))) { this_00[6] = *result; return; } this_00[6] = -0x1010102; if ((code *)this_00[0x28] != (code *)0x0) { (*(code *)this_00[0x28])(result,this_00[0x29]); } (GHIDRA_CAST((this_00)))->Popup::set_state(3); } } return; }