//
// sub_10073B9B8 from 0x10073b9b8 to 0x10073bd80 (968 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006a9cd0
//
// 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:17 +0000
//
__int64 __fastcall sub_10073B9B8(__int64 a1, const char *a2, __int64 *a3, __int64 *a4, void ***a5)
{
const char *v8; // x23
int v10; // w4
_BYTE *v11; // x21
unsigned int *v12; // x0
unsigned int *v13; // x24
int v14; // w25
__int64 v15; // x27
int v16; // w0
__int64 v17; // x0
_QWORD *v18; // x27
int v19; // w28
__int64 v20; // x23
void **v21; // x0
void **v23; // x0
void **v24; // x0
v8 = a2;
if ( !a1 )
{
sub_100706FB0(35, 118, 105, (__int64)"p12_kiss.c", 91);
return 0;
}
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
if ( a2 && *a2 )
{
if ( !(unsigned int)sub_10073C190(a1, a2, 0xFFFFFFFFLL) )
{
v10 = 119;
LABEL_46:
sub_100706FB0(35, 118, 113, (__int64)"p12_kiss.c", v10);
v11 = nullptr;
v20 = 0;
goto LABEL_47;
}
}
else
{
v8 = nullptr;
if ( !(unsigned int)sub_10073C190(a1, 0, 0) )
{
v8 = "";
if ( !(unsigned int)sub_10073C190(a1, "", 0) )
{
v10 = 115;
goto LABEL_46;
}
}
}
v11 = sub_10070460C();
if ( !v11 )
{
sub_100706FB0(35, 118, 65, (__int64)"p12_kiss.c", 127);
return 0;
}
v12 = (unsigned int *)sub_10073AE34(a1);
v13 = v12;
if ( !v12 )
goto LABEL_44;
if ( (int)sub_100704BB4(v12) < 1 )
{
LABEL_23:
sub_100704B38(v13, (void (*)(void))sub_100739734);
v20 = sub_100704AC0((__int64)v11);
if ( v20 )
{
if ( a3 )
{
while ( 1 )
{
if ( a4 && *a3 && !*a4 )
{
sub_100707CB8();
if ( sub_100725290(v20, (_DWORD *)*a3) )
{
*a4 = v20;
v20 = 0;
}
sub_100707CFC();
}
if ( a5 && v20 )
{
v21 = *a5;
if ( !*a5 )
{
v21 = (void **)sub_10070460C();
*a5 = v21;
if ( !v21 )
goto LABEL_47;
}
if ( !(unsigned int)sub_100704974(v21, v20) )
goto LABEL_47;
}
else if ( v20 )
{
sub_100719E08(v20);
}
v20 = sub_100704AC0((__int64)v11);
if ( !v20 )
goto LABEL_74;
}
}
if ( a4 )
{
while ( 1 )
{
if ( a5 )
{
v23 = *a5;
if ( !*a5 )
{
v23 = (void **)sub_10070460C();
*a5 = v23;
if ( !v23 )
goto LABEL_47;
}
if ( !(unsigned int)sub_100704974(v23, v20) )
goto LABEL_47;
}
else
{
sub_100719E08(v20);
}
v20 = sub_100704AC0((__int64)v11);
if ( !v20 )
goto LABEL_74;
}
}
do
{
if ( a5 )
{
v24 = *a5;
if ( !*a5 )
{
v24 = (void **)sub_10070460C();
*a5 = v24;
if ( !v24 )
goto LABEL_47;
}
if ( !(unsigned int)sub_100704974(v24, v20) )
goto LABEL_47;
}
else
{
sub_100719E08(v20);
}
v20 = sub_100704AC0((__int64)v11);
}
while ( v20 );
}
LABEL_74:
sub_100704B38(v11, (void (*)(void))sub_100719E08);
return 1;
}
v14 = 0;
while ( 1 )
{
v15 = sub_100704BC8((__int64)v13, v14);
v16 = sub_1006B0F78(*(_QWORD *)(v15 + 24));
if ( v16 == 26 )
{
v17 = sub_10073ADC4(v15, (__int64)v8, 0xFFFFFFFFLL);
goto LABEL_20;
}
if ( v16 == 21 )
break;
LABEL_22:
if ( ++v14 >= (int)sub_100704BB4(v13) )
goto LABEL_23;
}
v17 = sub_10073AD64(v15);
LABEL_20:
v18 = (_QWORD *)v17;
if ( v17 )
{
v19 = sub_10073BD80(v17, v8, a3, v11);
sub_100704B38(v18, (void (*)(void))sub_10073AEA8);
if ( v19 )
goto LABEL_22;
}
sub_100704B38(v13, (void (*)(void))sub_100739734);
LABEL_44:
sub_100706FB0(35, 118, 114, (__int64)"p12_kiss.c", 132);
v20 = 0;
LABEL_47:
if ( a3 && *a3 )
sub_10070FBF4(*a3);
if ( a4 && *a4 )
sub_100719E08(*a4);
if ( v20 )
sub_100719E08(v20);
if ( v11 )
sub_100704B38(v11, (void (*)(void))sub_100719E08);
return 0;
}