//
// GJPathSprite::updateState from 0x10045f230 to 0x10045f2b0 (128 bytes)
//
// 2 xrefs:
// > GJPathsLayer::init @ 0x10045f050
// > sub_10045F6C4 @ 0x10045fd1c
//
// 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 GJPathSprite::updateState(__int64 a1)
{
__int64 v2; // x0
int v3; // w20
__int64 v4; // x0
v2 = GameStatsManager::sharedState();
if ( (GameStatsManager::isItemUnlocked(v2, 12, (unsigned int)(*(_DWORD *)(a1 + 596) + 5)) & 1) == 0 )
return sub_10046178C(a1);
v3 = *(_DWORD *)(a1 + 596);
v4 = GameStatsManager::sharedState();
if ( (int)vcvtms_s32_f32((float)(int)sub_1003CE198(v4, (unsigned int)(v3 + 29)) / 100.0) < 10 )
return sub_1004623B0(a1);
else
return sub_100462034(a1);
}