// // sub_8AF154 from 0x8af154 to 0x8af1ea (150 bytes) // // 0 xrefs: // // 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:53 +0000 // _DWORD *__fastcall sub_8AF154(_DWORD *a1, unsigned int a2, unsigned int a3) { int v5; // r4 int v6; // r8 _DWORD *large; // r5 int v8; // r6 int v10; // r3 v5 = a3; v6 = a1[1]; if ( a3 > 0x3B9AC9F0 ) { *(_DWORD *)(*a1 + 20) = 56; *(_DWORD *)(*a1 + 24) = 3; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } if ( (v5 & 7) != 0 ) v5 = v5 + 8 - (v5 & 7); if ( a2 > 1 ) { *(_DWORD *)(*a1 + 20) = 15; *(_DWORD *)(*a1 + 24) = a2; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } large = (_DWORD *)jpeg_get_large((int)a1, v5 + 16); if ( !large ) { *(_DWORD *)(*a1 + 20) = 56; *(_DWORD *)(*a1 + 24) = 4; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } v8 = v6 + 4 * a2; *(_DWORD *)(v6 + 76) += 16 + v5; v10 = *(_DWORD *)(v8 + 60); large[1] = v5; large[2] = 0; *large = v10; *(_DWORD *)(v8 + 60) = large; return large + 4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source