; ; sub_18000C1C0 from 0x18000c1c0 to 0x18000c502 (834 bytes) ; ; 7 xrefs: ; > sub_18000BC20 @ 0x18000bf51 ; > sub_18000BFC0 @ 0x18000bfe1 ; > cocos2d::extension::CCControlSwitch::setOn @ 0x18000ca17 ; > cocos2d::extension::CCControlSwitch::setOn @ 0x18000cacd ; > cocos2d::extension::CCControlSwitch::ccTouchBegan @ 0x18000cbfc ; > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0x18000ccce ; > @ 0x18004bc24 ; ; 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 12:15:38 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x18000c1c0 push rbp ; +0x5, 0x18000c1c5 push rsi ; +0x6, 0x18000c1c6 push rdi ; +0x7, 0x18000c1c7 push r14 ; +0x8, 0x18000c1c8 push r15 ; +0xa, 0x18000c1ca sub rsp, 30h ; +0xc, 0x18000c1cc mov rbx, [rcx+280h] ; +0x10, 0x18000c1d0 mov r15, rcx ; +0x17, 0x18000c1d7 mov rcx, rbx ; +0x1a, 0x18000c1da movaps [rsp+58h+var_38], xmm6 ; +0x1d, 0x18000c1dd mov rax, [rbx] ; +0x22, 0x18000c1e2 call qword ptr [rax+140h] ; +0x25, 0x18000c1e5 mov r14, [r15+280h] ; +0x2b, 0x18000c1eb mov rcx, rbx ; +0x32, 0x18000c1f2 mov rdx, [rbx] ; +0x35, 0x18000c1f5 mov rdi, rax ; +0x38, 0x18000c1f8 mov rsi, [r14] ; +0x3b, 0x18000c1fb call qword ptr [rdx+140h] ; +0x3e, 0x18000c1fe movss xmm1, dword ptr [rdi] ; +0x44, 0x18000c204 lea rcx, [rsp+58h+arg_0] ; +0x48, 0x18000c208 movss xmm6, cs:dword_18002BBD8 ; +0x4d, 0x18000c20d mulss xmm1, xmm6 ; +0x55, 0x18000c215 movss xmm2, dword ptr [rax+4] ; +0x59, 0x18000c219 mulss xmm2, xmm6 ; +0x5e, 0x18000c21e addss xmm1, dword ptr [r15+260h] ; +0x62, 0x18000c222 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x6b, 0x18000c22b mov rdx, rax ; +0x71, 0x18000c231 mov rcx, r14 ; +0x74, 0x18000c234 call qword ptr [rsi+0B8h] ; +0x77, 0x18000c237 mov rcx, [r15+280h] ; +0x7d, 0x18000c23d mov rdi, [r15+288h] ; +0x84, 0x18000c244 mov rax, [rcx] ; +0x8b, 0x18000c24b call qword ptr [rax+140h] ; +0x8e, 0x18000c24e mov rcx, [r15+288h] ; +0x94, 0x18000c254 mov rsi, rax ; +0x9b, 0x18000c25b mov rdx, [rcx] ; +0x9e, 0x18000c25e call qword ptr [rdx+140h] ; +0xa1, 0x18000c261 mov r14, [r15+288h] ; +0xa7, 0x18000c267 mov rcx, rdi ; +0xae, 0x18000c26e mov rdx, [rdi] ; +0xb1, 0x18000c271 mov rbx, rax ; +0xb4, 0x18000c274 mov rbp, [r14] ; +0xb7, 0x18000c277 call qword ptr [rdx+140h] ; +0xba, 0x18000c27a movss xmm1, dword ptr [rbx] ; +0xc0, 0x18000c280 lea rcx, [rsp+58h+arg_0] ; +0xc4, 0x18000c284 mulss xmm1, xmm6 ; +0xc9, 0x18000c289 movss xmm2, dword ptr [rax+4] ; +0xcd, 0x18000c28d mulss xmm2, xmm6 ; +0xd2, 0x18000c292 addss xmm1, dword ptr [rsi] ; +0xd6, 0x18000c296 addss xmm1, dword ptr [r15+260h] ; +0xda, 0x18000c29a call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe3, 0x18000c2a3 mov rdx, rax ; +0xe9, 0x18000c2a9 mov rcx, r14 ; +0xec, 0x18000c2ac call qword ptr [rbp+0B8h] ; +0xef, 0x18000c2af mov rcx, [r15+280h] ; +0xf5, 0x18000c2b5 mov rbx, [r15+270h] ; +0xfc, 0x18000c2bc mov rax, [rcx] ; +0x103, 0x18000c2c3 call qword ptr [rax+140h] ; +0x106, 0x18000c2c6 mov rdx, [rbx] ; +0x10c, 0x18000c2cc mov rcx, rbx ; +0x10f, 0x18000c2cf mov r14, [r15+290h] ; +0x112, 0x18000c2d2 mov rdi, rax ; +0x119, 0x18000c2d9 mov r8, [rdx+88h] ; +0x11c, 0x18000c2dc lea rdx, [rsp+58h+arg_0] ; +0x123, 0x18000c2e3 mov rsi, [r14] ; +0x128, 0x18000c2e8 call r8 ; +0x12b, 0x18000c2eb movss xmm1, dword ptr [r15+260h] ; +0x12e, 0x18000c2ee lea rcx, [rsp+58h+arg_8] ; +0x137, 0x18000c2f7 addss xmm1, dword ptr [rdi] ; +0x13c, 0x18000c2fc movss xmm2, dword ptr [rax+4] ; +0x140, 0x18000c300 mulss xmm2, xmm6 ; +0x145, 0x18000c305 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x149, 0x18000c309 mov rdx, rax ; +0x14f, 0x18000c30f mov rcx, r14 ; +0x152, 0x18000c312 call qword ptr [rsi+0B8h] ; +0x155, 0x18000c315 cmp qword ptr [r15+298h], 0 ; +0x15b, 0x18000c31b jz short loc_18000C39C ; +0x163, 0x18000c323 mov rcx, [r15+290h] ; +0x165, 0x18000c325 mov rdi, [r15+280h] ; +0x16c, 0x18000c32c mov rax, [rcx] ; +0x173, 0x18000c333 call qword ptr [rax+140h] ; +0x176, 0x18000c336 mov rcx, [r15+280h] ; +0x17c, 0x18000c33c mov rsi, rax ; +0x183, 0x18000c343 mov rdx, [rcx] ; +0x186, 0x18000c346 call qword ptr [rdx+0C8h] ; +0x189, 0x18000c349 mov r14, [r15+298h] ; +0x18f, 0x18000c34f mov rcx, rdi ; +0x196, 0x18000c356 mov rdx, [rdi] ; +0x199, 0x18000c359 mov rbx, rax ; +0x19c, 0x18000c35c mov rbp, [r14] ; +0x19f, 0x18000c35f call qword ptr [rdx+140h] ; +0x1a2, 0x18000c362 movss xmm0, dword ptr [rsi] ; +0x1a8, 0x18000c368 lea rcx, [rsp+58h+arg_0] ; +0x1ac, 0x18000c36c divss xmm0, cs:dword_18002BC4C ; +0x1b1, 0x18000c371 movss xmm1, dword ptr [rbx] ; +0x1b9, 0x18000c379 movss xmm2, dword ptr [rax+4] ; +0x1bd, 0x18000c37d subss xmm1, xmm0 ; +0x1c2, 0x18000c382 mulss xmm2, xmm6 ; +0x1c6, 0x18000c386 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ca, 0x18000c38a mov rdx, rax ; +0x1d0, 0x18000c390 mov rcx, r14 ; +0x1d3, 0x18000c393 call qword ptr [rbp+0B8h] ; +0x1d6, 0x18000c396 cmp qword ptr [r15+2A0h], 0 ; +0x1dc, 0x18000c39c jz short loc_18000C416 ; +0x1e4, 0x18000c3a4 mov rdi, [r15+288h] ; +0x1e6, 0x18000c3a6 mov rcx, rdi ; +0x1ed, 0x18000c3ad mov rax, [rdi] ; +0x1f0, 0x18000c3b0 call qword ptr [rax+0C8h] ; +0x1f3, 0x18000c3b3 mov rcx, [r15+290h] ; +0x1f9, 0x18000c3b9 mov rbp, rax ; +0x200, 0x18000c3c0 mov rdx, [rcx] ; +0x203, 0x18000c3c3 call qword ptr [rdx+140h] ; +0x206, 0x18000c3c6 mov r14, [r15+2A0h] ; +0x20c, 0x18000c3cc mov rcx, rdi ; +0x213, 0x18000c3d3 mov rdx, [rdi] ; +0x216, 0x18000c3d6 mov rbx, rax ; +0x219, 0x18000c3d9 mov rsi, [r14] ; +0x21c, 0x18000c3dc call qword ptr [rdx+140h] ; +0x21f, 0x18000c3df movss xmm1, dword ptr [rbx] ; +0x225, 0x18000c3e5 lea rcx, [rsp+58h+arg_0] ; +0x229, 0x18000c3e9 divss xmm1, cs:dword_18002BC4C ; +0x22e, 0x18000c3ee movss xmm2, dword ptr [rax+4] ; +0x236, 0x18000c3f6 addss xmm1, dword ptr [rbp+0] ; +0x23b, 0x18000c3fb mulss xmm2, xmm6 ; +0x240, 0x18000c400 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x244, 0x18000c404 mov rdx, rax ; +0x24a, 0x18000c40a mov rcx, r14 ; +0x24d, 0x18000c40d call qword ptr [rsi+0B8h] ; +0x250, 0x18000c410 mov rdi, [r15+270h] ; +0x256, 0x18000c416 lea rdx, [rsp+58h+arg_0] ; +0x25d, 0x18000c41d mov rcx, rdi ; +0x262, 0x18000c422 mov rax, [rdi] ; +0x265, 0x18000c425 call qword ptr [rax+88h] ; +0x268, 0x18000c428 mov rdx, [rdi] ; +0x26e, 0x18000c42e mov rcx, rdi ; +0x271, 0x18000c431 mov rbx, rax ; +0x274, 0x18000c434 mov r8, [rdx+88h] ; +0x277, 0x18000c437 lea rdx, [rsp+58h+arg_8] ; +0x27e, 0x18000c43e call r8 ; +0x283, 0x18000c443 cvttss2si ecx, dword ptr [rbx] ; +0x286, 0x18000c446 cvttss2si edx, dword ptr [rax+4] ; +0x28a, 0x18000c44a call cs:?create@CCRenderTexture@cocos2d@@SAPEAV12@HH@Z; cocos2d::CCRenderTexture::create(int,int) ; +0x28f, 0x18000c44f mov rcx, rax ; +0x295, 0x18000c455 mov rbx, rax ; +0x298, 0x18000c458 call cs:?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x29b, 0x18000c45b mov rcx, [r15+280h] ; +0x2a1, 0x18000c461 mov rdx, [rcx] ; +0x2a8, 0x18000c468 call qword ptr [rdx+2E8h] ; +0x2ab, 0x18000c46b mov rcx, [r15+288h] ; +0x2b1, 0x18000c471 mov rdx, [rcx] ; +0x2b8, 0x18000c478 call qword ptr [rdx+2E8h] ; +0x2bb, 0x18000c47b mov rcx, [r15+298h] ; +0x2c1, 0x18000c481 test rcx, rcx ; +0x2c8, 0x18000c488 jz short loc_18000C496 ; +0x2cb, 0x18000c48b mov rax, [rcx] ; +0x2cd, 0x18000c48d call qword ptr [rax+2E8h] ; +0x2d0, 0x18000c490 mov rcx, [r15+2A0h] ; +0x2d6, 0x18000c496 test rcx, rcx ; +0x2dd, 0x18000c49d jz short loc_18000C4AB ; +0x2e0, 0x18000c4a0 mov rax, [rcx] ; +0x2e2, 0x18000c4a2 call qword ptr [rax+2E8h] ; +0x2e5, 0x18000c4a5 mov rcx, rbx ; +0x2eb, 0x18000c4ab call cs:?end@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::end(void) ; +0x2ee, 0x18000c4ae mov rax, [rbx] ; +0x2f4, 0x18000c4b4 mov rcx, rbx ; +0x2f7, 0x18000c4b7 call qword ptr [rax+378h] ; +0x2fa, 0x18000c4ba mov rbx, [r15+158h] ; +0x300, 0x18000c4c0 lea rcx, [rax+158h] ; +0x307, 0x18000c4c7 mov rax, [rcx] ; +0x30e, 0x18000c4ce call qword ptr [rax+10h] ; +0x311, 0x18000c4d1 mov rdx, rax ; +0x314, 0x18000c4d4 lea rcx, [r15+158h] ; +0x317, 0x18000c4d7 call qword ptr [rbx+18h] ; +0x31e, 0x18000c4de mov dl, 1 ; +0x321, 0x18000c4e1 mov rcx, r15 ; +0x323, 0x18000c4e3 mov rbx, [rsp+58h+arg_10] ; +0x326, 0x18000c4e6 movaps xmm6, [rsp+58h+var_38] ; +0x32b, 0x18000c4eb add rsp, 30h ; +0x330, 0x18000c4f0 pop r15 ; +0x334, 0x18000c4f4 pop r14 ; +0x336, 0x18000c4f6 pop rdi ; +0x338, 0x18000c4f8 pop rsi ; +0x339, 0x18000c4f9 pop rbp ; +0x33a, 0x18000c4fa jmp cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0x33b, 0x18000c4fb