//
// SelectArtLayer::onClose from 0x14045c240 to 0x14045c282 (66 bytes)
//
// 2 xrefs:
// > SelectArtLayer::init @ 0x14045bb84
// > ??> @ 0x140927d1c
//
// 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:32:32 +0000
//
__int64 __fastcall SelectArtLayer::onClose(_QWORD *a1)
{
__int64 v2; // rdx
__int64 result; // rax
__int64 (__fastcall ***v4)(_QWORD, _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, _QWORD *))a1[87];
if ( v4 )
return (**v4)(v4, a1);
return result;
}