//
// sub_10071BB1C from 0x10071bb1c to 0x10071bbc8 (172 bytes)
//
// 2 xrefs:
// > sub_10071B78C @ 0x10071b89c
// > sub_10071B78C @ 0x10071ba4c
//
// 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
//
_DWORD *__fastcall sub_10071BB1C(_DWORD *result, __int64 a2)
{
__int64 v3; // x1
__int64 v4; // x8
__int64 (*v5)(void); // x2
__int64 v6; // x8
__int64 v7; // x8
while ( 2 )
{
if ( (*(_WORD *)a2 & 0x306) == 0 )
{
v3 = *(_QWORD *)(a2 + 32);
switch ( *(_BYTE *)v3 )
{
case 0:
a2 = *(_QWORD *)(v3 + 16);
if ( a2 )
continue;
v4 = *(_QWORD *)(v3 + 32);
if ( !v4 )
goto LABEL_14;
v5 = *(__int64 (**)(void))(v4 + 32);
if ( v5 )
return (_DWORD *)v5();
goto LABEL_17;
case 1:
case 2:
case 3:
case 6:
goto LABEL_17;
case 4:
v6 = *(_QWORD *)(v3 + 32);
if ( !v6 )
goto LABEL_17;
v5 = *(__int64 (**)(void))(v6 + 24);
if ( !v5 )
goto LABEL_17;
return (_DWORD *)v5();
case 5:
if ( !v3 )
goto LABEL_17;
v7 = *(_QWORD *)(v3 + 32);
if ( v7 )
{
v5 = *(__int64 (**)(void))(v7 + 32);
if ( !v5 )
goto LABEL_17;
return (_DWORD *)v5();
}
LABEL_14:
if ( *(_BYTE *)v3 != 5 && *(_DWORD *)(v3 + 8) == 1 )
{
*result = *(_QWORD *)(v3 + 40);
return result;
}
break;
default:
return result;
}
}
break;
}
LABEL_17:
*(_QWORD *)result = 0;
return result;
}