//
// sub_10062E768 from 0x10062e768 to 0x10062e7c4 (92 bytes)
//
// 4 xrefs:
// > sub_100624844 @ 0x1006248f4
// > sub_1006281FC @ 0x1006282c8
// > sub_100629118 @ 0x10062921c
// > sub_100629118 @ 0x10062922c
//
// 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_10062E768(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_1005AB1B0(a1, a2, 0);
v5 = sub_1005AAD34();
sub_1005AB128((__int64)v5, 0);
return (__int64)v5;
}