//
// sub_100682A64 from 0x100682a64 to 0x100682af0 (140 bytes)
//
// 1 xrefs:
// > sub_100690820 @ 0x100690c38
//
// 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:11:18 +0000
//
__int64 __fastcall sub_100682A64(__int64 a1, int a2)
{
__int64 result; // x0
if ( a2 || !*(_BYTE *)(a1 + 739) )
return 0;
switch ( *(_DWORD *)(a1 + 416) )
{
case 4:
result = sub_10069924C(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 192), *(unsigned int *)(a1 + 248), 0, a1, 0);
break;
case 5:
case 7:
result = sub_100699748(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 408), *(char **)(a1 + 192));
break;
case 6:
result = sub_10069924C(*(_QWORD *)(a1 + 400), *(_QWORD *)(a1 + 192), *(unsigned int *)(a1 + 248), 0, a1, 1);
break;
default:
return 0;
}
return result;
}