// // jpeg_finish_compress from 0x876f24 to 0x876ffc (216 bytes) // // 1 xrefs: // > cocos2d::CCImage::_saveImageToJPG @ 0x7ec118 // // 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:03:03 +0000 // int __fastcall jpeg_finish_compress(_DWORD *a1) { int v2; // r3 int i; // r3 unsigned int v4; // r5 int v5; // r3 v2 = a1[5]; if ( (unsigned int)(v2 - 101) <= 1 ) { if ( a1[66] < a1[8] ) { *(_DWORD *)(*a1 + 20) = 69; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } (*(void (__fastcall **)(_DWORD *))(a1[98] + 8))(a1); } else if ( v2 != 103 ) { *(_DWORD *)(*a1 + 20) = 21; *(_DWORD *)(*a1 + 24) = a1[5]; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } for ( i = a1[98]; !*(_DWORD *)(i + 16); i = a1[98] ) { (*(void (__fastcall **)(_DWORD *))i)(a1); v4 = 0; while ( a1[72] > v4 ) { while ( 1 ) { v5 = a1[2]; if ( v5 ) { *(_DWORD *)(v5 + 4) = v4; *(_DWORD *)(a1[2] + 8) = a1[72]; (*(void (__fastcall **)(_DWORD *))a1[2])(a1); } ++v4; if ( !(*(int (__fastcall **)(_DWORD *, _DWORD))(a1[101] + 4))(a1, 0) ) break; if ( a1[72] <= v4 ) goto LABEL_12; } *(_DWORD *)(*a1 + 20) = 25; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } LABEL_12: (*(void (__fastcall **)(_DWORD *))(a1[98] + 8))(a1); } (*(void (__fastcall **)(_DWORD *))(a1[102] + 12))(a1); (*(void (__fastcall **)(_DWORD *))(a1[6] + 16))(a1); return jpeg_abort(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source