//
// sub_8485E8 from 0x8485e8 to 0x84864e (102 bytes)
//
// 0 xrefs:
//
// 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:02:25 +0000
//
int __fastcall sub_8485E8(int a1, _BYTE *a2, unsigned int a3, _DWORD *a4)
{
if ( a3 > 3 && !memcmp("-ERR", a2, 4u) )
{
*a4 = 45;
return 1;
}
else
{
if ( *(_DWORD *)(a1 + 1144) == 2 )
{
if ( !a3 || *a2 != 46 )
{
LABEL_12:
*a4 = 42;
return 1;
}
}
else
{
if ( a3 <= 2 )
{
if ( !a3 )
return 0;
LABEL_6:
if ( *a2 != 43 )
return 0;
goto LABEL_12;
}
if ( memcmp("+OK", a2, 3u) )
goto LABEL_6;
}
*a4 = 43;
return 1;
}
}