{"type": "func", "start": 5370264768, "end": 5370266308, "name": "GameManager::playSFXTrigger", "pseudocode": "// \n// GameManager::playSFXTrigger from 0x14017bcc0 to 0x14017c2c4 (1540 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::activateSFXTrigger @ 0x140241dcb\n// > SetupReverbPopup::onPlay @ 0x140446ebd\n// > SetupSFXPopup::overridePlaySFX @ 0x140448cde\n// > <???> @ 0x1406cb37c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=10\nint GameManager::playSFXTrigger(GameManager *a1, SFXTriggerGameObject *a2)\n{\n  MusicDownloadManager *v3; // rax\n  __int64 v4; // rax\n  float v5; // xmm9_4\n  float m_volume; // xmm11_4\n  __int64 v7; // r8\n  __int64 v8; // r8\n  float v9; // xmm8_4\n  int v10; // eax\n  float v11; // xmm0_4\n  float v12; // xmm7_4\n  __int64 v13; // r8\n  float v14; // xmm0_4\n  int v15; // eax\n  float v16; // xmm0_4\n  float v17; // xmm7_4\n  __int64 v18; // r8\n  float v19; // xmm0_4\n  float m_volumeVariance; // xmm6_4\n  int v21; // eax\n  float v22; // xmm6_4\n  int v23; // eax\n  _QWORD *v24; // rbp\n  int m_sfxUniqueID; // edi\n  int v26; // esi\n  __int64 v27; // r8\n  FMODAudioEngine *v29; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v30; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v31; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v32; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v33; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v34; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v35; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v36; // [rsp+A0h] [rbp-B8h]\n  FMODAudioEngine *v37; // [rsp+A8h] [rbp-B0h]\n  _BYTE v38[32]; // [rsp+B0h] [rbp-A8h] BYREF\n\n  if ( !a2 )\n    return 0;\n  if ( !a2->m_soundPath.m_data.m_size )\n  {\n    v3 = MusicDownloadManager::sharedState();\n    v4 = MusicDownloadManager::pathForSFX(v3, v38, (unsigned int)a2->m_soundID);\n    sub_140051590((__int64)&a2->m_soundPath, v4);\n    sub_14003A830((__int64)v38);\n  }\n  if ( !qword_1406C2E88 )\n  {\n    v29 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v29);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n  }\n  v5 = FMODAudioEngine::pitchForIdx(a2->m_speed);\n  m_volume = a2->m_volume;\n  if ( !v7 )\n  {\n    v30 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v30);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n  }\n  v9 = FMODAudioEngine::pitchForIdx(a2->m_pitchIndex);\n  if ( a2->m_speedVariance > 0 )\n  {\n    if ( a2->m_pitchSteps )\n    {\n      if ( !v8 )\n      {\n        v31 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v31);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v10 = rand();\n      v11 = roundf(\n              (float)((float)((float)((float)v10 / 32767.0) + (float)((float)v10 / 32767.0)) - 1.0)\n            * (float)a2->m_speedVariance);\n      v5 = FMODAudioEngine::pitchForIdx((int)(float)(v11 + (float)a2->m_speed));\n    }\n    else\n    {\n      if ( !v8 )\n      {\n        v32 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v32);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v12 = FMODAudioEngine::pitchForIdx(a2->m_speed - a2->m_speedVariance);\n      if ( !v13 )\n      {\n        v33 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v33);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v14 = FMODAudioEngine::pitchForIdx(a2->m_speedVariance + a2->m_speed);\n      v5 = (float)((float)((float)rand() / 32767.0) * (float)(v14 - v12)) + v12;\n    }\n    v8 = qword_1406C2E88;\n  }\n  if ( a2->m_pitchVariance > 0 )\n  {\n    if ( a2->m_pitchSteps )\n    {\n      if ( !v8 )\n      {\n        v34 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v34);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v15 = rand();\n      v16 = roundf(\n              (float)((float)((float)((float)v15 / 32767.0) + (float)((float)v15 / 32767.0)) - 1.0)\n            * (float)a2->m_pitchVariance);\n      v9 = FMODAudioEngine::pitchForIdx((int)(float)(v16 + (float)a2->m_pitchIndex));\n    }\n    else\n    {\n      if ( !v8 )\n      {\n        v35 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v35);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v17 = FMODAudioEngine::pitchForIdx(a2->m_pitchIndex - a2->m_pitchVariance);\n      if ( !v18 )\n      {\n        v36 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v36);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      }\n      v19 = FMODAudioEngine::pitchForIdx(a2->m_pitchIndex + a2->m_pitchVariance);\n      v9 = (float)((float)((float)rand() / 32767.0) * (float)(v19 - v17)) + v17;\n    }\n  }\n  m_volumeVariance = a2->m_volumeVariance;\n  if ( m_volumeVariance > 0.0 )\n  {\n    v21 = rand();\n    if ( fminf(\n           2.0,\n           (float)((float)((float)((float)((float)v21 / 32767.0) + (float)((float)v21 / 32767.0)) - 1.0)\n                 * m_volumeVariance)\n         + m_volume) >= 0.0 )\n    {\n      v22 = a2->m_volumeVariance;\n      v23 = rand();\n      m_volume = fminf(\n                   2.0,\n                   (float)((float)((float)((float)((float)v23 / 32767.0) + (float)((float)v23 / 32767.0)) - 1.0) * v22)\n                 + m_volume);\n    }\n    else\n    {\n      m_volume = 0.0;\n    }\n  }\n  v24 = (_QWORD *)sub_14003BDB0((__int64)v38, (__int64)&a2->m_soundPath);\n  m_sfxUniqueID = a2->m_sfxUniqueID;\n  if ( m_sfxUniqueID > 0 )\n    v26 = a2->m_sfxUniqueID;\n  else\n    v26 = -a2->m_uniqueID;\n  if ( a2->m_unique )\n  {\n    if ( m_sfxUniqueID <= 0 )\n      m_sfxUniqueID = -a2->m_uniqueID;\n  }\n  else\n  {\n    m_sfxUniqueID = 0;\n  }\n  v27 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v37 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v37);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v27 = qword_1406C2E88;\n  }\n  return FMODAudioEngine::playEffectAdvanced(\n           v27,\n           v24,\n           v5,\n           0.0,\n           m_volume,\n           v9,\n           a2->m_fastFourierTransform,\n           a2->m_reverb,\n           a2->m_start,\n           a2->m_end,\n           a2->m_fadeIn,\n           a2->m_fadeOut,\n           a2->m_loop,\n           m_sfxUniqueID,\n           a2->m_override,\n           !a2->m_preload,\n           0,\n           v26,\n           a2->m_minInterval,\n           a2->m_sfxGroup);\n}", "assembly": "; \n; GameManager::playSFXTrigger from 0x14017bcc0 to 0x14017c2c4 (1540 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::activateSFXTrigger @ 0x140241dcb\n; > SetupReverbPopup::onPlay @ 0x140446ebd\n; > SetupSFXPopup::overridePlaySFX @ 0x140448cde\n; > <???> @ 0x1406cb37c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rax, rsp                                                       ; +0x0, 0x14017bcc0\nmov     [rax+8], rbx                                                   ; +0x3, 0x14017bcc3\nmov     [rax+18h], rbp                                                 ; +0x7, 0x14017bcc7\nmov     [rax+20h], rsi                                                 ; +0xb, 0x14017bccb\npush    rdi                                                            ; +0xf, 0x14017bccf\nsub     rsp, 150h                                                      ; +0x10, 0x14017bcd0\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x17, 0x14017bcd7\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x1b, 0x14017bcdb\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x1f, 0x14017bcdf\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x24, 0x14017bce4\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x29, 0x14017bce9\nmovaps  xmmword ptr [rax-68h], xmm11                                   ; +0x2e, 0x14017bcee\nmovaps  xmmword ptr [rax-78h], xmm13                                   ; +0x33, 0x14017bcf3\nmov     rax, cs:__security_cookie                                      ; +0x38, 0x14017bcf8\nxor     rax, rsp                                                       ; +0x3f, 0x14017bcff\nmov     [rsp+158h+var_88], rax                                         ; +0x42, 0x14017bd02\nmov     rbx, rdx                                                       ; +0x4a, 0x14017bd0a\ntest    rdx, rdx                                                       ; +0x4d, 0x14017bd0d\njz      loc_14017C276                                                  ; +0x50, 0x14017bd10\ncmp     qword ptr [rdx+750h], 0                                        ; +0x56, 0x14017bd16\njnz     short loc_14017BD58                                            ; +0x5e, 0x14017bd1e\ncall    MusicDownloadManager__sharedState                              ; +0x60, 0x14017bd20\nmov     rcx, rax                                                       ; +0x65, 0x14017bd25\nmov     r8d, [rbx+760h]                                                ; +0x68, 0x14017bd28\nlea     rdx, [rsp+158h+var_A8]                                         ; +0x6f, 0x14017bd2f\ncall    MusicDownloadManager__pathForSFX                               ; +0x77, 0x14017bd37\nlea     rcx, [rbx+740h]                                                ; +0x7c, 0x14017bd3c\nmov     rdx, rax                                                       ; +0x83, 0x14017bd43\ncall    sub_140051590                                                  ; +0x86, 0x14017bd46\nlea     rcx, [rsp+158h+var_A8]                                         ; +0x8b, 0x14017bd4b\ncall    sub_14003A830                                                  ; +0x93, 0x14017bd53\nmov     r8, cs:qword_1406C2E88                                         ; +0x98, 0x14017bd58\ntest    r8, r8                                                         ; +0x9f, 0x14017bd5f\njnz     short loc_14017BD96                                            ; +0xa2, 0x14017bd62\nmov     ecx, 888h; Size                                                ; +0xa4, 0x14017bd64\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa9, 0x14017bd69\nmov     [rsp+158h+var_B8], rax                                         ; +0xae, 0x14017bd6e\nmov     rcx, rax                                                       ; +0xb6, 0x14017bd76\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xb9, 0x14017bd79\nnop                                                                    ; +0xbe, 0x14017bd7e\nmov     cs:qword_1406C2E88, rax                                        ; +0xbf, 0x14017bd7f\nmov     rdx, [rax]                                                     ; +0xc6, 0x14017bd86\nmov     rcx, rax                                                       ; +0xc9, 0x14017bd89\ncall    qword ptr [rdx+48h]                                            ; +0xcc, 0x14017bd8c\nmov     r8, cs:qword_1406C2E88                                         ; +0xcf, 0x14017bd8f\nmov     ecx, [rbx+768h]                                                ; +0xd6, 0x14017bd96\ncall    FMODAudioEngine__pitchForIdx                                   ; +0xdc, 0x14017bd9c\nmovaps  xmm9, xmm0                                                     ; +0xe1, 0x14017bda1\nmovss   xmm11, dword ptr [rbx+770h]                                    ; +0xe5, 0x14017bda5\ntest    r8, r8                                                         ; +0xee, 0x14017bdae\njnz     short loc_14017BDE5                                            ; +0xf1, 0x14017bdb1\nmov     ecx, 888h; Size                                                ; +0xf3, 0x14017bdb3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf8, 0x14017bdb8\nmov     [rsp+158h+var_B8], rax                                         ; +0xfd, 0x14017bdbd\nmov     rcx, rax                                                       ; +0x105, 0x14017bdc5\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x108, 0x14017bdc8\nnop                                                                    ; +0x10d, 0x14017bdcd\nmov     cs:qword_1406C2E88, rax                                        ; +0x10e, 0x14017bdce\nmov     rdx, [rax]                                                     ; +0x115, 0x14017bdd5\nmov     rcx, rax                                                       ; +0x118, 0x14017bdd8\ncall    qword ptr [rdx+48h]                                            ; +0x11b, 0x14017bddb\nmov     r8, cs:qword_1406C2E88                                         ; +0x11e, 0x14017bdde\nmov     ecx, [rbx+76Ch]                                                ; +0x125, 0x14017bde5\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x12b, 0x14017bdeb\nmovaps  xmm8, xmm0                                                     ; +0x130, 0x14017bdf0\nmovss   xmm10, cs:dword_140623644                                      ; +0x134, 0x14017bdf4\nmovss   xmm13, cs:flt_140622C24                                        ; +0x13d, 0x14017bdfd\ncmp     dword ptr [rbx+7D4h], 0                                        ; +0x146, 0x14017be06\njle     loc_14017BF59                                                  ; +0x14d, 0x14017be0d\ncmp     byte ptr [rbx+7E0h], 0                                         ; +0x153, 0x14017be13\njz      loc_14017BEA1                                                  ; +0x15a, 0x14017be1a\ntest    r8, r8                                                         ; +0x160, 0x14017be20\njnz     short loc_14017BE50                                            ; +0x163, 0x14017be23\nmov     ecx, 888h; Size                                                ; +0x165, 0x14017be25\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16a, 0x14017be2a\nmov     [rsp+158h+var_B8], rax                                         ; +0x16f, 0x14017be2f\nmov     rcx, rax                                                       ; +0x177, 0x14017be37\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x17a, 0x14017be3a\nnop                                                                    ; +0x17f, 0x14017be3f\nmov     cs:qword_1406C2E88, rax                                        ; +0x180, 0x14017be40\nmov     rdx, [rax]                                                     ; +0x187, 0x14017be47\nmov     rcx, rax                                                       ; +0x18a, 0x14017be4a\ncall    qword ptr [rdx+48h]                                            ; +0x18d, 0x14017be4d\ncall    cs:rand                                                        ; +0x190, 0x14017be50\nxorps   xmm0, xmm0                                                     ; +0x196, 0x14017be56\ncvtsi2ss xmm0, eax                                                     ; +0x199, 0x14017be59\ndivss   xmm0, xmm10                                                    ; +0x19d, 0x14017be5d\naddss   xmm0, xmm0                                                     ; +0x1a2, 0x14017be62\nsubss   xmm0, xmm13                                                    ; +0x1a6, 0x14017be66\nxorps   xmm1, xmm1                                                     ; +0x1ab, 0x14017be6b\ncvtsi2ss xmm1, dword ptr [rbx+7D4h]                                    ; +0x1ae, 0x14017be6e\nmulss   xmm0, xmm1; X                                                  ; +0x1b6, 0x14017be76\ncall    cs:__imp_roundf                                                ; +0x1ba, 0x14017be7a\nxorps   xmm1, xmm1                                                     ; +0x1c0, 0x14017be80\ncvtsi2ss xmm1, dword ptr [rbx+768h]                                    ; +0x1c3, 0x14017be83\naddss   xmm0, xmm1                                                     ; +0x1cb, 0x14017be8b\ncvttss2si ecx, xmm0                                                    ; +0x1cf, 0x14017be8f\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x1d3, 0x14017be93\nmovaps  xmm9, xmm0                                                     ; +0x1d8, 0x14017be98\njmp     loc_14017BF52                                                  ; +0x1dc, 0x14017be9c\ntest    r8, r8                                                         ; +0x1e1, 0x14017bea1\njnz     short loc_14017BED8                                            ; +0x1e4, 0x14017bea4\nmov     ecx, 888h; Size                                                ; +0x1e6, 0x14017bea6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1eb, 0x14017beab\nmov     [rsp+158h+var_B8], rax                                         ; +0x1f0, 0x14017beb0\nmov     rcx, rax                                                       ; +0x1f8, 0x14017beb8\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x1fb, 0x14017bebb\nnop                                                                    ; +0x200, 0x14017bec0\nmov     cs:qword_1406C2E88, rax                                        ; +0x201, 0x14017bec1\nmov     rdx, [rax]                                                     ; +0x208, 0x14017bec8\nmov     rcx, rax                                                       ; +0x20b, 0x14017becb\ncall    qword ptr [rdx+48h]                                            ; +0x20e, 0x14017bece\nmov     r8, cs:qword_1406C2E88                                         ; +0x211, 0x14017bed1\nmov     ecx, [rbx+768h]                                                ; +0x218, 0x14017bed8\nsub     ecx, [rbx+7D4h]                                                ; +0x21e, 0x14017bede\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x224, 0x14017bee4\nmovaps  xmm7, xmm0                                                     ; +0x229, 0x14017bee9\ntest    r8, r8                                                         ; +0x22c, 0x14017beec\njnz     short loc_14017BF1C                                            ; +0x22f, 0x14017beef\nmov     ecx, 888h; Size                                                ; +0x231, 0x14017bef1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x236, 0x14017bef6\nmov     [rsp+158h+var_B8], rax                                         ; +0x23b, 0x14017befb\nmov     rcx, rax                                                       ; +0x243, 0x14017bf03\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x246, 0x14017bf06\nnop                                                                    ; +0x24b, 0x14017bf0b\nmov     cs:qword_1406C2E88, rax                                        ; +0x24c, 0x14017bf0c\nmov     rdx, [rax]                                                     ; +0x253, 0x14017bf13\nmov     rcx, rax                                                       ; +0x256, 0x14017bf16\ncall    qword ptr [rdx+48h]                                            ; +0x259, 0x14017bf19\nmov     ecx, [rbx+768h]                                                ; +0x25c, 0x14017bf1c\nadd     ecx, [rbx+7D4h]                                                ; +0x262, 0x14017bf22\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x268, 0x14017bf28\nmovaps  xmm6, xmm0                                                     ; +0x26d, 0x14017bf2d\ncall    cs:rand                                                        ; +0x270, 0x14017bf30\nmovd    xmm9, eax                                                      ; +0x276, 0x14017bf36\ncvtdq2ps xmm9, xmm9                                                    ; +0x27b, 0x14017bf3b\ndivss   xmm9, xmm10                                                    ; +0x27f, 0x14017bf3f\nsubss   xmm6, xmm7                                                     ; +0x284, 0x14017bf44\nmulss   xmm9, xmm6                                                     ; +0x288, 0x14017bf48\naddss   xmm9, xmm7                                                     ; +0x28d, 0x14017bf4d\nmov     r8, cs:qword_1406C2E88                                         ; +0x292, 0x14017bf52\ncmp     dword ptr [rbx+7D8h], 0                                        ; +0x299, 0x14017bf59\njle     loc_14017C0A5                                                  ; +0x2a0, 0x14017bf60\ncmp     byte ptr [rbx+7E0h], 0                                         ; +0x2a6, 0x14017bf66\njz      loc_14017BFF4                                                  ; +0x2ad, 0x14017bf6d\ntest    r8, r8                                                         ; +0x2b3, 0x14017bf73\njnz     short loc_14017BFA3                                            ; +0x2b6, 0x14017bf76\nmov     ecx, 888h; Size                                                ; +0x2b8, 0x14017bf78\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2bd, 0x14017bf7d\nmov     [rsp+158h+var_B8], rax                                         ; +0x2c2, 0x14017bf82\nmov     rcx, rax                                                       ; +0x2ca, 0x14017bf8a\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2cd, 0x14017bf8d\nnop                                                                    ; +0x2d2, 0x14017bf92\nmov     cs:qword_1406C2E88, rax                                        ; +0x2d3, 0x14017bf93\nmov     rdx, [rax]                                                     ; +0x2da, 0x14017bf9a\nmov     rcx, rax                                                       ; +0x2dd, 0x14017bf9d\ncall    qword ptr [rdx+48h]                                            ; +0x2e0, 0x14017bfa0\ncall    cs:rand                                                        ; +0x2e3, 0x14017bfa3\nxorps   xmm0, xmm0                                                     ; +0x2e9, 0x14017bfa9\ncvtsi2ss xmm0, eax                                                     ; +0x2ec, 0x14017bfac\ndivss   xmm0, xmm10                                                    ; +0x2f0, 0x14017bfb0\naddss   xmm0, xmm0                                                     ; +0x2f5, 0x14017bfb5\nsubss   xmm0, xmm13                                                    ; +0x2f9, 0x14017bfb9\nxorps   xmm1, xmm1                                                     ; +0x2fe, 0x14017bfbe\ncvtsi2ss xmm1, dword ptr [rbx+7D8h]                                    ; +0x301, 0x14017bfc1\nmulss   xmm0, xmm1; X                                                  ; +0x309, 0x14017bfc9\ncall    cs:__imp_roundf                                                ; +0x30d, 0x14017bfcd\nxorps   xmm1, xmm1                                                     ; +0x313, 0x14017bfd3\ncvtsi2ss xmm1, dword ptr [rbx+76Ch]                                    ; +0x316, 0x14017bfd6\naddss   xmm0, xmm1                                                     ; +0x31e, 0x14017bfde\ncvttss2si ecx, xmm0                                                    ; +0x322, 0x14017bfe2\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x326, 0x14017bfe6\nmovaps  xmm8, xmm0                                                     ; +0x32b, 0x14017bfeb\njmp     loc_14017C0A5                                                  ; +0x32f, 0x14017bfef\ntest    r8, r8                                                         ; +0x334, 0x14017bff4\njnz     short loc_14017C02B                                            ; +0x337, 0x14017bff7\nmov     ecx, 888h; Size                                                ; +0x339, 0x14017bff9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33e, 0x14017bffe\nmov     [rsp+158h+var_B8], rax                                         ; +0x343, 0x14017c003\nmov     rcx, rax                                                       ; +0x34b, 0x14017c00b\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x34e, 0x14017c00e\nnop                                                                    ; +0x353, 0x14017c013\nmov     cs:qword_1406C2E88, rax                                        ; +0x354, 0x14017c014\nmov     rdx, [rax]                                                     ; +0x35b, 0x14017c01b\nmov     rcx, rax                                                       ; +0x35e, 0x14017c01e\ncall    qword ptr [rdx+48h]                                            ; +0x361, 0x14017c021\nmov     r8, cs:qword_1406C2E88                                         ; +0x364, 0x14017c024\nmov     ecx, [rbx+76Ch]                                                ; +0x36b, 0x14017c02b\nsub     ecx, [rbx+7D8h]                                                ; +0x371, 0x14017c031\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x377, 0x14017c037\nmovaps  xmm7, xmm0                                                     ; +0x37c, 0x14017c03c\ntest    r8, r8                                                         ; +0x37f, 0x14017c03f\njnz     short loc_14017C06F                                            ; +0x382, 0x14017c042\nmov     ecx, 888h; Size                                                ; +0x384, 0x14017c044\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x389, 0x14017c049\nmov     [rsp+158h+var_B8], rax                                         ; +0x38e, 0x14017c04e\nmov     rcx, rax                                                       ; +0x396, 0x14017c056\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x399, 0x14017c059\nnop                                                                    ; +0x39e, 0x14017c05e\nmov     cs:qword_1406C2E88, rax                                        ; +0x39f, 0x14017c05f\nmov     rdx, [rax]                                                     ; +0x3a6, 0x14017c066\nmov     rcx, rax                                                       ; +0x3a9, 0x14017c069\ncall    qword ptr [rdx+48h]                                            ; +0x3ac, 0x14017c06c\nmov     ecx, [rbx+7D8h]                                                ; +0x3af, 0x14017c06f\nadd     ecx, [rbx+76Ch]                                                ; +0x3b5, 0x14017c075\ncall    FMODAudioEngine__pitchForIdx                                   ; +0x3bb, 0x14017c07b\nmovaps  xmm6, xmm0                                                     ; +0x3c0, 0x14017c080\ncall    cs:rand                                                        ; +0x3c3, 0x14017c083\nmovd    xmm8, eax                                                      ; +0x3c9, 0x14017c089\ncvtdq2ps xmm8, xmm8                                                    ; +0x3ce, 0x14017c08e\ndivss   xmm8, xmm10                                                    ; +0x3d2, 0x14017c092\nsubss   xmm6, xmm7                                                     ; +0x3d7, 0x14017c097\nmulss   xmm8, xmm6                                                     ; +0x3db, 0x14017c09b\naddss   xmm8, xmm7                                                     ; +0x3e0, 0x14017c0a0\nmovss   xmm6, dword ptr [rbx+7DCh]                                     ; +0x3e5, 0x14017c0a5\nxorps   xmm7, xmm7                                                     ; +0x3ed, 0x14017c0ad\ncomiss  xmm6, xmm7                                                     ; +0x3f0, 0x14017c0b0\njbe     short loc_14017C12A                                            ; +0x3f3, 0x14017c0b3\ncall    cs:rand                                                        ; +0x3f5, 0x14017c0b5\nmovd    xmm1, eax                                                      ; +0x3fb, 0x14017c0bb\ncvtdq2ps xmm1, xmm1                                                    ; +0x3ff, 0x14017c0bf\ndivss   xmm1, xmm10                                                    ; +0x402, 0x14017c0c2\naddss   xmm1, xmm1                                                     ; +0x407, 0x14017c0c7\nsubss   xmm1, xmm13                                                    ; +0x40b, 0x14017c0cb\nmulss   xmm1, xmm6                                                     ; +0x410, 0x14017c0d0\naddss   xmm1, xmm11                                                    ; +0x414, 0x14017c0d4\nmovss   xmm0, cs:width                                                 ; +0x419, 0x14017c0d9\nminss   xmm0, xmm1                                                     ; +0x421, 0x14017c0e1\ncomiss  xmm7, xmm0                                                     ; +0x425, 0x14017c0e5\njbe     short loc_14017C0F0                                            ; +0x428, 0x14017c0e8\nxorps   xmm11, xmm11                                                   ; +0x42a, 0x14017c0ea\njmp     short loc_14017C12A                                            ; +0x42e, 0x14017c0ee\nmovss   xmm6, dword ptr [rbx+7DCh]                                     ; +0x430, 0x14017c0f0\ncall    cs:rand                                                        ; +0x438, 0x14017c0f8\nmovd    xmm0, eax                                                      ; +0x43e, 0x14017c0fe\ncvtdq2ps xmm0, xmm0                                                    ; +0x442, 0x14017c102\ndivss   xmm0, xmm10                                                    ; +0x445, 0x14017c105\naddss   xmm0, xmm0                                                     ; +0x44a, 0x14017c10a\nsubss   xmm0, xmm13                                                    ; +0x44e, 0x14017c10e\nmulss   xmm0, xmm6                                                     ; +0x453, 0x14017c113\naddss   xmm0, xmm11                                                    ; +0x457, 0x14017c117\nmovss   xmm11, cs:width                                                ; +0x45c, 0x14017c11c\nminss   xmm11, xmm0                                                    ; +0x465, 0x14017c125\nlea     rax, [rsp+158h+var_A8]                                         ; +0x46a, 0x14017c12a\nmov     [rsp+158h+var_B8], rax                                         ; +0x472, 0x14017c132\nlea     rdx, [rbx+740h]                                                ; +0x47a, 0x14017c13a\nlea     rcx, [rsp+158h+var_A8]                                         ; +0x481, 0x14017c141\ncall    sub_14003BDB0                                                  ; +0x489, 0x14017c149\nmov     rbp, rax                                                       ; +0x48e, 0x14017c14e\nmov     edi, [rbx+78Ch]                                                ; +0x491, 0x14017c151\ntest    edi, edi                                                       ; +0x497, 0x14017c157\njg      short loc_14017C165                                            ; +0x499, 0x14017c159\nmov     esi, [rbx+39Ch]                                                ; +0x49b, 0x14017c15b\nneg     esi                                                            ; +0x4a1, 0x14017c161\njmp     short loc_14017C167                                            ; +0x4a3, 0x14017c163\nmov     esi, edi                                                       ; +0x4a5, 0x14017c165\ncmp     byte ptr [rbx+789h], 0                                         ; +0x4a7, 0x14017c167\njnz     short loc_14017C174                                            ; +0x4ae, 0x14017c16e\nxor     edi, edi                                                       ; +0x4b0, 0x14017c170\njmp     short loc_14017C180                                            ; +0x4b2, 0x14017c172\ntest    edi, edi                                                       ; +0x4b4, 0x14017c174\njg      short loc_14017C180                                            ; +0x4b6, 0x14017c176\nmov     edi, [rbx+39Ch]                                                ; +0x4b8, 0x14017c178\nneg     edi                                                            ; +0x4be, 0x14017c17e\nmov     r8, cs:qword_1406C2E88                                         ; +0x4c0, 0x14017c180\ntest    r8, r8                                                         ; +0x4c7, 0x14017c187\njnz     short loc_14017C1BE                                            ; +0x4ca, 0x14017c18a\nmov     ecx, 888h; Size                                                ; +0x4cc, 0x14017c18c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d1, 0x14017c191\nmov     [rsp+158h+var_B0], rax                                         ; +0x4d6, 0x14017c196\nmov     rcx, rax                                                       ; +0x4de, 0x14017c19e\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x4e1, 0x14017c1a1\nnop                                                                    ; +0x4e6, 0x14017c1a6\nmov     cs:qword_1406C2E88, rax                                        ; +0x4e7, 0x14017c1a7\nmov     rdx, [rax]                                                     ; +0x4ee, 0x14017c1ae\nmov     rcx, rax                                                       ; +0x4f1, 0x14017c1b1\ncall    qword ptr [rdx+48h]                                            ; +0x4f4, 0x14017c1b4\nmov     r8, cs:qword_1406C2E88                                         ; +0x4f7, 0x14017c1b7\ncmp     byte ptr [rbx+7ADh], 0                                         ; +0x4fe, 0x14017c1be\nsetz    cl                                                             ; +0x505, 0x14017c1c5\nmov     eax, [rbx+7B4h]                                                ; +0x508, 0x14017c1c8\nmov     [rsp+158h+var_C0], eax                                         ; +0x50e, 0x14017c1ce\nmovss   xmm0, dword ptr [rbx+7B0h]                                     ; +0x515, 0x14017c1d5\nmovss   [rsp+158h+var_C8], xmm0                                        ; +0x51d, 0x14017c1dd\nmov     [rsp+158h+var_D0], esi                                         ; +0x526, 0x14017c1e6\nmov     [rsp+158h+var_D8], 0                                           ; +0x52d, 0x14017c1ed\nmov     [rsp+158h+var_E0], cl                                          ; +0x538, 0x14017c1f8\nmovzx   eax, byte ptr [rbx+78Ah]                                       ; +0x53c, 0x14017c1fc\nmov     [rsp+158h+var_E8], al                                          ; +0x543, 0x14017c203\nmov     [rsp+158h+var_F0], edi                                         ; +0x547, 0x14017c207\nmovzx   eax, byte ptr [rbx+786h]                                       ; +0x54b, 0x14017c20b\nmov     [rsp+158h+var_F8], al                                          ; +0x552, 0x14017c212\nmov     eax, [rbx+780h]                                                ; +0x556, 0x14017c216\nmov     [rsp+158h+var_100], eax                                        ; +0x55c, 0x14017c21c\nmov     eax, [rbx+778h]                                                ; +0x560, 0x14017c220\nmov     [rsp+158h+var_108], eax                                        ; +0x566, 0x14017c226\nmov     eax, [rbx+77Ch]                                                ; +0x56a, 0x14017c22a\nmov     [rsp+158h+var_110], eax                                        ; +0x570, 0x14017c230\nmov     eax, [rbx+774h]                                                ; +0x574, 0x14017c234\nmov     [rsp+158h+var_118], eax                                        ; +0x57a, 0x14017c23a\nmovzx   eax, byte ptr [rbx+784h]                                       ; +0x57e, 0x14017c23e\nmov     [rsp+158h+var_120], al                                         ; +0x585, 0x14017c245\nmovzx   eax, byte ptr [rbx+785h]                                       ; +0x589, 0x14017c249\nmov     [rsp+158h+var_128], al                                         ; +0x590, 0x14017c250\nmovss   [rsp+158h+var_130], xmm8                                       ; +0x594, 0x14017c254\nmovss   [rsp+158h+var_138], xmm11                                      ; +0x59b, 0x14017c25b\nxorps   xmm3, xmm3                                                     ; +0x5a2, 0x14017c262\nmovaps  xmm2, xmm9                                                     ; +0x5a5, 0x14017c265\nmov     rdx, rbp                                                       ; +0x5a9, 0x14017c269\nmov     rcx, r8                                                        ; +0x5ac, 0x14017c26c\ncall    FMODAudioEngine__playEffectAdvanced                            ; +0x5af, 0x14017c26f\njmp     short loc_14017C278                                            ; +0x5b4, 0x14017c274\nxor     eax, eax                                                       ; +0x5b6, 0x14017c276\nmov     rcx, [rsp+158h+var_88]                                         ; +0x5b8, 0x14017c278\nxor     rcx, rsp; StackCookie                                          ; +0x5c0, 0x14017c280\ncall    __security_check_cookie                                        ; +0x5c3, 0x14017c283\nlea     r11, [rsp+158h+var_8]                                          ; +0x5c8, 0x14017c288\nmov     rbx, [r11+10h]                                                 ; +0x5d0, 0x14017c290\nmov     rbp, [r11+20h]                                                 ; +0x5d4, 0x14017c294\nmov     rsi, [r11+28h]                                                 ; +0x5d8, 0x14017c298\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x5dc, 0x14017c29c\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x5e1, 0x14017c2a1\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x5e6, 0x14017c2a6\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x5eb, 0x14017c2ab\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x5f0, 0x14017c2b0\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x5f5, 0x14017c2b5\nmovaps  xmm13, xmmword ptr [r11-70h]                                   ; +0x5fa, 0x14017c2ba\nmov     rsp, r11                                                       ; +0x5ff, 0x14017c2bf\npop     rdi                                                            ; +0x602, 0x14017c2c2\nretn                                                                   ; +0x603, 0x14017c2c3", "xrefs": ["GJBaseGameLayer::activateSFXTrigger @ 0x140241dcb", "SetupReverbPopup::onPlay @ 0x140446ebd", "SetupSFXPopup::overridePlaySFX @ 0x140448cde", "<???> @ 0x1406cb37c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}