//
// sub_1005F5AF8 from 0x1005f5af8 to 0x1005f5b84 (140 bytes)
//
// 8 xrefs:
// > sub_100565B84 @ 0x10056647c
// > sub_100565B84 @ 0x1005667dc
// > sub_100565B84 @ 0x100566a48
// > sub_100565B84 @ 0x100567404
// > sub_100568D04 @ 0x100568d70
// > sub_100568D84 @ 0x100568dbc
// > sub_1005C6FE0 @ 0x1005c70a4
// > sub_1005DDBA4 @ 0x1005dddd4
//
// 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 11:09:51 +0000
//
__int64 __fastcall sub_1005F5AF8(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v8; // x23
__int64 v9; // x20
v8 = (_QWORD *)(a1 + 69600);
if ( a1 )
sub_100568CC4(a1, 0x16u);
if ( !*v8
|| (v9 = ((__int64 (__fastcall *)(__int64, __int64, __int64, __int64, _QWORD))*v8)(a1, a2, a3, a4, v8[1]),
!(_DWORD)v9) )
{
v9 = 0;
}
sub_100568CE4(a1, 0x16u);
return v9;
}