//
// sub_1002418DC from 0x1002418dc to 0x100241964 (136 bytes)
//
// 1 xrefs:
// > sub_100241CD0 @ 0x100241dac
//
// 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:01:24 +0000
//
bool __fastcall sub_1002418DC(unsigned __int8 **a1, unsigned __int8 *a2)
{
unsigned __int8 *v2; // x21
__int64 v5; // x22
_BOOL8 result; // x0
v2 = *a1;
if ( *a1 == a2 )
return 1;
while ( 1 )
{
v5 = byte_1007625BB[*v2] + 1LL;
if ( a2 - v2 < v5 )
break;
result = sub_1002417F0(v2, byte_1007625BB[*v2] + 1);
if ( !result )
return result;
v2 += v5;
*a1 = v2;
if ( v2 == a2 )
return 1;
}
return 0;
}