//
// sub_100158700 from 0x100158700 to 0x10015871f (31 bytes)
//
// 2 xrefs:
// > sub_1008AA970 @ 0x1008aaa3f
// > sub_1008AA970 @ 0x1008aaef5
//
// 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:25:05 +0000
//
__int64 __fastcall sub_100158700(__int64 a1)
{
__int64 (__fastcall **v1)(_QWORD); // rax
v1 = (__int64 (__fastcall **)(_QWORD))(a1 + 24);
if ( !*(_QWORD *)(a1 + 32) )
v1 = (__int64 (__fastcall **)(_QWORD))(a1 + 72);
return (*v1)(*(_QWORD *)(a1 + 56));
}