// // sub_8AF7E4 from 0x8af7e4 to 0x8af8fc (280 bytes) // // 1 xrefs: // > sub_8AF8FC @ 0x8afa02 // // 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 // int __fastcall sub_8AF7E4(_DWORD *a1, unsigned int a2, int a3, signed int a4) { int v4; // r4 int v7; // r6 signed int v8; // r7 int v9; // r11 unsigned int v10; // r6 unsigned int v11; // r8 int v12; // r9 int v13; // r7 _DWORD *large; // r2 int v15; // r3 _DWORD *v16; // r7 _DWORD *v17; // r3 int v20; // [sp+4h] [bp-10h] v4 = a3 << 7; v7 = a1[1]; v8 = 0x3B9AC9F0u / (a3 << 7); if ( !v8 ) { *(_DWORD *)(*a1 + 20) = 72; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } if ( v8 >= a4 ) v8 = a4; *(_DWORD *)(v7 + 80) = v8; v9 = sub_8AEF28(a1, a2, 4 * a4); if ( a4 ) { v10 = 0; v11 = v8; v20 = 4 * a2; do { v12 = a1[1]; if ( v11 >= a4 - v10 ) v11 = a4 - v10; v13 = v4 * v11; if ( v4 * v11 > 0x3B9AC9F0 ) { *(_DWORD *)(*a1 + 20) = 56; *(_DWORD *)(*a1 + 24) = 3; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } if ( a2 > 1 ) { *(_DWORD *)(*a1 + 20) = 15; *(_DWORD *)(*a1 + 24) = a2; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } large = (_DWORD *)jpeg_get_large((int)a1, v13 + 16); if ( !large ) { *(_DWORD *)(*a1 + 20) = 56; *(_DWORD *)(*a1 + 24) = 4; (*(void (__fastcall **)(_DWORD *))*a1)(a1); large = nullptr; } *(_DWORD *)(v12 + 76) += 16 + v13; v15 = *(_DWORD *)(v20 + v12 + 60); large[1] = v13; v16 = large + 4; large[2] = 0; *large = v15; *(_DWORD *)(v20 + v12 + 60) = large; if ( v11 ) { v17 = (_DWORD *)(v9 + 4 * v10); v10 += v11; do { *v17++ = v16; v16 = (_DWORD *)((char *)v16 + v4); } while ( v17 != (_DWORD *)(v9 + 4 * v10) ); } } while ( a4 > v10 ); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source