{"type": "func", "start": 5372167264, "end": 5372167540, "name": "GJBaseGameLayer::updateProximityVolumeEffects", "pseudocode": "// \n// GJBaseGameLayer::updateProximityVolumeEffects from 0x14034c460 to 0x14034c574 (276 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::update @ 0x140341c9c\n// > PlayLayer::setupHasCompleted @ 0x140505afd\n// > PlayLayer::resetLevel @ 0x14051960f\n// > PlayLayer::startMusic @ 0x14051af70\n// > <???> @ 0x14092009c\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:30:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJBaseGameLayer::updateProximityVolumeEffects(__int64 a1)\n{\n  __int64 *v2; // rbx\n  int v3; // edi\n  int v4; // esi\n  float v5; // xmm0_4\n  _QWORD *v6; // rcx\n  __int64 **v7; // rax\n  __int64 *i; // rax\n  __int64 *j; // rax\n  __int128 v10; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-28h]\n  void *v12; // [rsp+60h] [rbp+8h]\n\n  v2 = **(__int64 ***)(a1 + 1960);\n  while ( !*((_BYTE *)v2 + 25) )\n  {\n    v3 = *((_DWORD *)v2 + 8);\n    v4 = *((_DWORD *)v2 + 9);\n    v10 = *(_OWORD *)(v2 + 5);\n    v11 = v2[7];\n    v5 = GJBaseGameLayer::volumeForProximityEffect(a1, &v10);\n    v6 = (_QWORD *)qword_14090BF60;\n    if ( !qword_14090BF60 )\n    {\n      v12 = operator new(0x8A8u);\n      qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n      v6 = (_QWORD *)qword_14090BF60;\n    }\n    FMODAudioEngine::setChannelVolumeMod(v6, v3, v4, v5);\n    v7 = (__int64 **)v2[2];\n    if ( *((_BYTE *)v7 + 25) )\n    {\n      for ( i = (__int64 *)v2[1]; !*((_BYTE *)i + 25); i = (__int64 *)i[1] )\n      {\n        if ( v2 != (__int64 *)i[2] )\n          break;\n        v2 = i;\n      }\n      v2 = i;\n    }\n    else\n    {\n      v2 = (__int64 *)v2[2];\n      for ( j = *v7; !*((_BYTE *)j + 25); j = (__int64 *)*j )\n        v2 = j;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateProximityVolumeEffects from 0x14034c460 to 0x14034c574 (276 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::update @ 0x140341c9c\n; > PlayLayer::setupHasCompleted @ 0x140505afd\n; > PlayLayer::resetLevel @ 0x14051960f\n; > PlayLayer::startMusic @ 0x14051af70\n; > <???> @ 0x14092009c\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:30:45 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14034c460\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14034c465\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14034c46a\npush    rdi                                                            ; +0xf, 0x14034c46f\nsub     rsp, 50h                                                       ; +0x10, 0x14034c470\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x14, 0x14034c474\nmov     rbp, rcx                                                       ; +0x19, 0x14034c479\nmov     rbx, [rcx+7A8h]                                                ; +0x1c, 0x14034c47c\nmov     rbx, [rbx]                                                     ; +0x23, 0x14034c483\ncmp     byte ptr [rbx+19h], 0                                          ; +0x26, 0x14034c486\njnz     loc_14034C55A                                                  ; +0x2a, 0x14034c48a\nmov     edi, [rbx+20h]                                                 ; +0x30, 0x14034c490\nmov     esi, [rbx+24h]                                                 ; +0x33, 0x14034c493\nmovups  xmm0, xmmword ptr [rbx+28h]                                    ; +0x36, 0x14034c496\nmovups  [rsp+58h+var_38], xmm0                                         ; +0x3a, 0x14034c49a\nmovsd   xmm1, qword ptr [rbx+38h]                                      ; +0x3f, 0x14034c49f\nmovsd   [rsp+58h+var_28], xmm1                                         ; +0x44, 0x14034c4a4\nlea     rdx, [rsp+58h+var_38]                                          ; +0x4a, 0x14034c4aa\nmov     rcx, rbp                                                       ; +0x4f, 0x14034c4af\ncall    GJBaseGameLayer__volumeForProximityEffect                      ; +0x52, 0x14034c4b2\nmovaps  xmm6, xmm0                                                     ; +0x57, 0x14034c4b7\nmov     rcx, cs:qword_14090BF60                                        ; +0x5a, 0x14034c4ba\ntest    rcx, rcx                                                       ; +0x61, 0x14034c4c1\njnz     short loc_14034C4F9                                            ; +0x64, 0x14034c4c4\nmov     ecx, 8A8h; Size                                                ; +0x66, 0x14034c4c6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6b, 0x14034c4cb\nmov     [rsp+58h+arg_0], rax                                           ; +0x70, 0x14034c4d0\nmov     rcx, rax                                                       ; +0x75, 0x14034c4d5\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x78, 0x14034c4d8\nnop                                                                    ; +0x7d, 0x14034c4dd\nmov     cs:qword_14090BF60, rax                                        ; +0x7e, 0x14034c4de\nmov     rcx, [rax]                                                     ; +0x85, 0x14034c4e5\nmov     r9, [rcx+48h]                                                  ; +0x88, 0x14034c4e8\nmov     rcx, rax                                                       ; +0x8c, 0x14034c4ec\ncall    r9                                                             ; +0x8f, 0x14034c4ef\nmov     rcx, cs:qword_14090BF60                                        ; +0x92, 0x14034c4f2\nmovaps  xmm3, xmm6                                                     ; +0x99, 0x14034c4f9\nmov     r8d, esi                                                       ; +0x9c, 0x14034c4fc\nmov     edx, edi                                                       ; +0x9f, 0x14034c4ff\ncall    FMODAudioEngine__setChannelVolumeMod                           ; +0xa1, 0x14034c501\nmov     rax, [rbx+10h]                                                 ; +0xa6, 0x14034c506\ncmp     byte ptr [rax+19h], 0                                          ; +0xaa, 0x14034c50a\njz      short loc_14034C538                                            ; +0xae, 0x14034c50e\nmov     rax, [rbx+8]                                                   ; +0xb0, 0x14034c510\ncmp     byte ptr [rax+19h], 0                                          ; +0xb4, 0x14034c514\njnz     short loc_14034C533                                            ; +0xb8, 0x14034c518\nnop     word ptr [rax+rax+00h]                                         ; +0xba, 0x14034c51a\ncmp     rbx, [rax+10h]                                                 ; +0xc0, 0x14034c520\njnz     short loc_14034C533                                            ; +0xc4, 0x14034c524\nmov     rbx, rax                                                       ; +0xc6, 0x14034c526\nmov     rax, [rax+8]                                                   ; +0xc9, 0x14034c529\ncmp     byte ptr [rax+19h], 0                                          ; +0xcd, 0x14034c52d\njz      short loc_14034C520                                            ; +0xd1, 0x14034c531\nmov     rbx, rax                                                       ; +0xd3, 0x14034c533\njmp     short loc_14034C550                                            ; +0xd6, 0x14034c536\nmov     rbx, rax                                                       ; +0xd8, 0x14034c538\nmov     rax, [rax]                                                     ; +0xdb, 0x14034c53b\ncmp     byte ptr [rax+19h], 0                                          ; +0xde, 0x14034c53e\njnz     short loc_14034C550                                            ; +0xe2, 0x14034c542\nmov     rbx, rax                                                       ; +0xe4, 0x14034c544\nmov     rax, [rax]                                                     ; +0xe7, 0x14034c547\ncmp     byte ptr [rax+19h], 0                                          ; +0xea, 0x14034c54a\njz      short loc_14034C544                                            ; +0xee, 0x14034c54e\ncmp     byte ptr [rbx+19h], 0                                          ; +0xf0, 0x14034c550\njz      loc_14034C490                                                  ; +0xf4, 0x14034c554\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xfa, 0x14034c55a\nmov     rbp, [rsp+58h+arg_10]                                          ; +0xff, 0x14034c55f\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x104, 0x14034c564\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x109, 0x14034c569\nadd     rsp, 50h                                                       ; +0x10e, 0x14034c56e\npop     rdi                                                            ; +0x112, 0x14034c572\nretn                                                                   ; +0x113, 0x14034c573", "xrefs": ["GJBaseGameLayer::update @ 0x140341c9c", "PlayLayer::setupHasCompleted @ 0x140505afd", "PlayLayer::resetLevel @ 0x14051960f", "PlayLayer::startMusic @ 0x14051af70", "<???> @ 0x14092009c"], "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"}