//
// sub_F8BA2C from 0xf8ba2c to 0xf8bb0c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x1536a80
//
// 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 13:13:56 +0000
//
__int64 __fastcall sub_F8BA2C(__int64 result, __int64 a2, __int64 a3, __int64 a4, int a5, char a6)
{
__int64 v7; // x8
__int64 v11; // x9
__int64 v12; // x9
int v13; // w8
int v14; // w8
v7 = *(_QWORD *)(a2 + 16);
if ( (a6 & 1) != 0 )
{
result = strcmp(*(const char **)(result + 8), *(const char **)(v7 + 8));
if ( (_DWORD)result )
return result;
}
else if ( result != v7 )
{
return result;
}
v11 = *(_QWORD *)(a2 + 8);
*(_BYTE *)(a2 + 77) = 1;
if ( v11 == a4 )
{
v12 = *(_QWORD *)(a2 + 32);
*(_BYTE *)(a2 + 76) = 1;
if ( !v12 )
{
*(_QWORD *)(a2 + 32) = a3;
*(_DWORD *)(a2 + 48) = a5;
*(_DWORD *)(a2 + 60) = 1;
if ( a5 != 1 )
return result;
goto LABEL_14;
}
if ( v12 != a3 )
{
v13 = *(_DWORD *)(a2 + 60);
*(_BYTE *)(a2 + 78) = 1;
*(_DWORD *)(a2 + 60) = v13 + 1;
return result;
}
v14 = *(_DWORD *)(a2 + 48);
if ( v14 == 2 )
{
v14 = a5;
*(_DWORD *)(a2 + 48) = a5;
}
if ( v14 == 1 )
{
LABEL_14:
if ( *(_DWORD *)(a2 + 72) == 1 )
*(_BYTE *)(a2 + 78) = 1;
}
}
return result;
}