// // jinit_upsampler from 0x89093c to 0x890a9e (354 bytes) // // 1 xrefs: // > jinit_master_decompress @ 0x88faea // // 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:22 +0000 // int __fastcall jinit_upsampler(int a1) { int result; // r0 int v3; // r7 _DWORD *v4; // r5 int *v5; // r6 _BYTE *v6; // r8 int v7; // r7 int v8; // r9 int v9; // r1 int v10; // r3 int v11; // r11 int v12; // r10 bool v13; // zf int (__fastcall *v14)(int, int, int, _DWORD); // r9 int v15; // r0 result = (**(int (***)(void))(a1 + 4))(); *(_DWORD *)(a1 + 476) = result; v3 = result; *(_DWORD *)result = sub_89046C; *(_DWORD *)(result + 4) = sub_89047C; *(_DWORD *)(result + 8) = 0; if ( *(_DWORD *)(a1 + 308) ) { *(_DWORD *)(*(_DWORD *)a1 + 20) = 26; result = (**(int (__fastcall ***)(int))a1)(a1); } v4 = *(_DWORD **)(a1 + 216); if ( *(int *)(a1 + 36) > 0 ) { v5 = (int *)(v3 + 12); v6 = (_BYTE *)(v3 + 140); v7 = 0; do { v8 = v4[2]; v9 = *(_DWORD *)(a1 + 324); v10 = *(_DWORD *)(a1 + 316); v11 = *(_DWORD *)(a1 + 320); v12 = v4[10] * v4[3] / *(_DWORD *)(a1 + 328); result = v4[9]; v5[22] = v12; if ( v4[13] ) { result = result * v8 / v9; v13 = result == v10; if ( result == v10 ) v13 = v12 == v11; if ( !v13 ) { if ( v10 != 2 * result ) goto LABEL_14; if ( v12 == v11 ) { v5[10] = (int)sub_890564; } else if ( v11 == 2 * v12 ) { v5[10] = (int)sub_890780; } else { LABEL_14: if ( v10 % result || v11 % v12 ) { *(_DWORD *)(*(_DWORD *)a1 + 20) = 39; (**(void (__fastcall ***)(int))a1)(a1); } else { v5[10] = (int)sub_8906F4; *v6 = v10 / result; v6[10] = v11 / v12; } } v14 = *(int (__fastcall **)(int, int, int, _DWORD))(*(_DWORD *)(a1 + 4) + 8); v15 = jround_up(*(_DWORD *)(a1 + 112), *(_DWORD *)(a1 + 316)); result = v14(a1, 1, v15, *(_DWORD *)(a1 + 320)); *v5 = result; goto LABEL_6; } v5[10] = (int)sub_890558; } else { v5[10] = (int)sub_89055C; } LABEL_6: ++v7; v4 += 22; ++v5; ++v6; } while ( *(_DWORD *)(a1 + 36) > v7 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source