//
// RateDemonLayer::onClose from 0x14055dad0 to 0x14055db0f (63 bytes)
//
// 2 xrefs:
// > RateDemonLayer::init @ 0x14055d433
// > ??> @ 0x14092c204
//
// 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:13 +0000
//
__int64 __fastcall RateDemonLayer::onClose(_QWORD *a1)
{
__int64 v2; // rdx
__int64 result; // rax
__int64 (__fastcall ***v4)(_QWORD); // rcx
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
LOBYTE(v2) = 1;
result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v2);
v4 = (__int64 (__fastcall ***)(_QWORD))a1[92];
if ( v4 )
return (**v4)(v4);
return result;
}