// // sub_C68BC from 0xc68bc to 0xc6c80 (964 bytes) // // 1 xrefs: // > sub_C6E00 @ 0xc6e08 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:14:46 +0000 // __int64 __fastcall sub_C68BC(float32x2_t *a1, __int64 a2, __int64 a3, int a4, signed __int32 a5, double a6, double a7) { unsigned __int32 v8; // w8 __int64 v10; // x22 int v12; // w24 int v13; // w25 float v14; // s0 int v15; // w9 float v16; // s1 int v17; // w8 float v18; // s1 int v19; // w27 float v20; // s1 float v21; // s1 unsigned __int32 v22; // w10 float v23; // s1 float v24; // s2 int v25; // w26 unsigned __int64 v26; // d0 __int64 v27; // x25 __int64 v28; // x27 __int64 v29; // x24 char *v30; // x28 int v31; // w1 int v32; // w1 float v33; // s0 float v34; // s1 int v35; // w8 __int64 v36; // x0 char v37; // nf bool v38; // vf int v39; // w8 unsigned __int32 v40; // w8 __int64 i; // x25 unsigned __int64 v42; // x27 __int64 j; // x28 char *v44; // x19 int v45; // w1 float v46; // s0 float v47; // s1 __int64 v48; // x0 int v49; // w8 unsigned __int32 v50; // w8 if ( !a2 ) return 0; v8 = *(_DWORD *)(a1[21].n64_u64[0] + 1744); v10 = a2; if ( a1[124].n64_u32[0] == a5 ) { v12 = 0; } else { v12 = 1; a1[124].n64_u32[0] = a5; } if ( a1[123].n64_u32[1] == v8 ) { v13 = 0; } else { v13 = 1; a1[123].n64_u32[1] = v8; } v14 = a1[124].n64_f32[1]; if ( a1[68].n64_f32[0] != v14 ) { v13 = 1; a1[68].n64_f32[0] = v14; } LODWORD(a6) = a1[68].n64_u32[1]; LODWORD(a7) = a1[125].n64_u32[0]; if ( *(float *)&a6 == *(float *)&a7 ) { v15 = 0; } else { v15 = 1; a6 = a7; a1[68].n64_u32[1] = LODWORD(a7); } v16 = a1[125].n64_f32[1]; if ( a1[69].n64_f32[0] == v16 ) { v17 = 0; } else { v17 = 1; a1[69].n64_f32[0] = v16; } v18 = a1[126].n64_f32[0]; if ( a1[69].n64_f32[1] == v18 ) { v19 = 0; } else { v19 = 1; a1[69].n64_f32[1] = v18; } v20 = a1[126].n64_f32[1]; if ( a1[70].n64_f32[0] != v20 ) { v19 = 1; a1[70].n64_f32[0] = v20; } v21 = a1[127].n64_f32[0]; if ( a1[70].n64_f32[1] != v21 ) { v19 = 1; a1[70].n64_f32[1] = v21; } if ( a1[71].n64_u8[4] ) { v22 = a1[127].n64_u32[1]; v12 = 1; a1[71].n64_u8[4] = 0; a1[71].n64_u32[0] = v22; } v23 = a1[128].n64_f32[0]; if ( a1[72].n64_f32[0] != v23 ) { v12 = 1; a1[72].n64_f32[0] = v23; } if ( !v15 ) { v25 = 0; if ( !v17 ) goto LABEL_32; goto LABEL_31; } v24 = 1.0 - *(float *)&a6; v25 = 1; v26 = vdiv_f32(vdup_lane_s32(*(int32x2_t *)&a6, 0), a1[79]).n64_u64[0]; a1[81].n64_f32[1] = v24; a1[80].n64_u64[0] = v26; if ( v17 ) { LABEL_31: sub_C6204((__int64)a1); v25 = 1; } LABEL_32: if ( v19 ) { sub_C62AC((float *)a1); LABEL_35: sub_C6318((__int64)a1); v25 = 1; goto LABEL_36; } if ( v13 ) goto LABEL_35; LABEL_36: if ( v12 ) { sub_C6478((__int64)a1); v25 = 1; } if ( a4 ) { v27 = 0; v28 = 0; v29 = a5; while ( v28 < a5 ) { v30 = (char *)a1 + v27 * 4; v31 = a1[83].n64_i32[v27]; if ( v25 ) { *((_DWORD *)v30 + 214) = v31 + 128; if ( v31 + 128 >= (signed __int32)a1[77].n64_u32[0] ) v32 = 0; else v32 = v31 + 128; *((_DWORD *)v30 + 214) = v32; v33 = sub_C67CC((__int64)a1, v32); v34 = *((float *)v30 + 182); *((float *)v30 + 198) = (float)(v33 - v34) * a1[81].n64_f32[0]; } else { sub_C6598((__int64)a1, v31, (float *)v30 + 182, (float *)v30 + 198, (int *)v30 + 214); v34 = *((float *)v30 + 182); } *(float *)(a3 + v27 * 4) = v34 * *(float *)(v10 + v27 * 4); a1[91].n64_f32[v27] = a1[91].n64_f32[v27] + a1[99].n64_f32[v27]; v35 = *((_DWORD *)v30 + 166) + 1; *((_DWORD *)v30 + 166) = v35; if ( v35 >= (signed __int32)a1[77].n64_u32[0] ) { if ( v27 * 4 || (v36 = sub_C6E84(), v37 ^ v38) ) v40 = a1[78].n64_u32[1]; else sub_C6EC0(v36); v38 = __OFSUB__(v40, 1); v39 = v40 - 1; if ( v39 < 0 != v38 ) { *((_DWORD *)v30 + 166) = 0; } else { *((_DWORD *)v30 + 166) = -1; a1[78].n64_u32[1] = v39; } } ++v28; ++v27; } v10 += 4LL * a5; a3 += 4LL * a5; } else { v29 = a5; } for ( i = 4 * v29; --a4; v10 += i ) { v42 = 0; for ( j = 0; j < v29; ++j ) { v44 = (char *)a1 + v42; v45 = a1[83].n64_i32[v42 / 4]; if ( v45 >= (signed __int32)a1[107].n64_u32[v42 / 4] ) { sub_C6598((__int64)a1, v45, (float *)v44 + 182, (float *)v44 + 198, (int *)v44 + 214); v45 = *((_DWORD *)v44 + 166); } *(float *)(a3 + v42) = *((float *)v44 + 182) * *(float *)(v10 + v42); v46 = *((float *)v44 + 198); v47 = *((float *)v44 + 182); *((_DWORD *)v44 + 166) = v45 + 1; *((float *)v44 + 182) = v47 + v46; if ( v45 + 1 >= (signed __int32)a1[77].n64_u32[0] ) { if ( v42 || (v48 = sub_C6E84(), v37 ^ v38) ) v50 = a1[78].n64_u32[1]; else sub_C6EC0(v48); v38 = __OFSUB__(v50, 1); v49 = v50 - 1; if ( v49 < 0 != v38 ) { *((_DWORD *)v44 + 166) = 0; } else { *((_DWORD *)v44 + 166) = -1; a1[78].n64_u32[1] = v49; } } v42 += 4LL; } a3 += i; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source