//
// sub_100712F38 from 0x100712f38 to 0x100712fb8 (128 bytes)
//
// 1 xrefs:
// > sub_100646164 @ 0x100646ce4
//
// 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:58 +0000
//
__int64 __fastcall sub_100712F38(__int64 *a1)
{
__int64 v2; // x8
__int64 (__fastcall *v3)(__int64 *); // x8
__int64 result; // x0
if ( a1 && (v2 = *a1) != 0 && *(_QWORD *)(v2 + 168) )
{
*((_DWORD *)a1 + 8) = 512;
v3 = *(__int64 (__fastcall **)(__int64 *))(v2 + 160);
if ( v3 )
{
result = v3(a1);
if ( (int)result <= 0 )
*((_DWORD *)a1 + 8) = 0;
}
else
{
return 1;
}
}
else
{
sub_100706FB0(6, 138, 150, (__int64)"pmeth_fn.c", 223);
return 4294967294LL;
}
return result;
}