// // sub_944CF0 from 0x944cf0 to 0x944e30 (320 bytes) // // 1 xrefs: // > sub_940D98 @ 0x940e48 // // 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:05:09 +0000 // int __fastcall sub_944CF0(int *a1, _BYTE *a2) { int v2; // r6 int v3; // r3 _BYTE *v4; // r5 int v5; // r1 int v6; // r2 int v7; // r7 int v8; // r4 int v9; // r1 int v10; // t1 int v11; // r3 _BYTE *v12; // r1 _BYTE *v13; // r1 int v15; // [sp+0h] [bp-Ch] v2 = *a1; if ( *a1 > 0 ) { v3 = 0; v4 = a2; v15 = 8; while ( 1 ) { v5 = a1[1]; v6 = v3 + 1; v7 = *(unsigned __int8 *)(v5 + v3); if ( v2 > v3 + 1 ) { v8 = *(unsigned __int8 *)(v5 + v6); if ( v8 == v7 ) { v9 = v5 + v6; do { if ( ++v6 == v2 ) break; v10 = *(unsigned __int8 *)++v9; } while ( v10 == v8 ); } } v11 = v6 - v3; if ( !v7 ) break; if ( v15 != v7 ) { *v4 = v7; --v11; v4[1] = 0; v4 += 2; } if ( v11 <= 0 ) { v15 = v7; LABEL_21: if ( v2 <= v6 ) return (v4 - a2) >> 1; goto LABEL_22; } if ( v11 > 2 ) { if ( v11 <= 6 ) { LABEL_40: *v4 = 16; v4[1] = v11 - 3; v4 += 2; v15 = v7; goto LABEL_21; } v13 = v4 + 2; while ( 1 ) { v11 -= 6; *(v13 - 2) = 16; *(v13 - 1) = 3; v4 = v13; v13 += 2; if ( v11 <= 2 ) break; if ( v11 <= 6 ) goto LABEL_40; } } *v4 = v7; v4[1] = 0; if ( v11 == 2 ) { v4[2] = v7; v15 = v7; } else { v4 += 2; } if ( v11 == 2 ) { v4[3] = 0; v4 += 4; } else { v15 = v7; } if ( v2 <= v6 ) return (v4 - a2) >> 1; LABEL_22: v3 = v6; } if ( v11 <= 0 ) goto LABEL_21; if ( v11 > 2 ) { if ( v11 <= 10 ) { LABEL_43: v4[1] = v11 - 3; v4 += 2; *(v4 - 2) = 17; goto LABEL_21; } if ( v11 <= 138 ) { LABEL_41: *v4 = 18; v4[1] = v11 - 11; LABEL_42: v4 += 2; goto LABEL_21; } v12 = v4 + 2; while ( 1 ) { v11 -= 138; *(v12 - 2) = 18; *(v12 - 1) = 127; v4 = v12; v12 += 2; if ( v11 <= 2 ) break; if ( v11 <= 10 ) goto LABEL_43; if ( v11 <= 138 ) goto LABEL_41; } } *v4 = 0; v4[1] = 0; if ( v11 == 2 ) { v4[2] = 0; v4[3] = 0; v4 += 4; goto LABEL_21; } goto LABEL_42; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source