//
// sub_100300330 from 0x100300330 to 0x10030035c (44 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processStateObjects @ 0x10028645c
//
// This function is hookable on this platform (idp: arm, 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:03:05 +0000
//
__int64 __fastcall sub_100300330(__int64 result, int a2)
{
if ( *(_DWORD *)(result + 1348) >= a2 )
{
if ( (*(_BYTE *)(result + 1347) & 1) != 0 )
return result;
}
else
{
*(_BYTE *)(result + 1347) = 0;
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1832LL))(result);
}