//
// sub_1006F8154 from 0x1006f8154 to 0x1006f81f8 (164 bytes)
//
// 3 xrefs:
// > sub_10064C35C @ 0x10064c758
// > sub_1006E9668 @ 0x1006e9714
// > ??> @ 0x1009c14e0
//
// 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:12:44 +0000
//
__int64 __fastcall sub_1006F8154(__int64 a1, __int64 a2, __int64 a3, __int64 a4, _DWORD *a5, __int64 a6)
{
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x20
__int64 v14; // [xsp+8h] [xbp-28h] BYREF
v14 = a4;
sub_1007061F4(a2, a3);
v10 = sub_1006F70D0(a6);
if ( v10
&& (v11 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD, _QWORD, __int64))(*(_QWORD *)(v10 + 24) + 8LL))(
a2,
a3,
0,
0,
a6),
(v12 = v11) != 0) )
{
*a5 = sub_1006F73A0(v11, (__int64)&v14);
sub_1006F73B8(v12);
return 1;
}
else
{
*a5 = 0;
return 0;
}
}