; ; GJBaseGameLayer::toggleAudioVisualizer from 0x140352dd0 to 0x140352f94 (452 bytes) ; ; 3 xrefs: ; > GameSettingsLayer::didChangeGV @ 0x1402c7576 ; > GJBaseGameLayer::init @ 0x14030dab4 ; > @ 0x1409203f0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:48 +0000 ; push rbx ; +0x0, 0x140352dd0 push rsi ; +0x2, 0x140352dd2 push rdi ; +0x3, 0x140352dd3 sub rsp, 30h ; +0x4, 0x140352dd4 movaps [rsp+48h+var_28], xmm6 ; +0x8, 0x140352dd8 movzx ebx, dl ; +0xd, 0x140352ddd mov rsi, rcx ; +0x10, 0x140352de0 mov rax, cs:qword_14090BF60 ; +0x13, 0x140352de3 test rax, rax ; +0x1a, 0x140352dea jnz short loc_140352E21 ; +0x1d, 0x140352ded mov ecx, 8A8h; Size ; +0x1f, 0x140352def call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x24, 0x140352df4 mov [rsp+48h+arg_0], rax ; +0x29, 0x140352df9 mov rcx, rax ; +0x2e, 0x140352dfe call FMODAudioEngine__FMODAudioEngine ; +0x31, 0x140352e01 nop ; +0x36, 0x140352e06 mov cs:qword_14090BF60, rax ; +0x37, 0x140352e07 mov rcx, [rax] ; +0x3e, 0x140352e0e mov rdx, [rcx+48h] ; +0x41, 0x140352e11 mov rcx, rax ; +0x45, 0x140352e15 call rdx ; +0x48, 0x140352e18 mov rax, cs:qword_14090BF60 ; +0x4a, 0x140352e1a mov [rax+888h], bl ; +0x51, 0x140352e21 cmp [rsi+3800h], bl ; +0x57, 0x140352e27 jz loc_140352F87 ; +0x5d, 0x140352e2d mov [rsi+3800h], bl ; +0x63, 0x140352e33 cmp qword ptr [rsi+37F0h], 0 ; +0x69, 0x140352e39 jnz loc_140352F59 ; +0x71, 0x140352e41 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x77, 0x140352e47 mov rcx, rax ; +0x7d, 0x140352e4d lea rdx, [rsp+48h+arg_0] ; +0x80, 0x140352e50 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x85, 0x140352e55 call FMODLevelVisualizer__create ; +0x8b, 0x140352e5b mov [rsi+37F0h], rax ; +0x90, 0x140352e60 mov rcx, [rsi+3640h] ; +0x97, 0x140352e67 mov rdx, [rcx] ; +0x9e, 0x140352e6e mov r9, [rdx+1C8h] ; +0xa1, 0x140352e71 mov r8d, 64h ; 'd' ; +0xa8, 0x140352e78 mov rdx, rax ; +0xae, 0x140352e7e call r9 ; +0xb1, 0x140352e81 mov rax, [rsi+37F0h] ; +0xb4, 0x140352e84 mov rdi, [rax] ; +0xbb, 0x140352e8b movss xmm6, dword ptr [rsp+48h+arg_0+4] ; +0xbe, 0x140352e8e mulss xmm6, cs:dword_140834F20 ; +0xc4, 0x140352e94 xorps xmm2, xmm2 ; +0xcc, 0x140352e9c xorps xmm1, xmm1 ; +0xcf, 0x140352e9f lea rcx, [rsp+48h+arg_10] ; +0xd2, 0x140352ea2 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd7, 0x140352ea7 mov rbx, [rsi+37F0h] ; +0xdd, 0x140352ead movss xmm1, dword ptr [rax] ; +0xe4, 0x140352eb4 addss xmm1, cs:dword_1408355B4 ; +0xe8, 0x140352eb8 movaps xmm2, xmm6 ; +0xf0, 0x140352ec0 lea rcx, [rsp+48h+arg_18] ; +0xf3, 0x140352ec3 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf8, 0x140352ec8 mov rdx, rax ; +0xfe, 0x140352ece mov rcx, rbx ; +0x101, 0x140352ed1 call qword ptr [rdi+0B8h] ; +0x104, 0x140352ed4 call FMODLevelVisualizer__create ; +0x10a, 0x140352eda mov [rsi+37F8h], rax ; +0x10f, 0x140352edf mov rcx, [rsi+3640h] ; +0x116, 0x140352ee6 mov rdx, [rcx] ; +0x11d, 0x140352eed mov r9, [rdx+1C8h] ; +0x120, 0x140352ef0 mov r8d, 64h ; 'd' ; +0x127, 0x140352ef7 mov rdx, rax ; +0x12d, 0x140352efd call r9 ; +0x130, 0x140352f00 mov rax, [rsi+37F8h] ; +0x133, 0x140352f03 mov rdi, [rax] ; +0x13a, 0x140352f0a movss xmm6, dword ptr [rsp+48h+arg_0+4] ; +0x13d, 0x140352f0d mulss xmm6, cs:dword_140834F20 ; +0x143, 0x140352f13 xorps xmm2, xmm2 ; +0x14b, 0x140352f1b xorps xmm1, xmm1 ; +0x14e, 0x140352f1e lea rcx, [rsp+48h+arg_10] ; +0x151, 0x140352f21 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x156, 0x140352f26 mov rbx, [rsi+37F8h] ; +0x15c, 0x140352f2c movss xmm1, dword ptr [rax] ; +0x163, 0x140352f33 addss xmm1, cs:dword_14083565C ; +0x167, 0x140352f37 movaps xmm2, xmm6 ; +0x16f, 0x140352f3f lea rcx, [rsp+48h+arg_18] ; +0x172, 0x140352f42 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x177, 0x140352f47 mov rdx, rax ; +0x17d, 0x140352f4d mov rcx, rbx ; +0x180, 0x140352f50 call qword ptr [rdi+0B8h] ; +0x183, 0x140352f53 mov rcx, [rsi+37F0h] ; +0x189, 0x140352f59 mov rax, [rcx] ; +0x190, 0x140352f60 movzx edx, byte ptr [rsi+3800h] ; +0x193, 0x140352f63 call qword ptr [rax+150h] ; +0x19a, 0x140352f6a mov rcx, [rsi+37F8h] ; +0x1a0, 0x140352f70 mov rax, [rcx] ; +0x1a7, 0x140352f77 movzx edx, byte ptr [rsi+3800h] ; +0x1aa, 0x140352f7a call qword ptr [rax+150h] ; +0x1b1, 0x140352f81 movaps xmm6, [rsp+48h+var_28] ; +0x1b7, 0x140352f87 add rsp, 30h ; +0x1bc, 0x140352f8c pop rdi ; +0x1c0, 0x140352f90 pop rsi ; +0x1c1, 0x140352f91 pop rbx ; +0x1c2, 0x140352f92 retn ; +0x1c3, 0x140352f93