{"type": "func", "start": 5369103616, "end": 5369104080, "name": "FMODAudioEngine::queuePlayEffect", "pseudocode": "// \n// FMODAudioEngine::queuePlayEffect from 0x140060500 to 0x1400606d0 (464 bytes)\n// \n// 2 xrefs:\n// > FMODAudioEngine::playEffectAdvanced @ 0x14005fcf6\n// > <???> @ 0x140910a60\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:43 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall FMODAudioEngine::queuePlayEffect(\n        __int64 a1,\n        _QWORD *a2,\n        float a3,\n        float a4,\n        unsigned int a5,\n        unsigned int a6,\n        char a7,\n        char a8,\n        unsigned int a9,\n        unsigned int a10,\n        unsigned int a11,\n        unsigned int a12,\n        char a13,\n        int a14,\n        char a15,\n        unsigned int a16,\n        unsigned int a17,\n        int a18)\n{\n  __int64 v18; // rdi\n  int v20; // ecx\n  __int64 v21; // rax\n  unsigned int v22; // ebx\n  __int64 v24; // [rsp+30h] [rbp-C1h] BYREF\n  _OWORD v25[2]; // [rsp+58h] [rbp-99h] BYREF\n  __m128i si128; // [rsp+78h] [rbp-79h]\n  __int16 v27; // [rsp+88h] [rbp-69h]\n  unsigned __int64 v28; // [rsp+8Ch] [rbp-65h]\n  unsigned __int64 v29; // [rsp+94h] [rbp-5Dh]\n  char v30; // [rsp+9Ch] [rbp-55h]\n  int v31; // [rsp+A0h] [rbp-51h]\n  __int16 v32; // [rsp+A4h] [rbp-4Dh]\n  int v33; // [rsp+A8h] [rbp-49h]\n  __int64 v34; // [rsp+B0h] [rbp-41h]\n  unsigned __int64 v35; // [rsp+B8h] [rbp-39h]\n  int v36; // [rsp+C0h] [rbp-31h]\n  _QWORD *v37; // [rsp+C8h] [rbp-29h]\n\n  v18 = (__int64)a2;\n  v37 = a2;\n  v25[0] = 0;\n  v25[1] = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(v25[0]) = 0;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140836740);\n  v27 = 0;\n  v28 = 0;\n  v29 = 0;\n  v30 = 0;\n  v31 = 0;\n  v32 = 0;\n  v33 = 0;\n  v34 = 0;\n  v35 = 0;\n  v36 = 0;\n  if ( v25 != (_OWORD *)a2 )\n  {\n    if ( a2[3] > 0xFu )\n      a2 = (_QWORD *)*a2;\n    sub_1400405A0((void **)v25, a2, *(_QWORD *)(v18 + 16));\n  }\n  si128.m128i_i64[0] = __PAIR64__(LODWORD(a4), LODWORD(a3));\n  si128.m128i_i64[1] = __PAIR64__(a6, a5);\n  LOBYTE(v27) = a7;\n  HIBYTE(v27) = a8;\n  v28 = __PAIR64__(a10, a9);\n  v29 = __PAIR64__(a12, a11);\n  v30 = a13;\n  v31 = a14;\n  LOBYTE(v32) = a15;\n  v20 = dword_1408FE35C++;\n  v33 = v20;\n  v35 = __PAIR64__(a17, a16);\n  v36 = a18;\n  v21 = sub_14003F4F0((__int64)&v24, v18);\n  v34 = FMODAudioEngine::preloadEffectAsync(a1, v21);\n  if ( *(_QWORD *)(a1 + 1976) == *(_QWORD *)(a1 + 1984) )\n  {\n    sub_1400697A0(a1 + 1968, *(_QWORD *)(a1 + 1976), v25);\n  }\n  else\n  {\n    sub_140063FF0(*(_QWORD *)(a1 + 1976), v25);\n    *(_QWORD *)(a1 + 1976) += 112LL;\n  }\n  v22 = v33;\n  sub_14003D310((__int64)v25);\n  sub_14003D310(v18);\n  return v22;\n}", "assembly": "; \n; FMODAudioEngine::queuePlayEffect from 0x140060500 to 0x1400606d0 (464 bytes)\n; \n; 2 xrefs:\n; > FMODAudioEngine::playEffectAdvanced @ 0x14005fcf6\n; > <???> @ 0x140910a60\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:43 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x140060500\npush    rbp                                                            ; +0x3, 0x140060503\npush    rbx                                                            ; +0x4, 0x140060504\npush    rdi                                                            ; +0x5, 0x140060505\nlea     rbp, [rax-1Fh]                                                 ; +0x6, 0x140060506\nsub     rsp, 0F0h                                                      ; +0xa, 0x14006050a\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x11, 0x140060511\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x15, 0x140060515\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x140060519\nxor     rax, rsp                                                       ; +0x20, 0x140060520\nmov     qword ptr [rbp+17h+var_38], rax                                ; +0x23, 0x140060523\nmovaps  xmm7, xmm3                                                     ; +0x27, 0x140060527\nmovaps  xmm6, xmm2                                                     ; +0x2a, 0x14006052a\nmov     rdi, rdx                                                       ; +0x2d, 0x14006052d\nmov     rbx, rcx                                                       ; +0x30, 0x140060530\nmov     [rbp+17h+var_40], rdx                                          ; +0x33, 0x140060533\nxorps   xmm0, xmm0                                                     ; +0x37, 0x140060537\nmovups  [rsp+100h+var_B8+8], xmm0                                      ; +0x3a, 0x14006053a\nmovdqa  xmm1, cs:Size                                                  ; +0x3f, 0x14006053f\nmovdqa  [rsp+100h+var_A8+8], xmm1                                      ; +0x47, 0x140060547\nmov     byte ptr [rsp+100h+var_B8+8], 0                                ; +0x4d, 0x14006054d\nmovdqa  xmm0, cs:xmmword_140836740                                     ; +0x52, 0x140060552\nmovaps  [rbp+17h+var_90], xmm0                                         ; +0x5a, 0x14006055a\nmov     [rbp+17h+var_80], 0                                            ; +0x5e, 0x14006055e\nxor     eax, eax                                                       ; +0x64, 0x140060564\nmov     [rbp+17h+var_7C], rax                                          ; +0x66, 0x140060566\nmov     [rbp+17h+var_74], rax                                          ; +0x6a, 0x14006056a\nmov     [rbp+17h+var_6C], al                                           ; +0x6e, 0x14006056e\nmov     [rbp+17h+var_68], eax                                          ; +0x71, 0x140060571\nmov     [rbp+17h+var_64], ax                                           ; +0x74, 0x140060574\nmov     [rbp+17h+var_60], eax                                          ; +0x78, 0x140060578\nmov     [rbp+17h+var_58], rax                                          ; +0x7b, 0x14006057b\nmov     [rbp+17h+var_50], rax                                          ; +0x7f, 0x14006057f\nmov     [rbp+17h+var_48], eax                                          ; +0x83, 0x140060583\nlea     rax, [rsp+100h+var_B8+8]                                       ; +0x86, 0x140060586\ncmp     rax, rdx                                                       ; +0x8b, 0x14006058b\njz      short loc_1400605A8                                            ; +0x8e, 0x14006058e\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x90, 0x140060590\njbe     short loc_14006059A                                            ; +0x95, 0x140060595\nmov     rdx, [rdx]; Src                                                ; +0x97, 0x140060597\nmov     r8, [rdi+10h]; Size                                            ; +0x9a, 0x14006059a\nlea     rcx, [rsp+100h+var_B8+8]; void *                               ; +0x9e, 0x14006059e\ncall    sub_1400405A0                                                  ; +0xa3, 0x1400605a3\nmovss   dword ptr [rbp+17h+var_90], xmm6                               ; +0xa8, 0x1400605a8\nmovss   dword ptr [rbp+17h+var_90+4], xmm7                             ; +0xad, 0x1400605ad\nmovss   xmm0, [rbp+17h+arg_20]                                         ; +0xb2, 0x1400605b2\nmovss   dword ptr [rbp+17h+var_90+8], xmm0                             ; +0xb7, 0x1400605b7\nmovss   xmm1, [rbp+17h+arg_28]                                         ; +0xbc, 0x1400605bc\nmovss   dword ptr [rbp+17h+var_90+0Ch], xmm1                           ; +0xc1, 0x1400605c1\nmovzx   eax, [rbp+17h+arg_30]                                          ; +0xc6, 0x1400605c6\nmov     byte ptr [rbp+17h+var_80], al                                  ; +0xca, 0x1400605ca\nmovzx   eax, [rbp+17h+arg_38]                                          ; +0xcd, 0x1400605cd\nmov     byte ptr [rbp+17h+var_80+1], al                                ; +0xd1, 0x1400605d1\nmov     eax, [rbp+17h+arg_40]                                          ; +0xd4, 0x1400605d4\nmov     dword ptr [rbp+17h+var_7C], eax                                ; +0xd7, 0x1400605d7\nmov     eax, [rbp+17h+arg_48]                                          ; +0xda, 0x1400605da\nmov     dword ptr [rbp+17h+var_7C+4], eax                              ; +0xdd, 0x1400605dd\nmov     eax, [rbp+17h+arg_50]                                          ; +0xe0, 0x1400605e0\nmov     dword ptr [rbp+17h+var_74], eax                                ; +0xe3, 0x1400605e3\nmov     eax, [rbp+17h+arg_58]                                          ; +0xe6, 0x1400605e6\nmov     dword ptr [rbp+17h+var_74+4], eax                              ; +0xe9, 0x1400605e9\nmovzx   eax, [rbp+17h+arg_60]                                          ; +0xec, 0x1400605ec\nmov     [rbp+17h+var_6C], al                                           ; +0xf3, 0x1400605f3\nmov     eax, [rbp+17h+arg_68]                                          ; +0xf6, 0x1400605f6\nmov     [rbp+17h+var_68], eax                                          ; +0xfc, 0x1400605fc\nmovzx   eax, [rbp+17h+arg_70]                                          ; +0xff, 0x1400605ff\nmov     byte ptr [rbp+17h+var_64], al                                  ; +0x106, 0x140060606\nmov     ecx, cs:dword_1408FE35C                                        ; +0x109, 0x140060609\nlea     eax, [rcx+1]                                                   ; +0x10f, 0x14006060f\nmov     cs:dword_1408FE35C, eax                                        ; +0x112, 0x140060612\nmov     [rbp+17h+var_60], ecx                                          ; +0x118, 0x140060618\nmov     eax, [rbp+17h+arg_78]                                          ; +0x11b, 0x14006061b\nmov     dword ptr [rbp+17h+var_50], eax                                ; +0x121, 0x140060621\nmovss   xmm0, [rbp+17h+arg_80]                                         ; +0x124, 0x140060624\nmovss   dword ptr [rbp+17h+var_50+4], xmm0                             ; +0x12c, 0x14006062c\nmov     eax, [rbp+17h+arg_88]                                          ; +0x131, 0x140060631\nmov     [rbp+17h+var_48], eax                                          ; +0x137, 0x140060637\nmov     rdx, rdi                                                       ; +0x13a, 0x14006063a\nlea     rcx, [rsp+28h]                                                 ; +0x13d, 0x14006063d\ncall    sub_14003F4F0                                                  ; +0x142, 0x140060642\nmov     rdx, rax                                                       ; +0x147, 0x140060647\nmov     rcx, rbx                                                       ; +0x14a, 0x14006064a\ncall    FMODAudioEngine__preloadEffectAsync                            ; +0x14d, 0x14006064d\nmov     [rbp+17h+var_58], rax                                          ; +0x152, 0x140060652\nmov     rax, [rbx+7B8h]                                                ; +0x156, 0x140060656\ncmp     rax, [rbx+7C0h]                                                ; +0x15d, 0x14006065d\njz      short loc_14006067D                                            ; +0x164, 0x140060664\nlea     rdx, [rsp+100h+var_B8+8]                                       ; +0x166, 0x140060666\nmov     rcx, rax                                                       ; +0x16b, 0x14006066b\ncall    sub_140063FF0                                                  ; +0x16e, 0x14006066e\nadd     qword ptr [rbx+7B8h], 70h ; 'p'                                ; +0x173, 0x140060673\njmp     short loc_140060691                                            ; +0x17b, 0x14006067b\nlea     r8, [rsp+100h+var_B8+8]                                        ; +0x17d, 0x14006067d\nmov     rdx, rax                                                       ; +0x182, 0x140060682\nlea     rcx, [rbx+7B0h]                                                ; +0x185, 0x140060685\ncall    sub_1400697A0                                                  ; +0x18c, 0x14006068c\nmov     ebx, [rbp+17h+var_60]                                          ; +0x191, 0x140060691\nlea     rcx, [rsp+100h+var_B8+8]                                       ; +0x194, 0x140060694\ncall    sub_14003D310                                                  ; +0x199, 0x140060699\nnop                                                                    ; +0x19e, 0x14006069e\nmov     rcx, rdi                                                       ; +0x19f, 0x14006069f\ncall    sub_14003D310                                                  ; +0x1a2, 0x1400606a2\nmov     eax, ebx                                                       ; +0x1a7, 0x1400606a7\nmov     rcx, qword ptr [rbp+17h+var_38]                                ; +0x1a9, 0x1400606a9\nxor     rcx, rsp; StackCookie                                          ; +0x1ad, 0x1400606ad\ncall    __security_check_cookie                                        ; +0x1b0, 0x1400606b0\nmovaps  xmm6, [rsp+100h+var_28+8]                                      ; +0x1b5, 0x1400606b5\nmovaps  xmm7, [rsp+100h+var_38+8]                                      ; +0x1bd, 0x1400606bd\nadd     rsp, 0F0h                                                      ; +0x1c5, 0x1400606c5\npop     rdi                                                            ; +0x1cc, 0x1400606cc\npop     rbx                                                            ; +0x1cd, 0x1400606cd\npop     rbp                                                            ; +0x1ce, 0x1400606ce\nretn                                                                   ; +0x1cf, 0x1400606cf", "xrefs": ["FMODAudioEngine::playEffectAdvanced @ 0x14005fcf6", "<???> @ 0x140910a60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}