//
// sub_10072517C from 0x10072517c to 0x100725258 (220 bytes)
//
// 1 xrefs:
// > sub_10073CF8C @ 0x10073d068
//
// 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:07 +0000
//
__int64 __fastcall sub_10072517C(unsigned int *a1, __int64 a2)
{
int v4; // w21
__int64 v5; // x0
__int64 v6; // x22
__int64 v7; // x23
size_t v8; // x2
int v9; // w8
if ( (int)sub_100704BB4(a1) < 1 )
return 0;
v4 = 0;
while ( 1 )
{
if ( (v5 = sub_100704BC8((__int64)a1, v4), v6 = v5, v7 = *(_QWORD *)(*(_QWORD *)v5 + 40LL), *(_QWORD *)(v7 + 24))
&& !*(_DWORD *)(v7 + 8)
|| (sub_10071998C(*(_QWORD *)(*(_QWORD *)v5 + 40LL), 0) & 0x80000000) == 0 )
{
if ( *(_QWORD *)(a2 + 24) && !*(_DWORD *)(a2 + 8) || (sub_10071998C(a2, 0) & 0x80000000) == 0 )
{
v8 = *(int *)(v7 + 32);
v9 = *(_DWORD *)(a2 + 32);
if ( !((_DWORD)v8 == v9 ? memcmp(*(const void **)(v7 + 24), *(const void **)(a2 + 24), v8) : (_DWORD)v8 - v9) )
break;
}
}
if ( ++v4 >= (int)sub_100704BB4(a1) )
return 0;
}
return v6;
}