//
// sub_1004551E8 from 0x1004551e8 to 0x100455250 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x100966f10
//
// 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:05:23 +0000
//
unsigned __int8 *__fastcall sub_1004551E8(unsigned __int8 *a1, unsigned __int8 a2)
{
unsigned __int8 *v2; // x19
int v3; // w10
int v4; // t1
_QWORD v6[2]; // [xsp+0h] [xbp-20h] BYREF
v6[0] = 0;
v6[1] = 0;
while ( 1 )
{
do
{
v2 = a1;
v4 = *a1++;
v3 = v4;
}
while ( (byte_10076EDBD[v4] & 2) == 0 );
if ( v3 == a2 )
break;
if ( !v3 )
return nullptr;
}
*(_BYTE *)sub_100455900(v6, v2) = 0;
return v2 + 1;
}