//
// sub_1007548D0 from 0x1007548d0 to 0x10075492c (92 bytes)
//
// 4 xrefs:
// > sub_10074A9AC @ 0x10074aa5c
// > sub_10074E364 @ 0x10074e430
// > sub_10074F280 @ 0x10074f384
// > sub_10074F280 @ 0x10074f394
//
// 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:32 +0000
//
__int64 __fastcall sub_1007548D0(unsigned __int8 *a1, __int64 a2)
{
int v2; // w8
int v3; // t1
_BYTE *v5; // x19
if ( a2 && !*a1 )
{
do
{
v3 = *++a1;
v2 = v3;
--a2;
}
while ( a2 && !v2 );
}
if ( a2 )
return sub_1006D1318(a1, a2, 0);
v5 = sub_1006D0E9C();
sub_1006D1290((__int64)v5, 0);
return (__int64)v5;
}