--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>
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#include "classes.h"
|
|
|
|
// 009c3ab0
|
|
void PopupManager::close(int *popupId, int *result)
|
|
{
|
|
int *piVar1;
|
|
int *node;
|
|
int *this_00;
|
|
int64_t elapsedMs;
|
|
int *listHead;
|
|
|
|
if (*popupId != -1) {
|
|
piVar1 = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 8));
|
|
(**(code **)(*piVar1 + 0xc))(0xffffffff);
|
|
this_00 = GHIDRA_CAST<int *>(0x0);
|
|
listHead = *GHIDRA_CAST<int **>(this);
|
|
node = GHIDRA_CAST<int *>(*listHead);
|
|
if (node != listHead) {
|
|
while (this_00 = GHIDRA_CAST<int *>(node[2]), *this_00 != *popupId) {
|
|
node = GHIDRA_CAST<int *>(*node);
|
|
if (node == listHead) {
|
|
(**(code **)(*piVar1 + 0x10))();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
(**(code **)(*piVar1 + 0x10))();
|
|
if ((this_00 != GHIDRA_CAST<int *>(0x0)) && (this_00[1] < 3)) {
|
|
elapsedMs = (GHIDRA_CAST<Popup *>((this_00)))->Popup::get_elapsed_ms();
|
|
if ((GHIDRA_INT(((uint64_t)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<Popup *>((this_00)))->Popup::set_state(3);
|
|
}
|
|
}
|
|
return;
|
|
}
|