//
// sub_10073AEB4 from 0x10073aeb4 to 0x10073af60 (172 bytes)
//
// 2 xrefs:
// > sub_10073BD80 @ 0x10073bde0
// > sub_10073BD80 @ 0x10073bdfc
//
// 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_10073AEB4(unsigned int *a1, int a2)
{
int v4; // w21
__int64 *v5; // x22
if ( !a1 )
return 0;
if ( (int)sub_100704BB4(a1) <= 0 )
return 0;
v4 = 0;
while ( 1 )
{
v5 = (__int64 *)sub_100704BC8((__int64)a1, v4);
if ( (unsigned int)sub_1006B0F78(*v5) == a2 )
break;
if ( ++v4 >= (int)sub_100704BB4(a1) )
return 0;
}
if ( (unsigned int)sub_100704BB4((unsigned int *)v5[2]) )
return sub_100704BC8(v5[2], 0);
else
return 0;
}