// // sub_810A0A from 0x810a0a to 0x810a7c (114 bytes) // // 3 xrefs: // > sub_81406C @ 0x81409e // > sub_815280 @ 0x81530e // > pugi::xml_document::load @ 0x81b214 // // 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:37 +0000 // int __fastcall sub_810A0A(int result, unsigned __int8 *a2, unsigned int a3) { int v3; // r3 int v4; // r2 int v5; // r0 int v6; // r1 bool v7; // zf bool v8; // zf switch ( result ) { case 8: return 5; case 4: return 2; case 7: return 5; } if ( result ) return result; if ( a3 <= 3 ) return 1; v3 = *a2; v4 = a2[1]; v5 = a2[2]; v6 = a2[3]; switch ( v3 ) { case 0: if ( !v4 ) { if ( v5 == 254 ) { v7 = v6 == 255; goto LABEL_15; } if ( !v5 ) { v7 = v6 == 60; LABEL_15: if ( v7 ) return 6; else return 1; } return 1; } v8 = v4 == 60; goto LABEL_25; case 255: if ( v4 != 254 ) return 1; break; case 254: v8 = v4 == 255; LABEL_25: if ( v8 ) return 3; else return 1; default: if ( v3 != 60 || v4 ) return 1; break; } if ( v5 ) return 2; if ( v6 ) return 2; else return 5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source