//
// sub_53CA88 from 0x53ca88 to 0x53cad0 (72 bytes)
//
// 4 xrefs:
// > sub_53CAD0 @ 0x53cad6
// > InfoLayer::onCommentCellToggled @ 0x54091c
// > InfoLayer::onCommentCellToggled @ 0x540960
// > InfoLayer::onBulkSelectAll @ 0x540a52
//
// 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 11:52:15 +0000
//
int *__fastcall sub_53CA88(int *result, _DWORD *a2)
{
int v2; // r2
int v3; // r2
int v4; // r3
int v5; // r2
*result = 0;
if ( a2 )
v2 = a2[72];
else
v2 = 0;
result[1] = v2;
result[2] = 0;
if ( a2 )
{
v3 = a2[86];
v4 = a2[75];
switch ( v3 )
{
case 3:
v5 = 6;
break;
case 4:
v5 = 7;
break;
case 5:
v5 = 8;
break;
default:
if ( !v4 )
{
*result = 1;
v4 = a2[77];
}
goto LABEL_12;
}
*result = v5;
LABEL_12:
result[2] = v4;
}
return result;
}