; ; FMODLevelVisualizer::init from 0x14029e830 to 0x14029ece1 (1201 bytes) ; ; 5 xrefs: ; > FMODLevelVisualizer::create @ 0x14029e7fb ; > FMODLevelVisualizer::create @ 0x14029e802 ; > FMODLevelVisualizer::create @ 0x14029e7ec ; > @ 0x140572af8 ; > @ 0x1406d1f10 ; ; 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 ; push r12 ; +0x0, 0x14029e830 sub rsp, 0E0h ; +0x2, 0x14029e832 mov r12, rcx ; +0x9, 0x14029e839 call cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0xc, 0x14029e83c test al, al ; +0x12, 0x14029e842 jnz short loc_14029E850 ; +0x14, 0x14029e844 add rsp, 0E0h ; +0x16, 0x14029e846 pop r12 ; +0x1d, 0x14029e84d retn ; +0x1f, 0x14029e84f mov rax, [r12] ; +0x20, 0x14029e850 lea rdx, stru_1406C1F20 ; +0x24, 0x14029e854 mov [rsp+0E8h+var_10], rbx ; +0x2b, 0x14029e85b mov rcx, r12 ; +0x33, 0x14029e863 mov [rsp+0E8h+var_18], rbp ; +0x36, 0x14029e866 mov [rsp+0E8h+var_20], rsi ; +0x3e, 0x14029e86e mov [rsp+0E8h+var_28], rdi ; +0x46, 0x14029e876 mov [rsp+0E8h+var_30], r14 ; +0x4e, 0x14029e87e mov [rsp+0E8h+var_38], r15 ; +0x56, 0x14029e886 movaps [rsp+0E8h+var_48], xmm6 ; +0x5e, 0x14029e88e movaps [rsp+0E8h+var_58], xmm7 ; +0x66, 0x14029e896 movaps [rsp+0E8h+var_68], xmm8 ; +0x6e, 0x14029e89e movaps [rsp+0E8h+var_78], xmm9 ; +0x77, 0x14029e8a7 movaps [rsp+0E8h+var_88], xmm10 ; +0x7d, 0x14029e8ad movaps [rsp+0E8h+var_98], xmm11 ; +0x83, 0x14029e8b3 movaps [rsp+0E8h+var_A8], xmm12 ; +0x89, 0x14029e8b9 movaps [rsp+0E8h+var_B8], xmm13 ; +0x8f, 0x14029e8bf call qword ptr [rax+128h] ; +0x95, 0x14029e8c5 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0x9b, 0x14029e8cb xor r8d, r8d ; +0xa1, 0x14029e8d1 lea rdx, aPixelsheet01Pn; "PixelSheet_01.png" ; +0xa4, 0x14029e8d4 mov rcx, rax ; +0xab, 0x14029e8db call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0xae, 0x14029e8de mov rcx, rax ; +0xb4, 0x14029e8e4 mov rbx, rax ; +0xb7, 0x14029e8e7 call cs:?setAliasTexParameters@CCTexture2D@cocos2d@@QEAAXXZ; cocos2d::CCTexture2D::setAliasTexParameters(void) ; +0xba, 0x14029e8ea mov rcx, rbx ; +0xc0, 0x14029e8f0 call cs:?createWithTexture@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@@Z; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *) ; +0xc3, 0x14029e8f3 mov r8, [r12] ; +0xc9, 0x14029e8f9 mov rcx, r12 ; +0xcd, 0x14029e8fd mov rdx, rax ; +0xd0, 0x14029e900 mov r14, rax ; +0xd3, 0x14029e903 call qword ptr [r8+1C0h] ; +0xd6, 0x14029e906 mov r8, [r14] ; +0xdd, 0x14029e90d mov edx, 32h ; '2' ; +0xe0, 0x14029e910 mov rcx, r14 ; +0xe5, 0x14029e915 call qword ptr [r8+40h] ; +0xe8, 0x14029e918 lea rcx, aPixelartBase00; "pixelart_base_001.png" ; +0xec, 0x14029e91c call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xf3, 0x14029e923 mov r9, [r14] ; +0xf9, 0x14029e929 mov r8d, 0FFFFFFFFh ; +0xfc, 0x14029e92c mov rdx, rax ; +0x102, 0x14029e932 mov rcx, r14 ; +0x105, 0x14029e935 mov rbx, rax ; +0x108, 0x14029e938 call qword ptr [r9+1B8h] ; +0x10b, 0x14029e93b lea rcx, [rbx+140h] ; +0x112, 0x14029e942 mov r8, [rcx] ; +0x119, 0x14029e949 lea rdx, stru_140529AD4 ; +0x11c, 0x14029e94c call qword ptr [r8] ; +0x123, 0x14029e953 movss xmm0, dword ptr [rbx+1B0h] ; +0x126, 0x14029e956 mov rcx, rbx ; +0x12e, 0x14029e95e movss xmm1, cs:flt_14062307C ; +0x131, 0x14029e961 movss dword ptr [r12+140h], xmm0 ; +0x139, 0x14029e969 mov rax, [rbx] ; +0x143, 0x14029e973 divss xmm1, xmm0 ; +0x146, 0x14029e976 call qword ptr [rax+78h] ; +0x14a, 0x14029e97a movss xmm1, cs:dword_1406232BC ; +0x14d, 0x14029e97d mov rcx, rbx ; +0x155, 0x14029e985 divss xmm1, dword ptr [r12+140h] ; +0x158, 0x14029e988 mov rax, [rbx] ; +0x162, 0x14029e992 call qword ptr [rax+88h] ; +0x165, 0x14029e995 movss xmm2, cs:dword_140623940 ; +0x16b, 0x14029e99b lea rcx, [rsp+0E8h+arg_18] ; +0x173, 0x14029e9a3 movss xmm1, cs:dword_140623788 ; +0x17b, 0x14029e9ab call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x183, 0x14029e9b3 movss xmm9, cs:flt_140623028 ; +0x189, 0x14029e9b9 xor ebp, ebp ; +0x192, 0x14029e9c2 divss xmm9, dword ptr [r12+140h] ; +0x194, 0x14029e9c4 movss xmm10, cs:dword_140622BC4 ; +0x19e, 0x14029e9ce movss xmm13, cs:flt_140622C24 ; +0x1a7, 0x14029e9d7 movss xmm11, cs:dword_140622B38 ; +0x1b0, 0x14029e9e0 movss xmm12, cs:dword_1406232AC ; +0x1b9, 0x14029e9e9 movss xmm7, [rsp+0E8h+arg_8] ; +0x1c2, 0x14029e9f2 movss xmm8, [rsp+0E8h+arg_8] ; +0x1cb, 0x14029e9fb nop word ptr [rax+rax+00000000h] ; +0x1d5, 0x14029ea05 lea rdx, [rsp+0E8h+arg_18] ; +0x1e0, 0x14029ea10 lea rcx, [rsp+0E8h+arg_10] ; +0x1e8, 0x14029ea18 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1f0, 0x14029ea20 xor r15d, r15d ; +0x1f6, 0x14029ea26 mov ecx, ebp ; +0x1f9, 0x14029ea29 test ebp, ebp ; +0x1fb, 0x14029ea2b jz short loc_14029EA85 ; +0x1fd, 0x14029ea2d sub ecx, 1 ; +0x1ff, 0x14029ea2f jz short loc_14029EA5F ; +0x202, 0x14029ea32 cmp ecx, 1 ; +0x204, 0x14029ea34 jnz short loc_14029EAAF ; +0x207, 0x14029ea37 movzx eax, cs:word_140529AD8 ; +0x209, 0x14029ea39 movaps xmm7, xmm10 ; +0x210, 0x14029ea40 mov word ptr [rsp+0E8h+arg_8], ax ; +0x214, 0x14029ea44 movaps xmm8, xmm13 ; +0x21c, 0x14029ea4c movzx eax, cs:byte_140529ADA ; +0x220, 0x14029ea50 mov r15d, 12Ch ; +0x227, 0x14029ea57 jmp short loc_14029EAA8 ; +0x22d, 0x14029ea5d movzx eax, cs:word_140529ADC ; +0x22f, 0x14029ea5f movaps xmm7, xmm11 ; +0x236, 0x14029ea66 mov word ptr [rsp+0E8h+arg_8], ax ; +0x23a, 0x14029ea6a movaps xmm8, xmm10 ; +0x242, 0x14029ea72 movzx eax, cs:byte_140529ADE ; +0x246, 0x14029ea76 mov r15d, 0C8h ; +0x24d, 0x14029ea7d jmp short loc_14029EAA8 ; +0x253, 0x14029ea83 movzx eax, cs:word_140529AE0 ; +0x255, 0x14029ea85 xorps xmm7, xmm7 ; +0x25c, 0x14029ea8c mov word ptr [rsp+0E8h+arg_8], ax ; +0x25f, 0x14029ea8f movaps xmm8, xmm11 ; +0x267, 0x14029ea97 movzx eax, cs:byte_140529AE2 ; +0x26b, 0x14029ea9b mov r15d, 64h ; 'd' ; +0x272, 0x14029eaa2 mov byte ptr [rsp+0E8h+arg_8+2], al ; +0x278, 0x14029eaa8 movss xmm1, [rsp+0E8h+arg_14] ; +0x27f, 0x14029eaaf movaps xmm0, xmm7 ; +0x288, 0x14029eab8 mulss xmm0, xmm12 ; +0x28b, 0x14029eabb movaps xmm6, xmm8 ; +0x290, 0x14029eac0 xor esi, esi ; +0x294, 0x14029eac4 subss xmm6, xmm7 ; +0x296, 0x14029eac6 addss xmm1, xmm0 ; +0x29a, 0x14029eaca mulss xmm6, xmm12 ; +0x29e, 0x14029eace movss [rsp+0E8h+arg_14], xmm1 ; +0x2a3, 0x14029ead3 nop dword ptr [rax+00h] ; +0x2ac, 0x14029eadc lea rcx, aPixelartBase00; "pixelart_base_001.png" ; +0x2b0, 0x14029eae0 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x2b7, 0x14029eae7 mov r9, [r14] ; +0x2bd, 0x14029eaed mov r8d, esi ; +0x2c0, 0x14029eaf0 mov rdx, rax ; +0x2c3, 0x14029eaf3 mov rcx, r14 ; +0x2c6, 0x14029eaf6 mov rdi, rax ; +0x2c9, 0x14029eaf9 call qword ptr [r9+1B8h] ; +0x2cc, 0x14029eafc mov r8, [rdi+140h] ; +0x2d3, 0x14029eb03 lea rdx, [rsp+0E8h+arg_8] ; +0x2da, 0x14029eb0a lea rcx, [rdi+140h] ; +0x2e2, 0x14029eb12 call qword ptr [r8] ; +0x2e9, 0x14029eb19 test esi, esi ; +0x2ec, 0x14029eb1c jnz short loc_14029EB33 ; +0x2ee, 0x14029eb1e mov rax, [rdi+140h] ; +0x2f0, 0x14029eb20 lea rcx, [rdi+140h] ; +0x2f7, 0x14029eb27 mov dl, 64h ; 'd' ; +0x2fe, 0x14029eb2e call qword ptr [rax+28h] ; +0x300, 0x14029eb30 mov rax, [rdi] ; +0x303, 0x14029eb33 lea rdx, [rsp+0E8h+arg_10] ; +0x306, 0x14029eb36 mov rcx, rdi ; +0x30e, 0x14029eb3e call qword ptr [rax+0B8h] ; +0x311, 0x14029eb41 mov rbx, [rdi] ; +0x317, 0x14029eb47 lea rcx, [rsp+0E8h+var_C8] ; +0x31a, 0x14029eb4a xorps xmm2, xmm2 ; +0x31f, 0x14029eb4f xorps xmm1, xmm1 ; +0x322, 0x14029eb52 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x325, 0x14029eb55 mov rdx, rax ; +0x32b, 0x14029eb5b mov rcx, rdi ; +0x32e, 0x14029eb5e call qword ptr [rbx+110h] ; +0x331, 0x14029eb61 mov rax, [rdi] ; +0x337, 0x14029eb67 movaps xmm1, xmm9 ; +0x33a, 0x14029eb6a mov rcx, rdi ; +0x33e, 0x14029eb6e call qword ptr [rax+78h] ; +0x341, 0x14029eb71 mov rax, [rdi] ; +0x344, 0x14029eb74 movaps xmm1, xmm6 ; +0x347, 0x14029eb77 divss xmm1, dword ptr [r12+140h] ; +0x34a, 0x14029eb7a mov rcx, rdi ; +0x354, 0x14029eb84 call qword ptr [rax+88h] ; +0x357, 0x14029eb87 cmp esi, 1 ; +0x35d, 0x14029eb8d jz short loc_14029EB9F ; +0x360, 0x14029eb90 inc esi ; +0x362, 0x14029eb92 cmp esi, 2 ; +0x364, 0x14029eb94 jl loc_14029EAE0 ; +0x367, 0x14029eb97 jmp short loc_14029EBAB ; +0x36d, 0x14029eb9d mov rax, [rdi] ; +0x36f, 0x14029eb9f mov edx, r15d ; +0x372, 0x14029eba2 mov rcx, rdi ; +0x375, 0x14029eba5 call qword ptr [rax+40h] ; +0x378, 0x14029eba8 inc ebp ; +0x37b, 0x14029ebab cmp ebp, 3 ; +0x37d, 0x14029ebad jl loc_14029EA10 ; +0x380, 0x14029ebb0 movaps xmm12, [rsp+0E8h+var_A8] ; +0x386, 0x14029ebb6 lea rcx, aPixelartBase00; "pixelart_base_001.png" ; +0x38c, 0x14029ebbc movaps xmm11, [rsp+0E8h+var_98] ; +0x393, 0x14029ebc3 movaps xmm10, [rsp+0E8h+var_88] ; +0x399, 0x14029ebc9 movaps xmm8, [rsp+0E8h+var_68] ; +0x39f, 0x14029ebcf movaps xmm7, [rsp+0E8h+var_58] ; +0x3a8, 0x14029ebd8 movaps xmm6, [rsp+0E8h+var_48] ; +0x3b0, 0x14029ebe0 mov r15, [rsp+0E8h+var_38] ; +0x3b8, 0x14029ebe8 mov rsi, [rsp+0E8h+var_20] ; +0x3c0, 0x14029ebf0 mov rbp, [rsp+0E8h+var_18] ; +0x3c8, 0x14029ebf8 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x3d0, 0x14029ec00 mov r9, [r14] ; +0x3d6, 0x14029ec06 mov r8d, 2 ; +0x3d9, 0x14029ec09 mov rdx, rax ; +0x3df, 0x14029ec0f mov rcx, r14 ; +0x3e2, 0x14029ec12 mov rdi, rax ; +0x3e5, 0x14029ec15 call qword ptr [r9+1B8h] ; +0x3e8, 0x14029ec18 lea rcx, [rdi+140h] ; +0x3ef, 0x14029ec1f mov r8, [rcx] ; +0x3f6, 0x14029ec26 lea rdx, stru_140529AD4 ; +0x3f9, 0x14029ec29 call qword ptr [r8] ; +0x400, 0x14029ec30 mov r8, [rdi] ; +0x403, 0x14029ec33 lea rdx, [rsp+0E8h+arg_18] ; +0x406, 0x14029ec36 mov rcx, rdi ; +0x40e, 0x14029ec3e call qword ptr [r8+0B8h] ; +0x411, 0x14029ec41 mov rbx, [rdi] ; +0x418, 0x14029ec48 lea rcx, [rsp+0E8h+arg_8] ; +0x41b, 0x14029ec4b xorps xmm2, xmm2 ; +0x423, 0x14029ec53 xorps xmm1, xmm1 ; +0x426, 0x14029ec56 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x429, 0x14029ec59 mov rdx, rax ; +0x42f, 0x14029ec5f mov rcx, rdi ; +0x432, 0x14029ec62 call qword ptr [rbx+110h] ; +0x435, 0x14029ec65 mov rax, [rdi] ; +0x43b, 0x14029ec6b movaps xmm1, xmm9 ; +0x43e, 0x14029ec6e mov rcx, rdi ; +0x442, 0x14029ec72 call qword ptr [rax+78h] ; +0x445, 0x14029ec75 divss xmm13, dword ptr [r12+140h] ; +0x448, 0x14029ec78 mov rax, [rdi] ; +0x452, 0x14029ec82 mov rcx, rdi ; +0x455, 0x14029ec85 movaps xmm1, xmm13 ; +0x458, 0x14029ec88 call qword ptr [rax+88h] ; +0x45c, 0x14029ec8c mov rax, [rdi] ; +0x462, 0x14029ec92 mov edx, 190h ; +0x465, 0x14029ec95 mov rcx, rdi ; +0x46a, 0x14029ec9a call qword ptr [rax+40h] ; +0x46d, 0x14029ec9d xorps xmm3, xmm3 ; +0x470, 0x14029eca0 xorps xmm2, xmm2 ; +0x473, 0x14029eca3 xorps xmm1, xmm1 ; +0x476, 0x14029eca6 mov rcx, r12 ; +0x479, 0x14029eca9 call FMODLevelVisualizer__updateVisualizer ; +0x47c, 0x14029ecac movaps xmm13, [rsp+0E8h+var_B8] ; +0x481, 0x14029ecb1 mov al, 1 ; +0x487, 0x14029ecb7 movaps xmm9, [rsp+0E8h+var_78] ; +0x489, 0x14029ecb9 mov r14, [rsp+0E8h+var_30] ; +0x48f, 0x14029ecbf mov rdi, [rsp+0E8h+var_28] ; +0x497, 0x14029ecc7 mov rbx, [rsp+0E8h+var_10] ; +0x49f, 0x14029eccf add rsp, 0E0h ; +0x4a7, 0x14029ecd7 pop r12 ; +0x4ae, 0x14029ecde retn ; +0x4b0, 0x14029ece0