; ; cocos2d::extension::CCControlSwitch::ccTouchBegan from 0x18000cb30 to 0x18000cc25 (245 bytes) ; ; 3 xrefs: ; > @ 0x180028c68 ; > @ 0x180032408 ; > @ 0x18004bca8 ; ; 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_8], rbx ; +0x0, 0x18000cb30 mov [rsp+arg_10], rsi ; +0x5, 0x18000cb35 push rdi ; +0xa, 0x18000cb3a sub rsp, 20h ; +0xb, 0x18000cb3b lea rbx, [rcx-140h] ; +0xf, 0x18000cb3f mov rdi, rcx ; +0x16, 0x18000cb46 mov rax, [rbx] ; +0x19, 0x18000cb49 mov rcx, rbx ; +0x1c, 0x18000cb4c mov rsi, rdx ; +0x1f, 0x18000cb4f call qword ptr [rax+460h] ; +0x22, 0x18000cb52 test al, al ; +0x28, 0x18000cb58 jz loc_18000CC13 ; +0x2a, 0x18000cb5a mov rax, [rbx] ; +0x30, 0x18000cb60 mov rcx, rbx ; +0x33, 0x18000cb63 call qword ptr [rax+410h] ; +0x36, 0x18000cb66 test al, al ; +0x3c, 0x18000cb6c jz loc_18000CC13 ; +0x3e, 0x18000cb6e mov rax, [rbx] ; +0x44, 0x18000cb74 mov rcx, rbx ; +0x47, 0x18000cb77 call qword ptr [rax+158h] ; +0x4a, 0x18000cb7a test al, al ; +0x50, 0x18000cb80 jz loc_18000CC13 ; +0x52, 0x18000cb82 lea rdx, [rsp+28h+arg_0] ; +0x58, 0x18000cb88 mov byte ptr [rdi+0A4h], 0 ; +0x5d, 0x18000cb8d mov rcx, rsi ; +0x64, 0x18000cb94 call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x67, 0x18000cb97 lea r8, [rsp+28h+arg_0] ; +0x6d, 0x18000cb9d mov rcx, rbx ; +0x72, 0x18000cba2 lea rdx, [rsp+28h+arg_18] ; +0x75, 0x18000cba5 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x7a, 0x18000cbaa mov rdx, rax ; +0x80, 0x18000cbb0 lea rcx, [rsp+28h+arg_0] ; +0x83, 0x18000cbb3 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x88, 0x18000cbb8 mov rax, [rdi+98h] ; +0x8e, 0x18000cbbe lea rdx, unk_180025A2C ; +0x95, 0x18000cbc5 movss xmm0, [rsp+28h+arg_0] ; +0x9c, 0x18000cbcc subss xmm0, dword ptr [rax+260h] ; +0xa2, 0x18000cbd2 movss dword ptr [rdi+0A0h], xmm0 ; +0xaa, 0x18000cbda mov rcx, [rax+290h] ; +0xb2, 0x18000cbe2 add rcx, 140h ; +0xb9, 0x18000cbe9 mov rax, [rcx] ; +0xc0, 0x18000cbf0 call qword ptr [rax] ; +0xc3, 0x18000cbf3 mov rcx, [rdi+98h] ; +0xc5, 0x18000cbf5 call sub_18000C1C0 ; +0xcc, 0x18000cbfc mov al, 1 ; +0xd1, 0x18000cc01 mov rbx, [rsp+28h+arg_8] ; +0xd3, 0x18000cc03 mov rsi, [rsp+28h+arg_10] ; +0xd8, 0x18000cc08 add rsp, 20h ; +0xdd, 0x18000cc0d pop rdi ; +0xe1, 0x18000cc11 retn ; +0xe2, 0x18000cc12 mov rbx, [rsp+28h+arg_8] ; +0xe3, 0x18000cc13 xor al, al ; +0xe8, 0x18000cc18 mov rsi, [rsp+28h+arg_10] ; +0xea, 0x18000cc1a add rsp, 20h ; +0xef, 0x18000cc1f pop rdi ; +0xf3, 0x18000cc23 retn ; +0xf4, 0x18000cc24