//
// sub_100930920 from 0x100930920 to 0x1009309b0 (144 bytes)
//
// 2 xrefs:
// > sub_10092F070 @ 0x10092f16a
// > sub_100930F30 @ 0x100930f4c
//
// 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:38:24 +0000
//
__int64 __fastcall sub_100930920(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // rax
int v6; // esi
int v7; // r8d
unsigned int v8; // eax
unsigned int v9; // r14d
unsigned __int8 v11[16]; // [rsp+10h] [rbp-30h] BYREF
void *__p; // [rsp+20h] [rbp-20h]
v5 = GameLevelManager::sharedState();
v6 = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL);
if ( a3 <= 0 )
v7 = -1;
else
v7 = *(_DWORD *)(a1 + 936);
*(_WORD *)v11 = 0;
LOBYTE(v8) = sub_100572E00(v5, v6, a2, a3, v7, 0, v11);
v9 = v8;
if ( (v11[0] & 1) != 0 )
operator delete(__p);
if ( (_BYTE)v9 )
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 672;
return v9;
}