// // sub_6E15C from 0x6e15c to 0x6e374 (536 bytes) // // 1 xrefs: // > FMOD::System::playSound @ 0xddb88 // // 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_6E15C(__int64 a1, __int64 a2, __int64 a3, char a4, _QWORD *a5) { unsigned int v11; // w24 __int64 v12; // x0 unsigned int v13; // w0 __int64 v14; // x8 int v15; // w8 char v16; // w25 unsigned int v17; // w24 unsigned int v18; // w0 unsigned int v19; // w0 float v21; // s8 _QWORD *v22; // x27 __int64 v23; // x25 __int64 v24; // x8 __int64 v25; // x8 float v26; // [xsp+0h] [xbp-60h] BYREF int v27; // [xsp+4h] [xbp-5Ch] BYREF __int64 v28; // [xsp+8h] [xbp-58h] BYREF v28 = 0; if ( a5 ) *a5 = 0; if ( !a2 ) return 31; if ( atomic_load((unsigned int *)(a2 + 272)) ) return 46; if ( *(_DWORD *)(a2 + 36) == 11 ) return 19; v12 = *(_QWORD *)(a2 + 280); if ( !v12 || (*(_DWORD *)(v12 + 104) & 0x80000000) != 0 ) goto LABEL_18; v13 = sub_6772C(v12, (__int64)&v27); if ( v13 ) return v13; v14 = *(_QWORD *)(a2 + 280); if ( v27 < *(_DWORD *)(v14 + 104) ) goto LABEL_18; v15 = *(_DWORD *)(v14 + 108); if ( v15 != 2 ) { if ( v15 == 1 ) { v16 = 1; goto LABEL_19; } if ( !v15 ) return 37; LABEL_18: v16 = 0; LABEL_19: v17 = -1; goto LABEL_20; } v21 = *(float *)""; v17 = -1; v22 = (_QWORD *)(a1 + 872); while ( 1 ) { v22 = (_QWORD *)*v22; if ( v22 == (_QWORD *)(a1 + 872) ) break; if ( v22 ) v23 = (__int64)(v22 - 47); else v23 = 0; v24 = *(_QWORD *)(v23 + 472); if ( v24 ) { v25 = *(_QWORD *)(v24 + 40); if ( v25 ) { if ( *(_QWORD *)(v25 + 280) == *(_QWORD *)(a2 + 280) ) { (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v23 + 64LL))(v23, &v26); if ( v26 < v21 ) { v28 = v23; v17 = *(_DWORD *)(v23 + 464); v21 = v26; } } } } } v16 = 0; LABEL_20: v18 = sub_75F9C(a1, v17, a2, &v28); if ( v18 ) goto LABEL_21; v19 = sub_59FEC(v28, a2, a3, a4 & 1, 1, v16); if ( v19 ) { v11 = v19; if ( a5 ) *a5 = 0; sub_59D94(); } else { v18 = sub_597E0(v28); if ( v18 || (v18 = sub_704E0()) != 0 ) { LABEL_21: v11 = v18; if ( a5 ) *a5 = 0; return v11; } v11 = 0; if ( a5 ) *a5 = *(_QWORD *)(v28 + 80); } return v11; }