//
// sub_DC0020 from 0xdc0020 to 0xdc0060 (64 bytes)
//
// 2 xrefs:
// > sub_DCBC04 @ 0xdcc65c
// > sub_DCBC04 @ 0xdcbea4
//
// 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 13:08:47 +0000
//
__int64 __fastcall sub_DC0020(__int64 a1, unsigned __int8 a2)
{
__int64 result; // x0
for ( result = a1 + 1; ; ++result )
{
if ( (byte_11AECC0[*(unsigned __int8 *)(result - 1)] & 2) != 0 )
{
if ( *(unsigned __int8 *)(result - 1) == a2 )
{
*(_BYTE *)(result - 1) = 0;
return result;
}
if ( !*(_BYTE *)(result - 1) )
break;
}
}
return 0;
}