//
// sub_100488D18 from 0x100488d18 to 0x100488e04 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828050
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100488D18(__int64 a1, unsigned __int64 a2)
{
__int64 v4; // x20
unsigned __int64 v5; // x23
void (*v6)(void); // x8
unsigned __int64 v7; // x21
__int64 v8; // x22
void *v9; // x0
void (__fastcall *v10)(__int64); // x8
v4 = sub_10049A9D8();
if ( !(_DWORD)v4 )
{
v5 = HIDWORD(a2);
v6 = *(void (**)(void))(*(_QWORD *)(a1 + 792) + 248LL);
v7 = HIDWORD(a2);
if ( v6 )
{
v6();
v7 = v5;
}
v8 = *(_QWORD *)(a1 + 792);
*(_DWORD *)(v8 + 344) = 0;
v9 = *(void **)(v8 + 320);
if ( v9 )
bzero(v9, *(unsigned int *)(v8 + 340));
v10 = *(void (__fastcall **)(__int64))(v8 + 176);
if ( v10 )
v10(v8);
sub_10045FB3C(*(_QWORD *)(a1 + 792), 0, v7, 2);
*(_DWORD *)(a1 + 728) = v7;
}
return v4;
}