//
// sub_80F5CE from 0x80f5ce to 0x80f612 (68 bytes)
//
// 2 xrefs:
// > sub_80F5CE @ 0x80f5ea
// > sub_80F612 @ 0x80f638
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:36 +0000
//
int __fastcall sub_80F5CE(int a1, unsigned __int8 *a2)
{
int result; // r0
LABEL_1:
++a2;
while ( 1 )
{
result = *a2;
if ( !*a2 )
break;
if ( result != 60 )
{
if ( result == 93 && a2[1] == 93 && a2[2] == 62 )
return (int)(a2 + 3);
goto LABEL_1;
}
if ( a2[1] != 33 || a2[2] != 91 )
goto LABEL_1;
result = sub_80F5CE(a1);
a2 = (unsigned __int8 *)result;
if ( !result )
return result;
}
*(_DWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 12) = 9;
return result;
}