//
// sub_1005D6AA4 from 0x1005d6aa4 to 0x1005d6be0 (316 bytes)
//
// 1 xrefs:
// > sub_1005D6E90 @ 0x1005d6ea4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005D6AA4(__int64 a1)
{
__int64 *v2; // x11
__int64 v3; // x9
bool v4; // w10
__int64 v5; // x9
__int64 v6; // x10
__int64 v7; // x19
if ( a1 )
{
sub_100588190(9, 30, (__int64)"eng_list.c", 282);
v2 = &qword_100882D18;
do
{
v3 = *v2;
v4 = *v2 != 0;
if ( *v2 == a1 )
break;
v2 = (__int64 *)(v3 + 208);
}
while ( v4 );
if ( v3 )
{
v5 = *(_QWORD *)(a1 + 208);
if ( v5 )
*(_QWORD *)(v5 + 200) = *(_QWORD *)(a1 + 200);
v6 = *(_QWORD *)(a1 + 200);
if ( v6 )
*(_QWORD *)(v6 + 208) = v5;
if ( qword_100882D18 == a1 )
qword_100882D18 = *(_QWORD *)(a1 + 208);
if ( qword_100882D20 == a1 )
qword_100882D20 = *(_QWORD *)(a1 + 200);
sub_1005D64C4((int *)a1, 0);
v7 = 1;
}
else
{
sub_1005E0E48(38, 121, 105, "eng_list.c", 166);
sub_1005E0E48(38, 123, 110, "eng_list.c", 284);
v7 = 0;
}
sub_100588190(10, 30, (__int64)"eng_list.c", 287);
}
else
{
sub_1005E0E48(38, 123, 67, "eng_list.c", 279);
return 0;
}
return v7;
}