// // png_do_swap from 0xe5b974 to 0xe5bbb0 (572 bytes) // // 3 xrefs: // > png_do_read_transformations @ 0xe50340 // > png_do_write_transformations @ 0xe5fa08 // > @ 0x627a0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:10:20 +0000 // __int64 __fastcall png_do_swap(__int64 result, char *a2) { unsigned int v2; // w3 unsigned int v3; // w2 char *v4; // x5 unsigned int v5; // w4 char v6; // w4 char v7; // w4 char v8; // w4 char v9; // w4 char v10; // w4 char v11; // w4 char v12; // w4 char v13; // w4 char v14; // w4 char v15; // w4 char v16; // w4 char v17; // w4 char v18; // w4 char v19; // w3 int8x16_t v20; // [xsp+20h] [xbp-20h] int8x16x2_t v21; // 0:q0.16,16:q1.16 if ( *(_BYTE *)(result + 17) == 16 ) { result = (unsigned int)*(unsigned __int8 *)(result + 18) * *(_DWORD *)result; if ( (_DWORD)result ) { v2 = ((unsigned int)(result - 16) >> 4) + 1; v3 = 16 * v2; if ( (unsigned int)(result - 1) <= 0xE ) { v3 = 0; } else { v4 = a2; v5 = 0; do { v21 = vld2q_s8(v4); ++v5; v20 = v21.val[0]; v21.val[0] = v21.val[1]; v21.val[1] = v20; vst2q_s8(v4, v21); v4 += 32; } while ( v2 > v5 ); a2 += 2 * v3; if ( (_DWORD)result == v3 ) return result; } v6 = *a2; *a2 = a2[1]; a2[1] = v6; if ( (unsigned int)result > v3 + 1 ) { v7 = a2[2]; a2[2] = a2[3]; a2[3] = v7; if ( (unsigned int)result > v3 + 2 ) { v8 = a2[4]; a2[4] = a2[5]; a2[5] = v8; if ( (unsigned int)result > v3 + 3 ) { v9 = a2[6]; a2[6] = a2[7]; a2[7] = v9; if ( (unsigned int)result > v3 + 4 ) { v10 = a2[8]; a2[8] = a2[9]; a2[9] = v10; if ( (unsigned int)result > v3 + 5 ) { v11 = a2[10]; a2[10] = a2[11]; a2[11] = v11; if ( (unsigned int)result > v3 + 6 ) { v12 = a2[12]; a2[12] = a2[13]; a2[13] = v12; if ( (unsigned int)result > v3 + 7 ) { v13 = a2[14]; a2[14] = a2[15]; a2[15] = v13; if ( (unsigned int)result > v3 + 8 ) { v14 = a2[16]; a2[16] = a2[17]; a2[17] = v14; if ( (unsigned int)result > v3 + 9 ) { v15 = a2[18]; a2[18] = a2[19]; a2[19] = v15; if ( (unsigned int)result > v3 + 10 ) { v16 = a2[20]; a2[20] = a2[21]; a2[21] = v16; if ( (unsigned int)result > v3 + 11 ) { v17 = a2[22]; a2[22] = a2[23]; a2[23] = v17; if ( (unsigned int)result > v3 + 12 ) { v18 = a2[24]; a2[24] = a2[25]; a2[25] = v18; if ( (unsigned int)result > v3 + 13 ) { v19 = a2[26]; a2[26] = a2[27]; a2[27] = v19; if ( (unsigned int)result > v3 + 14 ) { result = (unsigned __int8)a2[28]; a2[28] = a2[29]; a2[29] = result; } } } } } } } } } } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source