// // cocos2d::tgaFlipImage from 0x7f7c44 to 0x7f7cd0 (140 bytes) // // 1 xrefs: // > cocos2d::tgaLoad @ 0x7f7dec // // 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:11 +0000 // void __fastcall cocos2d::tgaFlipImage(int a1) { size_t v2; // r4 void *v3; // r6 int v4; // r8 int i; // r7 int v6; // r5 int v7; // r9 int v8; // [sp+4h] [bp-8h] v2 = *(__int16 *)(a1 + 6) * (*(unsigned __int8 *)(a1 + 5) >> 3); v3 = malloc(v2); if ( v3 ) { v4 = 0; for ( i = 0; ; ++i ) { v6 = *(__int16 *)(a1 + 8); v4 += v2; if ( i >= v6 / 2 ) break; v7 = ~i; v8 = *(_DWORD *)(a1 + 12); memcpy(v3, (const void *)(v8 + v4 - v2), v2); memcpy((void *)(*(_DWORD *)(a1 + 12) + v4 - v2), (const void *)(v8 + v2 * (v6 + v7)), v2); memcpy((void *)(*(_DWORD *)(a1 + 12) + v2 * (v7 + *(__int16 *)(a1 + 8))), v3, v2); } free(v3); *(_DWORD *)(a1 + 16) = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source