// // jinit_c_coef_controller from 0x6691f8 to 0x66934e (342 bytes) // // 1 xrefs: // > jinit_compress_master @ 0x66dae6 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _DWORD *__fastcall jinit_c_coef_controller(int a1, int a2) { _DWORD *result; // r0 _DWORD *v5; // r6 int v6; // r4 _DWORD *v7; // r8 int v8; // r6 int v9; // r1 int (__fastcall *v10)(int, int, _DWORD, int, int, _DWORD); // r9 int v11; // r7 int v12; // r0 int v13; // r3 int v14; // r4 unsigned int v15; // r2 int v16; // r5 unsigned int v17; // r1 int v18; // r7 int32x4_t v19; // q9 int32x4_t v20; // q8 int32x4_t *v21; // r3 int32x4_t v22; // q10 int32x4_t v23; // q8 int32x4_t v24; // q11 int32x4_t v25; // q9 unsigned int v26; // r3 int v27; // r4 unsigned int v28; // r1 result = (_DWORD *)(**(int (***)(void))(a1 + 4))(); *(_DWORD *)(a1 + 404) = result; v5 = result; *result = sub_669138; if ( a2 ) { v6 = *(_DWORD *)(a1 + 84); if ( *(int *)(a1 + 76) > 0 ) { v7 = result + 15; v8 = 0; do { ++v8; v9 = *(_DWORD *)(v6 + 8); v6 += 88; v10 = *(int (__fastcall **)(int, int, _DWORD, int, int, _DWORD))(*(_DWORD *)(a1 + 4) + 20); v11 = jround_up(*(_DWORD *)(v6 - 60), v9); v12 = jround_up(*(_DWORD *)(v6 - 56), *(_DWORD *)(v6 - 76)); result = (_DWORD *)v10(a1, 1, 0, v11, v12, *(_DWORD *)(v6 - 76)); v7[1] = result; ++v7; } while ( *(_DWORD *)(a1 + 76) > v8 ); } } else { result = (_DWORD *)(*(int (__fastcall **)(int, int, int))(*(_DWORD *)(a1 + 4) + 4))(a1, 1, 1280); v13 = ((int)((_DWORD)v5 << 29) >> 31) & 3; if ( v13 ) { v5[6] = result; if ( v13 == 1 ) { v14 = 9; v15 = 1; } else { v5[7] = result + 32; if ( v13 == 3 ) { v14 = 7; v5[8] = result + 64; v15 = 3; } else { v14 = 8; v15 = 2; } } v16 = 10 - v13; v17 = ((unsigned int)(6 - v13) >> 2) + 1; v18 = 4 * v17; } else { v16 = 10; v18 = 8; v14 = 10; v17 = 2; v15 = 0; } v19 = vdupq_n_s32(v15); v20.n128_u64[0] = 0x100000000LL; v20.n128_u64[1] = 0x300000002LL; v21 = (int32x4_t *)&v5[v13 + 6]; v22 = vdupq_n_s32((unsigned int)result); v23 = vshlq_n_s32(vaddq_s32(v19, v20), 7u); v24.n128_u64[0] = 0x500000004LL; v24.n128_u64[1] = 0x700000006LL; v25 = vaddq_s32(v19, v24); *v21 = vaddq_s32(v22, v23); if ( v17 == 2 ) v21[1] = vaddq_s32(v22, vshlq_n_s32(v25, 7u)); v26 = v15 + v18; v27 = v14 - v18; if ( v16 != v18 ) { v28 = v26 << 7; v5[v26 + 6] = &result[32 * v26]; if ( v27 != 1 ) { v5[v26 + 7] = (char *)result + v28 + 128; if ( v27 != 2 ) { result = (_DWORD *)((char *)result + v28 + 256); v5[v26 + 8] = result; } } } v5[16] = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source