//
// sub_1007133B4 from 0x1007133b4 to 0x10071348c (216 bytes)
//
// 2 xrefs:
// > sub_10065BA8C @ 0x10065be3c
// > sub_10065C16C @ 0x10065c428
//
// 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_1007133B4(int a1, __int64 a2)
{
__int64 *v2; // x19
__int64 result; // x0
__int64 v4; // x8
int (__fastcall *v5)(__int64 *); // x8
__int64 v6; // [xsp+8h] [xbp-28h] BYREF
v6 = 0;
v2 = sub_100712794(a1, a2);
result = 0;
if ( v2 )
{
v4 = *v2;
if ( *v2 && *(_QWORD *)(v4 + 56) )
{
*((_DWORD *)v2 + 8) = 4;
v5 = *(int (__fastcall **)(__int64 *))(v4 + 48);
if ( v5 && v5(v2) <= 0 )
{
*((_DWORD *)v2 + 8) = 0;
}
else if ( (int)sub_100712964(v2, -1, 4) >= 1 )
{
sub_1007132B0(v2, &v6);
}
}
else
{
sub_100706FB0(6, 147, 150, (__int64)"pmeth_gn.c", 123);
}
sub_1007128F8(v2);
return v6;
}
return result;
}