// // sub_822940 from 0x822940 to 0x8229c4 (132 bytes) // // 3 xrefs: // > sub_8229D0 @ 0x822b4e // > sub_8229D0 @ 0x823048 // > sub_8229D0 @ 0x823176 // // 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:52 +0000 // char *__fastcall sub_822940(const char *a1) { const char *v1; // r0 char *v2; // r4 size_t v3; // r0 size_t v4; // r6 char *v5; // r1 int v6; // r2 char *result; // r0 v1 = off_D200B8(a1); v2 = (char *)v1; if ( !v1 ) return v2; v3 = strlen(v1); v4 = v3; if ( *v2 != 34 ) { if ( v3 ) goto LABEL_4; LABEL_9: if ( *v2 != 47 ) goto LABEL_14; return v2; } v4 = v3 - 1; memmove(v2, v2 + 1, v3); if ( !v4 ) goto LABEL_9; LABEL_4: v5 = &v2[v4 - 1]; v6 = (unsigned __int8)*v5; if ( v6 != 34 ) { if ( *v2 == 47 ) goto LABEL_6; LABEL_14: off_D200B0(v2); return off_D200B8((const char *)&word_BF54E4); } v2[v4 - 1] = 0; if ( *v2 != 47 ) goto LABEL_14; if ( v4 == 1 ) return v2; v5 = &v2[v4 - 2]; v6 = (unsigned __int8)*v5; LABEL_6: result = v2; if ( v6 == 47 ) *v5 = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source