//
// sub_1006FCA4C from 0x1006fca4c to 0x1006fcc0c (448 bytes)
//
// 11 xrefs:
// > sub_1006FF6F0 @ 0x1006ff794
// > sub_1006FF7D8 @ 0x1006ffdb8
// > sub_100740640 @ 0x10074077c
// > sub_100741BF4 @ 0x100741dac
// > sub_100742B9C @ 0x100742d30
// > sub_1007435B8 @ 0x100743740
// > sub_1007453C0 @ 0x100745560
// > sub_100746D98 @ 0x100746f2c
// > sub_100747514 @ 0x1007476b8
// > sub_100749110 @ 0x100749288
// > sub_1007515A4 @ 0x1007517dc
//
// 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:46 +0000
//
__int64 __fastcall sub_1006FCA4C(__int64 a1)
{
__int64 v2; // x21
const char *v3; // x20
int v4; // w0
bool v5; // zf
__int64 v6; // x2
__int64 v7; // x4
__int64 v8; // x2
__int64 v9; // x4
__int64 v10; // x19
if ( a1 )
{
if ( *(_QWORD *)a1 && *(_QWORD *)(a1 + 8) )
{
sub_1006AE2F8(9, 30, (__int64)"eng_list.c", 265);
v2 = qword_100A0C868;
if ( qword_100A0C868 )
{
v3 = *(const char **)a1;
do
{
v4 = strcmp(*(const char **)v2, v3);
v2 = *(_QWORD *)(v2 + 208);
if ( v4 )
v5 = v2 == 0;
else
v5 = 1;
}
while ( !v5 );
if ( !v4 )
{
v6 = 103;
v7 = 117;
goto LABEL_21;
}
if ( !qword_100A0C870 || *(_QWORD *)(qword_100A0C870 + 208) )
{
v6 = 110;
v7 = 135;
LABEL_21:
sub_100706FB0(38, 120, v6, "eng_list.c", v7);
sub_100706FB0(38, 105, 110, "eng_list.c", 267);
v10 = 0;
LABEL_25:
sub_1006AE2F8(10, 30, (__int64)"eng_list.c", 270);
return v10;
}
*(_QWORD *)(qword_100A0C870 + 208) = a1;
*(_QWORD *)(a1 + 200) = qword_100A0C870;
}
else
{
if ( qword_100A0C870 )
{
v6 = 110;
v7 = 123;
goto LABEL_21;
}
qword_100A0C868 = a1;
*(_QWORD *)(a1 + 200) = 0;
sub_1006FC760((__int64)sub_1006FCFF8);
}
++*(_DWORD *)(a1 + 172);
qword_100A0C870 = a1;
*(_QWORD *)(a1 + 208) = 0;
v10 = 1;
goto LABEL_25;
}
v8 = 108;
v9 = 262;
}
else
{
v8 = 67;
v9 = 258;
}
sub_100706FB0(38, 105, v8, "eng_list.c", v9);
return 0;
}