//
// RateStarsLayer::onClosePopup from 0x14055f240 to 0x14055f2bf (127 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d9ec0
// > ??> @ 0x14092c300
//
// 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 11:34:14 +0000
//
__int64 __fastcall RateStarsLayer::onClosePopup(__int64 a1, __int64 a2)
{
__int64 v4; // rdx
__int64 result; // rax
bool v6; // zf
__int64 v7; // rdx
__int64 (__fastcall ***v8)(_QWORD); // rcx
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 992LL))(a2, 0);
LOBYTE(v4) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 520LL))(a2, v4);
v6 = *(_BYTE *)(a1 + 16) == 0;
*(_QWORD *)(a1 + 64) = 0;
if ( !v6 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 664) + 992LL))(a1 - 664, 0);
LOBYTE(v7) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 664) + 520LL))(a1 - 664, v7);
v8 = *(__int64 (__fastcall ****)(_QWORD))(a1 + 88);
if ( v8 )
return (**v8)(v8);
}
return result;
}