; ; GJBaseGameLayer::toggleAudioVisualizer from 0x140248ae0 to 0x140248c9a (442 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::init @ 0x140207a6a ; > GameOptionsLayer::didToggle @ 0x1402a0795 ; > @ 0x1406ce79c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x140248ae0 push rdi ; +0x5, 0x140248ae5 sub rsp, 30h ; +0x6, 0x140248ae6 movaps [rsp+38h+var_18], xmm6 ; +0xa, 0x140248aea movzx ebx, dl ; +0xf, 0x140248aef mov rdi, rcx ; +0x12, 0x140248af2 mov rax, cs:qword_1406C2E88 ; +0x15, 0x140248af5 test rax, rax ; +0x1c, 0x140248afc jnz short loc_140248B30 ; +0x1f, 0x140248aff mov ecx, 888h; Size ; +0x21, 0x140248b01 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x26, 0x140248b06 mov [rsp+38h+arg_0], rax ; +0x2b, 0x140248b0b mov rcx, rax ; +0x30, 0x140248b10 call FMODAudioEngine__FMODAudioEngine ; +0x33, 0x140248b13 nop ; +0x38, 0x140248b18 mov cs:qword_1406C2E88, rax ; +0x39, 0x140248b19 mov rdx, [rax] ; +0x40, 0x140248b20 mov rcx, rax ; +0x43, 0x140248b23 call qword ptr [rdx+48h] ; +0x46, 0x140248b26 mov rax, cs:qword_1406C2E88 ; +0x49, 0x140248b29 mov [rax+868h], bl ; +0x50, 0x140248b30 cmp [rdi+3700h], bl ; +0x56, 0x140248b36 jz loc_140248C8A ; +0x5c, 0x140248b3c mov [rdi+3700h], bl ; +0x62, 0x140248b42 cmp qword ptr [rdi+36F0h], 0 ; +0x68, 0x140248b48 jnz loc_140248C5C ; +0x70, 0x140248b50 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x140248b56 mov rcx, rax ; +0x7c, 0x140248b5c lea rdx, [rsp+38h+arg_0] ; +0x7f, 0x140248b5f call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x84, 0x140248b64 call FMODLevelVisualizer__create ; +0x8a, 0x140248b6a mov [rdi+36F0h], rax ; +0x8f, 0x140248b6f mov rcx, [rdi+3540h] ; +0x96, 0x140248b76 mov r9, [rcx] ; +0x9d, 0x140248b7d mov r8d, 64h ; 'd' ; +0xa0, 0x140248b80 mov rdx, rax ; +0xa6, 0x140248b86 call qword ptr [r9+1B8h] ; +0xa9, 0x140248b89 mov rax, [rdi+36F0h] ; +0xb0, 0x140248b90 mov rbx, [rax] ; +0xb7, 0x140248b97 movss xmm6, dword ptr [rsp+38h+arg_0+4] ; +0xba, 0x140248b9a mulss xmm6, cs:dword_140622B08 ; +0xc0, 0x140248ba0 xorps xmm2, xmm2 ; +0xc8, 0x140248ba8 xorps xmm1, xmm1 ; +0xcb, 0x140248bab lea rcx, [rsp+38h+arg_10] ; +0xce, 0x140248bae call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd3, 0x140248bb3 movss xmm1, dword ptr [rax] ; +0xd9, 0x140248bb9 addss xmm1, cs:dword_140623120 ; +0xdd, 0x140248bbd movaps xmm2, xmm6 ; +0xe5, 0x140248bc5 lea rcx, [rsp+38h+arg_18] ; +0xe8, 0x140248bc8 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xed, 0x140248bcd mov rdx, rax ; +0xf3, 0x140248bd3 mov rcx, [rdi+36F0h] ; +0xf6, 0x140248bd6 call qword ptr [rbx+0B8h] ; +0xfd, 0x140248bdd call FMODLevelVisualizer__create ; +0x103, 0x140248be3 mov [rdi+36F8h], rax ; +0x108, 0x140248be8 mov rcx, [rdi+3540h] ; +0x10f, 0x140248bef mov r9, [rcx] ; +0x116, 0x140248bf6 mov r8d, 64h ; 'd' ; +0x119, 0x140248bf9 mov rdx, rax ; +0x11f, 0x140248bff call qword ptr [r9+1B8h] ; +0x122, 0x140248c02 mov rax, [rdi+36F8h] ; +0x129, 0x140248c09 mov rbx, [rax] ; +0x130, 0x140248c10 movss xmm6, dword ptr [rsp+38h+arg_0+4] ; +0x133, 0x140248c13 mulss xmm6, cs:dword_140622B08 ; +0x139, 0x140248c19 xorps xmm2, xmm2 ; +0x141, 0x140248c21 xorps xmm1, xmm1 ; +0x144, 0x140248c24 lea rcx, [rsp+38h+arg_10] ; +0x147, 0x140248c27 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x140248c2c movss xmm1, dword ptr [rax] ; +0x152, 0x140248c32 addss xmm1, cs:dword_140623198 ; +0x156, 0x140248c36 movaps xmm2, xmm6 ; +0x15e, 0x140248c3e lea rcx, [rsp+38h+arg_18] ; +0x161, 0x140248c41 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x166, 0x140248c46 mov rdx, rax ; +0x16c, 0x140248c4c mov rcx, [rdi+36F8h] ; +0x16f, 0x140248c4f call qword ptr [rbx+0B8h] ; +0x176, 0x140248c56 mov rcx, [rdi+36F0h] ; +0x17c, 0x140248c5c mov rax, [rcx] ; +0x183, 0x140248c63 movzx edx, byte ptr [rdi+3700h] ; +0x186, 0x140248c66 call qword ptr [rax+140h] ; +0x18d, 0x140248c6d mov rcx, [rdi+36F8h] ; +0x193, 0x140248c73 mov rax, [rcx] ; +0x19a, 0x140248c7a movzx edx, byte ptr [rdi+3700h] ; +0x19d, 0x140248c7d call qword ptr [rax+140h] ; +0x1a4, 0x140248c84 mov rbx, [rsp+38h+arg_8] ; +0x1aa, 0x140248c8a movaps xmm6, [rsp+38h+var_18] ; +0x1af, 0x140248c8f add rsp, 30h ; +0x1b4, 0x140248c94 pop rdi ; +0x1b8, 0x140248c98 retn ; +0x1b9, 0x140248c99