//
// GJWriteMessagePopup::onClosePopup from 0x100297440 to 0x1002974e1 (161 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b02ad0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:51 +0000
//
__int64 __fastcall GJWriteMessagePopup::onClosePopup(_BYTE *a1, __int64 a2)
{
__int64 result; // rax
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1072LL))(a2, 0);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 528LL))(a2, 1);
if ( *((_QWORD *)a1 + 98) != a2 )
{
if ( a1[792] != 1 )
return result;
goto LABEL_3;
}
*((_QWORD *)a1 + 98) = 0;
if ( a1[792] == 1 )
{
LABEL_3:
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 88) + 1160LL))(*((_QWORD *)a1 + 88), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 89) + 1160LL))(*((_QWORD *)a1 + 89), 0);
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}
return result;
}