{"type": "func", "start": 5371103360, "end": 5371103953, "name": "GJBaseGameLayer::updateAudioVisualizer", "pseudocode": "// \n// GJBaseGameLayer::updateAudioVisualizer from 0x140248880 to 0x140248ad1 (593 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::update @ 0x14023904b\n// > GJBaseGameLayer::update @ 0x1402392d3\n// > <???> @ 0x1406ce790\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=8\nvoid GJBaseGameLayer::updateAudioVisualizer(GJBaseGameLayer *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rsi\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  __int64 v7; // rsi\n  __int64 v8; // rdi\n  __int64 v9; // rbx\n  FMODAudioEngine *v10; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v11; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v12; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v13; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v14; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v15; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v16; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v17; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_showAudioVisualizer )\n  {\n    v2 = qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v10 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v2 = qword_1406C2E88;\n    }\n    v3 = v2;\n    if ( !v2 )\n    {\n      v11 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v2 = qword_1406C2E88;\n    }\n    v4 = v2;\n    if ( !v2 )\n    {\n      v12 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v2 = qword_1406C2E88;\n    }\n    v5 = v2;\n    if ( !v2 )\n    {\n      v13 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v2 = qword_1406C2E88;\n    }\n    FMODLevelVisualizer::updateVisualizer(\n      a1->m_audioVisualizerBG,\n      *(float *)(v2 + 2164),\n      *(float *)(v5 + 2160),\n      *(float *)(v3 + 628) - *(float *)(v4 + 2156));\n    v6 = qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v14 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v14);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = qword_1406C2E88;\n    }\n    v7 = v6;\n    if ( !v6 )\n    {\n      v15 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v15);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = qword_1406C2E88;\n    }\n    v8 = v6;\n    if ( !v6 )\n    {\n      v16 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v16);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = qword_1406C2E88;\n    }\n    v9 = v6;\n    if ( !v6 )\n    {\n      v17 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v17);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = qword_1406C2E88;\n    }\n    FMODLevelVisualizer::updateVisualizer(\n      a1->m_audioVisualizerSFX,\n      *(float *)(v6 + 2176),\n      *(float *)(v9 + 2172),\n      *(float *)(v7 + 628) - *(float *)(v8 + 2168));\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateAudioVisualizer from 0x140248880 to 0x140248ad1 (593 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::update @ 0x14023904b\n; > GJBaseGameLayer::update @ 0x1402392d3\n; > <???> @ 0x1406ce790\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     [rsp+arg_8], rbx                                               ; +0x0, 0x140248880\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140248885\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14024888a\npush    rdi                                                            ; +0xf, 0x14024888f\nsub     rsp, 20h                                                       ; +0x10, 0x140248890\nmov     rbp, rcx                                                       ; +0x14, 0x140248894\ncmp     byte ptr [rcx+3700h], 0                                        ; +0x17, 0x140248897\njz      loc_140248ABC                                                  ; +0x1e, 0x14024889e\nmov     rax, cs:qword_1406C2E88                                        ; +0x24, 0x1402488a4\ntest    rax, rax                                                       ; +0x2b, 0x1402488ab\njnz     short loc_1402488DF                                            ; +0x2e, 0x1402488ae\nmov     ecx, 888h; Size                                                ; +0x30, 0x1402488b0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x1402488b5\nmov     [rsp+28h+arg_0], rax                                           ; +0x3a, 0x1402488ba\nmov     rcx, rax                                                       ; +0x3f, 0x1402488bf\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x42, 0x1402488c2\nnop                                                                    ; +0x47, 0x1402488c7\nmov     cs:qword_1406C2E88, rax                                        ; +0x48, 0x1402488c8\nmov     rdx, [rax]                                                     ; +0x4f, 0x1402488cf\nmov     rcx, rax                                                       ; +0x52, 0x1402488d2\ncall    qword ptr [rdx+48h]                                            ; +0x55, 0x1402488d5\nmov     rax, cs:qword_1406C2E88                                        ; +0x58, 0x1402488d8\nmov     rsi, rax                                                       ; +0x5f, 0x1402488df\ntest    rax, rax                                                       ; +0x62, 0x1402488e2\njnz     short loc_140248916                                            ; +0x65, 0x1402488e5\nmov     ecx, 888h; Size                                                ; +0x67, 0x1402488e7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6c, 0x1402488ec\nmov     [rsp+28h+arg_0], rax                                           ; +0x71, 0x1402488f1\nmov     rcx, rax                                                       ; +0x76, 0x1402488f6\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x79, 0x1402488f9\nnop                                                                    ; +0x7e, 0x1402488fe\nmov     cs:qword_1406C2E88, rax                                        ; +0x7f, 0x1402488ff\nmov     rdx, [rax]                                                     ; +0x86, 0x140248906\nmov     rcx, rax                                                       ; +0x89, 0x140248909\ncall    qword ptr [rdx+48h]                                            ; +0x8c, 0x14024890c\nmov     rax, cs:qword_1406C2E88                                        ; +0x8f, 0x14024890f\nmov     rdi, rax                                                       ; +0x96, 0x140248916\ntest    rax, rax                                                       ; +0x99, 0x140248919\njnz     short loc_14024894D                                            ; +0x9c, 0x14024891c\nmov     ecx, 888h; Size                                                ; +0x9e, 0x14024891e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa3, 0x140248923\nmov     [rsp+28h+arg_0], rax                                           ; +0xa8, 0x140248928\nmov     rcx, rax                                                       ; +0xad, 0x14024892d\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xb0, 0x140248930\nnop                                                                    ; +0xb5, 0x140248935\nmov     cs:qword_1406C2E88, rax                                        ; +0xb6, 0x140248936\nmov     rdx, [rax]                                                     ; +0xbd, 0x14024893d\nmov     rcx, rax                                                       ; +0xc0, 0x140248940\ncall    qword ptr [rdx+48h]                                            ; +0xc3, 0x140248943\nmov     rax, cs:qword_1406C2E88                                        ; +0xc6, 0x140248946\nmov     rbx, rax                                                       ; +0xcd, 0x14024894d\ntest    rax, rax                                                       ; +0xd0, 0x140248950\njnz     short loc_140248984                                            ; +0xd3, 0x140248953\nmov     ecx, 888h; Size                                                ; +0xd5, 0x140248955\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xda, 0x14024895a\nmov     [rsp+28h+arg_0], rax                                           ; +0xdf, 0x14024895f\nmov     rcx, rax                                                       ; +0xe4, 0x140248964\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xe7, 0x140248967\nnop                                                                    ; +0xec, 0x14024896c\nmov     cs:qword_1406C2E88, rax                                        ; +0xed, 0x14024896d\nmov     rdx, [rax]                                                     ; +0xf4, 0x140248974\nmov     rcx, rax                                                       ; +0xf7, 0x140248977\ncall    qword ptr [rdx+48h]                                            ; +0xfa, 0x14024897a\nmov     rax, cs:qword_1406C2E88                                        ; +0xfd, 0x14024897d\nmovss   xmm3, dword ptr [rsi+274h]                                     ; +0x104, 0x140248984\nsubss   xmm3, dword ptr [rdi+86Ch]                                     ; +0x10c, 0x14024898c\nmovss   xmm2, dword ptr [rbx+870h]                                     ; +0x114, 0x140248994\nmovss   xmm1, dword ptr [rax+874h]                                     ; +0x11c, 0x14024899c\nmov     rcx, [rbp+36F0h]                                               ; +0x124, 0x1402489a4\ncall    FMODLevelVisualizer__updateVisualizer                          ; +0x12b, 0x1402489ab\nmov     rax, cs:qword_1406C2E88                                        ; +0x130, 0x1402489b0\ntest    rax, rax                                                       ; +0x137, 0x1402489b7\njnz     short loc_1402489EB                                            ; +0x13a, 0x1402489ba\nmov     ecx, 888h; Size                                                ; +0x13c, 0x1402489bc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x141, 0x1402489c1\nmov     [rsp+28h+arg_0], rax                                           ; +0x146, 0x1402489c6\nmov     rcx, rax                                                       ; +0x14b, 0x1402489cb\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x14e, 0x1402489ce\nnop                                                                    ; +0x153, 0x1402489d3\nmov     cs:qword_1406C2E88, rax                                        ; +0x154, 0x1402489d4\nmov     rdx, [rax]                                                     ; +0x15b, 0x1402489db\nmov     rcx, rax                                                       ; +0x15e, 0x1402489de\ncall    qword ptr [rdx+48h]                                            ; +0x161, 0x1402489e1\nmov     rax, cs:qword_1406C2E88                                        ; +0x164, 0x1402489e4\nmov     rsi, rax                                                       ; +0x16b, 0x1402489eb\ntest    rax, rax                                                       ; +0x16e, 0x1402489ee\njnz     short loc_140248A22                                            ; +0x171, 0x1402489f1\nmov     ecx, 888h; Size                                                ; +0x173, 0x1402489f3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x178, 0x1402489f8\nmov     [rsp+28h+arg_0], rax                                           ; +0x17d, 0x1402489fd\nmov     rcx, rax                                                       ; +0x182, 0x140248a02\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x185, 0x140248a05\nnop                                                                    ; +0x18a, 0x140248a0a\nmov     cs:qword_1406C2E88, rax                                        ; +0x18b, 0x140248a0b\nmov     rdx, [rax]                                                     ; +0x192, 0x140248a12\nmov     rcx, rax                                                       ; +0x195, 0x140248a15\ncall    qword ptr [rdx+48h]                                            ; +0x198, 0x140248a18\nmov     rax, cs:qword_1406C2E88                                        ; +0x19b, 0x140248a1b\nmov     rdi, rax                                                       ; +0x1a2, 0x140248a22\ntest    rax, rax                                                       ; +0x1a5, 0x140248a25\njnz     short loc_140248A59                                            ; +0x1a8, 0x140248a28\nmov     ecx, 888h; Size                                                ; +0x1aa, 0x140248a2a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1af, 0x140248a2f\nmov     [rsp+28h+arg_0], rax                                           ; +0x1b4, 0x140248a34\nmov     rcx, rax                                                       ; +0x1b9, 0x140248a39\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x1bc, 0x140248a3c\nnop                                                                    ; +0x1c1, 0x140248a41\nmov     cs:qword_1406C2E88, rax                                        ; +0x1c2, 0x140248a42\nmov     rdx, [rax]                                                     ; +0x1c9, 0x140248a49\nmov     rcx, rax                                                       ; +0x1cc, 0x140248a4c\ncall    qword ptr [rdx+48h]                                            ; +0x1cf, 0x140248a4f\nmov     rax, cs:qword_1406C2E88                                        ; +0x1d2, 0x140248a52\nmov     rbx, rax                                                       ; +0x1d9, 0x140248a59\ntest    rax, rax                                                       ; +0x1dc, 0x140248a5c\njnz     short loc_140248A90                                            ; +0x1df, 0x140248a5f\nmov     ecx, 888h; Size                                                ; +0x1e1, 0x140248a61\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e6, 0x140248a66\nmov     [rsp+28h+arg_0], rax                                           ; +0x1eb, 0x140248a6b\nmov     rcx, rax                                                       ; +0x1f0, 0x140248a70\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x1f3, 0x140248a73\nnop                                                                    ; +0x1f8, 0x140248a78\nmov     cs:qword_1406C2E88, rax                                        ; +0x1f9, 0x140248a79\nmov     rdx, [rax]                                                     ; +0x200, 0x140248a80\nmov     rcx, rax                                                       ; +0x203, 0x140248a83\ncall    qword ptr [rdx+48h]                                            ; +0x206, 0x140248a86\nmov     rax, cs:qword_1406C2E88                                        ; +0x209, 0x140248a89\nmovss   xmm3, dword ptr [rsi+274h]                                     ; +0x210, 0x140248a90\nsubss   xmm3, dword ptr [rdi+878h]                                     ; +0x218, 0x140248a98\nmovss   xmm2, dword ptr [rbx+87Ch]                                     ; +0x220, 0x140248aa0\nmovss   xmm1, dword ptr [rax+880h]                                     ; +0x228, 0x140248aa8\nmov     rcx, [rbp+36F8h]                                               ; +0x230, 0x140248ab0\ncall    FMODLevelVisualizer__updateVisualizer                          ; +0x237, 0x140248ab7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x23c, 0x140248abc\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x241, 0x140248ac1\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x246, 0x140248ac6\nadd     rsp, 20h                                                       ; +0x24b, 0x140248acb\npop     rdi                                                            ; +0x24f, 0x140248acf\nretn                                                                   ; +0x250, 0x140248ad0", "xrefs": ["GJBaseGameLayer::update @ 0x14023904b", "GJBaseGameLayer::update @ 0x1402392d3", "<???> @ 0x1406ce790"], "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"}