//
// sub_10071BBE4 from 0x10071bbe4 to 0x10071bcfc (280 bytes)
//
// 2 xrefs:
// > sub_10071B78C @ 0x10071b98c
// > sub_10071B78C @ 0x10071ba28
//
// 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:13:02 +0000
//
__int64 __fastcall sub_10071BBE4(char ***a1, __int64 a2)
{
__int64 v4; // x8
__int64 (__fastcall *v5)(char ***, __int64); // x2
__int64 v7; // x0
_BYTE *v8; // x0
if ( !a2 )
return 0;
v4 = *(_QWORD *)(a2 + 32);
if ( v4 )
{
v5 = *(__int64 (__fastcall **)(char ***, __int64))(v4 + 16);
if ( v5 )
return v5(a1, a2);
}
if ( *(_BYTE *)a2 == 5 )
{
v7 = 0xFFFFFFFFLL;
goto LABEL_7;
}
v7 = *(unsigned int *)(a2 + 8);
if ( (int)v7 > 4 )
{
if ( (_DWORD)v7 == 5 )
{
*a1 = (char **)1;
return 1;
}
if ( (_DWORD)v7 == 6 )
{
*a1 = sub_1006B0D04(0);
return 1;
}
LABEL_7:
v8 = (_BYTE *)sub_100721C64(v7);
if ( v8 )
{
if ( *(_BYTE *)a2 == 5 )
*((_QWORD *)v8 + 2) |= 0x40uLL;
}
goto LABEL_15;
}
if ( (_DWORD)v7 != -4 )
{
if ( (_DWORD)v7 == 1 )
{
*(_DWORD *)a1 = *(_QWORD *)(a2 + 40);
return 1;
}
goto LABEL_7;
}
v8 = sub_1006AE878(16, (__int64)"tasn_new.c", 342);
if ( v8 )
{
*((_QWORD *)v8 + 1) = 0;
*(_DWORD *)v8 = -1;
LABEL_15:
*a1 = (char **)v8;
return v8 != nullptr;
}
return 0;
}