// // sub_8ED1C from 0x8ed1c to 0x8ed7e (98 bytes) // // 1 xrefs: // > sub_B3130 @ 0xb3328 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_8ED1C(int a1, int a2, int a3, int a4) { bool v4; // zf bool v5; // zf _DWORD *v6; // r0 int v7; // r2 int v8; // r3 int v9; // r4 int v10; // r6 int v11; // r5 int *v12; // r0 int v13; // r2 int v14; // r3 int v15; // r4 int v16; // r6 v4 = a3 == 8; if ( a3 == 8 ) v4 = a4 == 1; if ( v4 ) { v12 = (int *)(a1 + 16); v13 = 0; while ( v13 < a2 ) { v14 = *v12; v15 = v12[1]; v16 = v12[3]; ++v13; *v12 = v12[2]; v12[1] = v16; v12[2] = v14; v12[3] = v15; v12 += 8; } } else if ( a4 == 5 ) { v5 = a3 == 8; if ( a3 != 8 ) v5 = a3 == 6; if ( v5 ) { v6 = (_DWORD *)(a1 + 12); v7 = 4 * a3; v8 = 0; while ( v8 < a2 ) { ++v8; v9 = v6[2]; v6[2] = *v6; v10 = *(v6 - 1); v11 = v6[1]; *v6 = v9; v6[1] = v10; *(v6 - 1) = v11; v6 = (_DWORD *)((char *)v6 + v7); } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source