// // sub_974E0 from 0x974e0 to 0x97680 (416 bytes) // // 1 xrefs: // > sub_9788A @ 0x97894 // // 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_974E0(float *a1, int a2, int a3, unsigned int a4, int a5) { unsigned int v6; // r6 int v9; // r8 float v10; // s2 float v11; // s4 float v12; // s0 float v13; // s4 float v14; // s6 float *v15; // r0 int i; // r2 int j; // r3 if ( a2 ) { v6 = a4; v9 = 0; do { v10 = a1[94]; v11 = a1[249]; if ( v10 == v11 ) { v12 = a1[95]; if ( !v6 || v12 == a1[250] ) { LABEL_22: if ( v12 >= a1[96] ) { qmemcpy((void *)(a3 + v9), (const void *)(a2 + v9), 4 * a5 * a4 - v9); } else if ( v12 >= 10.0 ) { sub_96ADC(a1, (float *)(a2 + v9), (float *)(a3 + v9), v6, a5); } else { memset((void *)(a3 + v9), 0, 4 * a5 * a4 - v9); v15 = a1 + 99; for ( i = 0; i < a5; ++i ) { for ( j = 0; j != 4; ++j ) v15[j] = 0.0; v15 += 4; } } return 0; } } else { v12 = a1[95]; if ( !v6 ) goto LABEL_22; } if ( v10 >= v11 ) { if ( v10 > v11 ) { v10 = v10 + -1.0; a1[94] = v10; if ( v10 <= v11 ) { LABEL_13: v10 = v11; a1[94] = v11; } } } else { v10 = v10 + 1.0; a1[94] = v10; if ( v10 >= v11 ) goto LABEL_13; } v13 = a1[250]; v14 = (float)(v12 * 0.01) + 10.0; if ( v12 >= v13 ) { if ( v12 <= v13 ) goto LABEL_20; v12 = v12 - v14; a1[95] = v12; if ( v12 > v13 ) goto LABEL_20; } else { v12 = v14 + v12; a1[95] = v12; if ( v12 < v13 ) goto LABEL_20; } v12 = v13; a1[95] = v13; LABEL_20: sub_969A4((int)a1, v10, v12); sub_96ADC(a1, (float *)(a2 + v9), (float *)(a3 + v9), 1u, a5); --v6; v9 += 4 * a5; } while ( v6 ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source