//
// sub_1004569C4 from 0x1004569c4 to 0x100456a98 (212 bytes)
//
// 2 xrefs:
// > sub_1004535C8 @ 0x1004538a8
// > sub_1004535C8 @ 0x100453b40
//
// 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
//
__int64 __fastcall sub_1004569C4(__int64 a1, _BYTE *a2)
{
__int64 i; // x8
int v5; // w9
size_t v6; // x2
_BYTE *v7; // x21
__int64 result; // x0
do
{
sub_100456A98(a1, 60, 33, 91, 67, 68);
sub_100456734(a1, 65, 84, 65, 91);
for ( i = 0; ; ++i )
{
v5 = (unsigned __int8)a2[i];
if ( v5 == 93 )
break;
if ( !a2[i] )
goto LABEL_8;
LABEL_7:
;
}
if ( a2[i + 1] != 93 || a2[i + 2] != 62 )
goto LABEL_7;
LABEL_8:
v6 = i + 2LL * (v5 != 0);
v7 = &a2[v6];
sub_100457130(a1, a2, v6);
result = sub_100453F78(a1, 93, 93, 62);
a2 = v7;
}
while ( *v7 );
return result;
}