//
// sub_100612E68 from 0x100612e68 to 0x100612ec8 (96 bytes)
//
// 2 xrefs:
// > sub_100612FF8 @ 0x1006133d8
// > sub_100612FF8 @ 0x1006134ac
//
// 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:10:10 +0000
//
__int64 __fastcall sub_100612E68(_QWORD *a1, __int64 a2)
{
unsigned int (*v3)(void); // x8
if ( !*a1 )
return 4294967167LL;
v3 = (unsigned int (*)(void))a1[99];
if ( !v3 || v3() == -1 )
return 4294967168LL;
a1[2] = a2;
sub_100600444((__int64)(a1 + 4));
return 0;
}