//
// sub_1007403EC from 0x1007403ec to 0x1007404c8 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009c7150
//
// 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:13:19 +0000
//
__int64 __fastcall sub_1007403EC(__int64 *a1, int a2, int a3, int *a4, __int64 a5, __int64 a6, int a7, int a8)
{
__int64 v8; // x19
__int64 result; // x0
__int64 v10; // x8
v8 = a1[5];
switch ( a2 )
{
case 1:
v10 = a1[2];
if ( !v10 || (unsigned int)sub_10073FBD0((void **)a1[5], *(_QWORD *)(v10 + 32)) )
return sub_10073FC80(v8, 0, 0, nullptr, 0, a6, a7, a8);
return 0;
case 12:
return sub_10073FC80(a1[5], 0, 0, a4, a1[1], a6, a7, a8);
case 6:
result = 0;
if ( (a3 & 0x80000000) == 0 && a4 )
return sub_10073FC80(v8, (__int64)a4, a3, nullptr, 0, a6, a7, a8);
break;
default:
return 4294967294LL;
}
return result;
}