// // sub_5A3F8 from 0x5a3f8 to 0x5a570 (376 bytes) // // 1 xrefs: // > FMOD::System::playSound @ 0xb98d8 // // 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_5A3F8(int a1, _DWORD *a2, int a3, int a4, _DWORD *a5) { int v9; // r0 int v10; // r5 int v11; // r0 int v12; // r0 int v13; // r0 int v14; // r0 int v15; // r9 int v16; // r1 int v17; // r0 int v18; // r0 _DWORD *v20; // r3 float v21; // s16 _DWORD *v22; // r5 _DWORD *v23; // r9 int v24; // r0 int v25; // r0 _DWORD *v26; // [sp+Ch] [bp-3Ch] int v27; // [sp+10h] [bp-38h] float v28; // [sp+14h] [bp-34h] BYREF int v29; // [sp+18h] [bp-30h] BYREF _DWORD *v30; // [sp+1Ch] [bp-2Ch] BYREF v30 = nullptr; if ( a5 ) *a5 = 0; if ( !a2 ) return 31; v9 = a2[47]; __dmb(0xBu); if ( v9 ) return 46; if ( a2[5] == 11 ) return 19; v11 = a2[48]; if ( !v11 || *(int *)(v11 + 52) < 0 ) goto LABEL_18; v12 = sub_54E1C(v11, &v29); if ( v12 ) return v12; v13 = a2[48]; if ( v29 < *(_DWORD *)(v13 + 52) ) goto LABEL_18; v14 = *(_DWORD *)(v13 + 56); if ( v14 != 2 ) { if ( v14 == 1 ) { v15 = 1; goto LABEL_19; } if ( !v14 ) return 37; LABEL_18: v15 = 0; LABEL_19: v16 = -1; goto LABEL_20; } v20 = (_DWORD *)(a1 + 592); v21 = 9999.0; v16 = -1; v22 = (_DWORD *)(a1 + 592); while ( 1 ) { v22 = (_DWORD *)*v22; if ( v22 == v20 ) break; v23 = v22; if ( v22 ) v23 = v22 - 70; v24 = v23[83]; if ( v24 ) { v25 = *(_DWORD *)(v24 + 20); if ( v25 ) { if ( *(_DWORD *)(v25 + 192) == a2[48] ) { v27 = v16; v26 = v20; (*(void (__fastcall **)(_DWORD *, float *))(*v23 + 32))(v23, &v28); v16 = v27; if ( v28 < v21 ) { v30 = v23; v16 = v23[81]; v21 = v28; } v20 = v26; } } } } v15 = 0; LABEL_20: v17 = sub_60B04(a1, v16, a2, &v30); if ( v17 ) goto LABEL_21; v18 = sub_4ABC8(v30, a2, a3, a4, 1, v15); if ( v18 ) { v10 = v18; if ( a5 ) *a5 = 0; sub_4A9A4(v30, 82); } else { v17 = sub_4A4F8((int)v30); if ( v17 || (v17 = sub_4A4B4((int)v30, 1)) != 0 ) { LABEL_21: v10 = v17; if ( a5 ) *a5 = 0; return v10; } if ( a5 ) *a5 = v30[11]; return 0; } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source