//
// sub_94B94 from 0x94b94 to 0x94bf0 (92 bytes)
//
// 2 xrefs:
// > sub_952EC @ 0x95450
// > sub_952EC @ 0x95468
//
// 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 12:14:23 +0000
//
__int64 __fastcall sub_94B94(__int64 a1)
{
__int64 v1; // x8
int v2; // w9
int v3; // w10
int v4; // w10
v1 = *(_QWORD *)(a1 + 8);
v2 = *(_DWORD *)(a1 + 256);
v3 = *(_DWORD *)(v1 + 64);
if ( v3 < v2 )
{
v3 += 4 * *(unsigned __int8 *)(a1 + 260);
if ( v3 > v2 )
v3 = *(_DWORD *)(a1 + 256);
*(_DWORD *)(v1 + 64) = v3;
v2 = *(_DWORD *)(a1 + 256);
}
if ( v3 > v2 )
{
v4 = v3 - 4 * *(unsigned __int8 *)(a1 + 260);
if ( v4 >= v2 )
v2 = v4;
*(_DWORD *)(v1 + 64) = v2;
}
*(_BYTE *)(v1 + 60) |= 1u;
return 0;
}