// // sub_10049E738 from 0x10049e738 to 0x10049e888 (336 bytes) // // 1 xrefs: // > sub_1004A0110 @ 0x1004a0118 // // 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_10049E738(__int64 a1, int a2, int a3, float a4) { float v6; // s1 __int64 result; // x0 int *v8; // x1 int *v9; // [xsp+8h] [xbp-18h] BYREF switch ( a2 ) { case 0: *(float *)(a1 + 2080) = a4; if ( !a3 ) goto LABEL_28; goto LABEL_30; case 1: *(float *)(a1 + 2084) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 2: *(float *)(a1 + 2088) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 3: *(float *)(a1 + 2092) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 4: *(float *)(a1 + 2096) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 5: *(float *)(a1 + 2100) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 6: *(float *)(a1 + 2104) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 7: *(float *)(a1 + 2108) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 8: *(float *)(a1 + 2112) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 9: *(float *)(a1 + 2116) = a4; if ( !a3 ) goto LABEL_28; goto LABEL_30; case 10: *(float *)(a1 + 2120) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 11: *(float *)(a1 + 2124) = a4; if ( a3 ) goto LABEL_30; goto LABEL_28; case 12: *(float *)(a1 + 2128) = a4; v6 = 0.0; if ( a4 > -80.0 ) v6 = __exp10f(a4 / 20.0); *(float *)(a1 + 2132) = v6; if ( a3 ) { LABEL_30: result = sub_10043E710(*(_QWORD *)(a1 + 168), &v9, 16, 1); if ( !(_DWORD)result ) { *(_BYTE *)v9 = 7; v8 = v9; *((_QWORD *)v9 + 1) = a1; result = sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v8, 1); } } else { LABEL_28: result = 0; } break; default: result = 31; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source