//
// sub_10000F704 from 0x10000f704 to 0x10000f798 (148 bytes)
//
// 3 xrefs:
// > sub_10000F6D0 @ 0x10000f6e0
// > sub_100017780 @ 0x100017be4
// > sub_10014136C @ 0x1001414f8
//
// 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 10:57:15 +0000
//
__int64 __fastcall sub_10000F704(__int64 result)
{
__int64 v1; // x8
__int64 i; // x19
__int64 v3; // x20
__int64 v4; // x8
__int16 v5; // [xsp+Ch] [xbp-14h] BYREF
char v6; // [xsp+Eh] [xbp-12h]
v1 = *(_QWORD *)(result + 336);
if ( v1 )
{
for ( i = *(_QWORD *)(v1 + 56); i; *(_WORD *)(v3 + 323) = v5 )
{
v3 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
v4 = *(_QWORD *)(v3 + 336);
v5 = *(_WORD *)(v3 + 320);
v6 = *(_BYTE *)(v3 + 322);
if ( v4 && *(int *)(v4 + 120) >= 1 && (*(_BYTE *)(v4 + 126) & 1) == 0 )
{
result = sub_10004A1F8(&v5, *(_QWORD *)(v4 + 104), *(_QWORD *)(v4 + 112));
v5 = result;
v6 = BYTE2(result);
}
*(_BYTE *)(v3 + 325) = v6;
}
}
return result;
}