// // sub_94038 from 0x94038 to 0x941e0 (424 bytes) // // 1 xrefs: // > sub_94268 @ 0x94272 // // 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 // int __fastcall sub_94038(float *a1, int a2, int a3, float a4, int a5) { int v6; // r6 int v9; // r8 float v10; // s2 float v11; // s4 float v12; // s0 float v13; // s4 float v14; // s6 _DWORD *v15; // r0 int v16; // r2 if ( a2 ) { v6 = LODWORD(a4); v9 = 0; do { v10 = a1[96]; v11 = a1[232]; if ( v10 == v11 ) { v12 = a1[94]; if ( !v6 || v12 == a1[231] ) { LABEL_22: if ( v12 >= 2.0 ) { if ( v12 >= a1[95] ) { memset((void *)(a3 + v9), 0, 4 * a5 * LODWORD(a4) - v9); v15 = a1 + 97; v16 = 0; while ( v16 < a5 ) { v15[96] = 0; ++v16; *v15 = 0; v15[32] = 0; v15[64] = 0; ++v15; } } else { sub_938D8(a1, (float *)(a2 + v9), (float *)(a3 + v9), v6, a5); } } else { qmemcpy((void *)(a3 + v9), (const void *)(a2 + v9), 4 * a5 * LODWORD(a4) - v9); } return 0; } } else { v12 = a1[94]; if ( !v6 ) goto LABEL_22; } if ( v10 >= v11 ) { if ( v10 > v11 ) { v10 = v10 + -1.0; a1[96] = v10; if ( v10 <= v11 ) { LABEL_13: v10 = v11; a1[96] = v11; } } } else { v10 = v10 + 1.0; a1[96] = v10; if ( v10 >= v11 ) goto LABEL_13; } v13 = a1[231]; v14 = (float)(v12 * 0.01) + 10.0; if ( v12 >= v13 ) { if ( v12 <= v13 ) goto LABEL_20; v12 = v12 - v14; a1[94] = v12; if ( v12 > v13 ) goto LABEL_20; } else { v12 = v14 + v12; a1[94] = v12; if ( v12 < v13 ) goto LABEL_20; } v12 = v13; a1[94] = v13; LABEL_20: sub_93848((int)a1, v10, v12, a4); sub_938D8(a1, (float *)(a2 + v9), (float *)(a3 + v9), 1, a5); --v6; v9 += 4 * a5; } while ( v6 ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source