//
// sub_97B596 from 0x97b596 to 0x97b5f0 (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:06:03 +0000
//
int __fastcall sub_97B596(unsigned __int8 *a1, unsigned __int8 *a2)
{
unsigned int v2; // r3
int v3; // lr
unsigned int v4; // r4
unsigned __int8 *v5; // r3
unsigned int v6; // r5
unsigned int v7; // r2
int v8; // r12
unsigned __int8 *v9; // r0
unsigned int v10; // r2
unsigned __int8 *v11; // r1
int result; // r0
v2 = *a1;
v3 = v2 & 1;
if ( (v2 & 1) != 0 )
v4 = *((_DWORD *)a1 + 1);
else
v4 = v2 >> 1;
v5 = a2 + 4;
v6 = *((_DWORD *)a2 + 1);
v7 = *a2;
v8 = v7 & 1;
if ( (v7 & 1) == 0 )
v6 = v7 >> 1;
if ( v3 )
v9 = *((unsigned __int8 **)a1 + 2);
else
v9 = a1 + 4;
v10 = v4;
if ( v6 < v4 )
v10 = v6;
if ( !v10 )
goto LABEL_15;
v11 = *((unsigned __int8 **)a2 + 2);
if ( !v8 )
v11 = v5;
result = sub_998A90(v9, v11);
if ( !result )
{
LABEL_15:
result = v6 < v4;
if ( v4 < v6 )
return -1;
}
return result;
}