// // sub_EC0620 from 0xec0620 to 0xec06c0 (160 bytes) // // 2 xrefs: // > TIFFRGBAImageBegin @ 0xec899c // > TIFFRGBAImageBegin @ 0xec89a4 // // 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:11:32 +0000 // __int64 __fastcall sub_EC0620( __int64 result, unsigned int *a2, __int64 a3, __int64 a4, int a5, int a6, int a7, int a8, unsigned __int16 *a9) { int v9; // w14 int v11; // w6 __int64 v12; // x12 __int64 v13; // x16 __int64 v14; // x7 __int64 v15; // x6 __int64 v16; // x10 int v17; // w9 unsigned __int16 *v18; // x2 unsigned int *v19; // x11 __int64 v20; // x3 __int64 v21; // x8 __int64 v22; // x5 v9 = a6 - 1; v11 = a7 * *(unsigned __int16 *)(result + 30); if ( a6 ) { v12 = 2LL * *(unsigned __int16 *)(result + 30); v13 = (unsigned int)(a5 - 1); v14 = 4LL * a8; v15 = 2LL * v11; do { if ( a5 ) { v16 = *(_QWORD *)(result + 128); v17 = a5 - 1; v18 = a9; v19 = a2; do { v20 = *v18; --v17; v21 = v18[1]; v22 = v18[2]; v18 = (unsigned __int16 *)((char *)v18 + v12); *v19++ = *(unsigned __int8 *)(v16 + v20) | 0xFF000000 | (*(unsigned __int8 *)(v16 + v21) << 8) | (*(unsigned __int8 *)(v16 + v22) << 16); } while ( v17 != -1 ); a2 += v13 + 1; a9 = (unsigned __int16 *)((char *)a9 + (v13 + 1) * v12); } --v9; a2 = (unsigned int *)((char *)a2 + v14); a9 = (unsigned __int16 *)((char *)a9 + v15); } while ( v9 != -1 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source