//
// sub_10045F2B0 from 0x10045f2b0 to 0x10045f33c (140 bytes)
//
// 1 xrefs:
// > GJPathsLayer::init @ 0x10045f038
//
// 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:05:28 +0000
//
__int64 __fastcall sub_10045F2B0(__int64 a1, __int64 a2)
{
__int64 v3; // x19
_BYTE *v4; // x0
__int64 v5; // x0
__int64 result; // x0
__int64 v7; // x0
__int64 v8; // x0
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (_BYTE *)sub_10045F390(v3, a1);
v4[596] = 1;
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v4 + 1312LL))(v4);
v5 = GameStatsManager::sharedState();
result = sub_1003CE198(v5, (unsigned int)(v3 + 29));
if ( (int)result >= 1000 )
{
v7 = GameStatsManager::sharedState();
result = sub_1003D4FA8(v7, v3);
if ( (result & 1) == 0 )
{
v8 = sub_10045F414(v3);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
}
}
return result;
}