//
// sub_F8B61C from 0xf8b61c to 0xf8b714 (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x1536a88
//
// 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_F8B61C(__int64 result, __int64 a2, __int64 a3, int a4, char a5)
{
__int64 v6; // x8
const char *v9; // x22
int v10; // w8
int v11; // w9
v6 = *(_QWORD *)(a2 + 16);
if ( (a5 & 1) != 0 )
{
v9 = *(const char **)(result + 8);
result = strcmp(v9, *(const char **)(v6 + 8));
if ( (_DWORD)result )
{
result = strcmp(v9, *(const char **)(*(_QWORD *)a2 + 8LL));
if ( (_DWORD)result )
return result;
LABEL_7:
if ( *(_QWORD *)(a2 + 32) == a3 || *(_QWORD *)(a2 + 40) == a3 )
{
if ( a4 == 1 )
*(_DWORD *)(a2 + 56) = 1;
}
else
{
v11 = *(_DWORD *)(a2 + 60);
v10 = *(_DWORD *)(a2 + 64);
*(_DWORD *)(a2 + 56) = a4;
*(_QWORD *)(a2 + 40) = a3;
*(_DWORD *)(a2 + 64) = v10 + 1;
if ( v11 == 1 && *(_DWORD *)(a2 + 48) == 2 )
*(_BYTE *)(a2 + 78) = 1;
*(_DWORD *)(a2 + 68) = 4;
}
return result;
}
}
else if ( result != v6 )
{
if ( result != *(_QWORD *)a2 )
return result;
goto LABEL_7;
}
if ( *(_QWORD *)(a2 + 8) == a3 && *(_DWORD *)(a2 + 52) != 1 )
*(_DWORD *)(a2 + 52) = a4;
return result;
}