//
// sub_10073EDA0 from 0x10073eda0 to 0x10073ee34 (148 bytes)
//
// 4 xrefs:
// > sub_100660598 @ 0x100660690
// > sub_100662258 @ 0x100662884
// > sub_100662B4C @ 0x100662cf4
// > sub_100663634 @ 0x100663940
//
// 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:19 +0000
//
_QWORD *__fastcall sub_10073EDA0(const void **a1, _QWORD *__s2)
{
_QWORD *v2; // x19
_QWORD *v4; // x8
_QWORD *v5; // x22
_QWORD *v6; // x21
int v7; // w0
v2 = __s2;
v4 = *a1;
if ( *a1 )
{
v5 = nullptr;
while ( 1 )
{
v6 = v4;
v7 = memcmp(v4, v2, 8u);
if ( v7 >= 1 )
break;
if ( !v7 )
return nullptr;
v4 = (_QWORD *)v6[2];
v5 = v6;
if ( !v4 )
{
v2[2] = 0;
v6[2] = v2;
return v2;
}
}
v2[2] = v6;
if ( v5 )
v5[2] = v2;
else
*a1 = v2;
}
else
{
*a1 = __s2;
}
return v2;
}