//
// sub_10053F0D0 from 0x10053f0d0 to 0x10053f134 (100 bytes)
//
// 0 xrefs:
//
// 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:31:56 +0000
//
__int64 __fastcall sub_10053F0D0(double a1, __int64 a2, int a3)
{
__int64 v3; // r15
__int64 v4; // r14
unsigned int v5; // r12d
__int64 v6; // rax
v3 = *(_QWORD *)(LocalLevelManager::sharedState(a1) + 368);
v4 = 0;
if ( (unsigned int)sub_1007FEF90(v3) )
{
v5 = 0;
while ( 1 )
{
v6 = sub_1007FEFE0(v3, v5);
if ( *(_DWORD *)(v6 + 548) == a3 )
break;
if ( ++v5 >= (unsigned int)sub_1007FEF90(v3) )
return v4;
}
return v6;
}
return v4;
}