//
// sub_100712050 from 0x100712050 to 0x100712200 (432 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009c1670
//
// 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:57 +0000
//
__int64 __fastcall sub_100712050(unsigned int *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, int a7)
{
int *v11; // x8
__int64 **v12; // x0
__int64 **v13; // x19
unsigned int v14; // w0
char *v15; // x0
int v16; // w6
int v17; // w7
int *v18; // x8
__int64 v19; // x2
int v20; // w3
int v21; // w4
int v22; // w5
int v23; // w6
int v24; // w7
__int64 v25; // x20
int v26; // w4
__int16 v28; // w2
int v29; // w4
__int64 v30; // [xsp+8h] [xbp-38h] BYREF
if ( !a4 || *(_DWORD *)a4 != 16 || (v11 = *(int **)(a4 + 8)) == nullptr )
{
v26 = 203;
LABEL_11:
sub_100706FB0(6, 118, 114, (__int64)"p5_crpt2.c", v26);
v13 = nullptr;
v25 = 0;
goto LABEL_12;
}
v30 = *((_QWORD *)v11 + 1);
v12 = (__int64 **)sub_1007225DC(0, &v30, *v11);
v13 = v12;
if ( !v12 )
{
v26 = 210;
goto LABEL_11;
}
if ( (unsigned int)sub_1006B0F78(**v12) != 69 )
{
v28 = 124;
v29 = 218;
LABEL_18:
sub_100706FB0(6, 118, v28, (__int64)"p5_crpt2.c", v29);
v25 = 0;
goto LABEL_12;
}
v14 = sub_1006B0F78(*v13[1]);
v15 = sub_1006B0DD0(v14);
v18 = (int *)sub_10070E1C0((__int64)v15);
if ( !v18 )
{
v28 = 107;
v29 = 229;
goto LABEL_18;
}
if ( !(unsigned int)sub_10070972C(a1, v18, 0, 0, nullptr, a7, v16, v17) )
{
v25 = 0;
goto LABEL_12;
}
if ( (sub_1007110C4((__int64 *)a1, v13[1][1], v19, v20, v21, v22, v23, v24) & 0x80000000) != 0 )
{
v28 = 122;
v29 = 237;
goto LABEL_18;
}
v25 = sub_100712200(a1, a2, a3, (*v13)[1]);
LABEL_12:
sub_1007225E8(v13);
return v25;
}