//
// sub_103F338 from 0x103f338 to 0x103f364 (44 bytes)
//
// 2 xrefs:
// > OBJ_NAME_do_all_sorted @ 0x103f958
// > OBJ_NAME_do_all_sorted @ 0x103f960
//
// 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:16:29 +0000
//
_DWORD *__fastcall sub_103F338(_DWORD *result, __int64 a2)
{
int v2; // w2
__int64 v3; // x3
if ( *result == *(_DWORD *)a2 )
{
v2 = *(_DWORD *)(a2 + 4);
v3 = *(_QWORD *)(a2 + 8);
*(_DWORD *)(a2 + 4) = v2 + 1;
*(_QWORD *)(v3 + 8LL * v2) = result;
}
return result;
}