// // sub_180070770 from 0x180070770 to 0x180070896 (294 bytes) // // 2 xrefs: // > @ 0x1801ad120 // > @ 0x1801f9918 // // 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 // __int64 __fastcall sub_180070770(float **a1, int a2, float *a3, __int64 a4) { float *v4; // rbx int v7; // edx float v9; // xmm0_4 float v10; // xmm6_4 float v11; // xmm0_4 float v12; // xmm0_4 double v13; // xmm3_8 float v14; // xmm0_4 float v15; // xmm0_4 v4 = *a1; if ( a2 ) { v7 = a2 - 1; if ( !v7 ) { v14 = v4[170]; v10 = -80.0; if ( v14 > 0.0 ) v15 = log10f(v14) * 20.0; else v15 = -80.0; *a3 = v15; if ( !a4 ) return 0; v12 = v4[170]; goto LABEL_10; } if ( v7 != 1 ) return 31; v9 = v4[171]; v10 = -80.0; if ( v9 > 0.0 ) v11 = log10f(v9) * 20.0; else v11 = -80.0; *a3 = v11; if ( a4 ) { v12 = v4[171]; LABEL_10: if ( v12 > 0.0 ) v10 = log10f(v12) * 20.0; v13 = v10; goto LABEL_20; } } else { *a3 = v4[169]; if ( a4 ) { v13 = v4[169]; LABEL_20: sub_1800B7CA0(a4, 32, "%.02f", v13); } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source