//
// RateDemonLayer::onClose from 0x100270e30 to 0x100270e73 (67 bytes)
//
// 1 xrefs:
// > RateDemonLayer::init @ 0x100270c40
//
// 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:37 +0000
//
__int64 __fastcall RateDemonLayer::onClose(_QWORD *a1)
{
__int64 result; // rax
__int64 (__fastcall ***v2)(_QWORD); // rdi
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1);
v2 = (__int64 (__fastcall ***)(_QWORD))a1[92];
if ( v2 )
return (**v2)(v2);
return result;
}