//
// sub_F8948 from 0xf8948 to 0xf8a24 (220 bytes)
//
// 1 xrefs:
// > sub_F9B54 @ 0xf9cec
//
// 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:15:08 +0000
//
__int64 __fastcall sub_F8948(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v3; // x8
__int64 v6; // x23
__int64 v7; // x22
__int64 result; // x0
int v9; // w0
int v10; // w8
int v11; // w0
int v12; // w8
v3 = *(_QWORD **)(a2 + 80);
v6 = v3[14];
v7 = *(_QWORD *)(*v3 + 32LL);
result = sub_F3BB8(a1, a2);
if ( !(_DWORD)result )
{
sub_F2DC0();
if ( (unsigned int)sub_F8AB8() )
return 4294967161LL;
v9 = sub_F2EE8((int *)(a2 + 8), *(_DWORD *)(v6 + 24));
if ( v9 == -1 )
return 4294967160LL;
*(_DWORD *)(a2 + 56) = v9;
v10 = **(_DWORD **)(v7 + 8LL * v9 + 32);
*(_DWORD *)(a2 + 44) = v10;
if ( v10 )
{
*(_DWORD *)(a2 + 40) = sub_F8AB8();
v11 = sub_F8AB8();
*(_DWORD *)(a2 + 48) = v11;
if ( v11 == -1 )
return 4294967160LL;
}
else
{
*(_DWORD *)(a2 + 40) = 0;
*(_DWORD *)(a2 + 48) = 0;
}
*(_OWORD *)(a2 + 64) = *(_OWORD *)(a3 + 24);
v12 = *(_DWORD *)(a3 + 16);
*(_DWORD *)(a2 + 52) = 0;
*(_QWORD *)a2 = 0;
*(_DWORD *)(a2 + 60) = v12;
return 0;
}
return result;
}