; ; cocos2d::extension::CCControlSwitch::ccTouchBegan from 0x18000cff0 to 0x18000d0e5 (245 bytes) ; ; 3 xrefs: ; > @ 0x180026650 ; > @ 0x18002fdf8 ; > @ 0x180049dc8 ; ; 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, 0x18000cff0 mov [rsp+arg_10], rsi ; +0x5, 0x18000cff5 push rdi ; +0xa, 0x18000cffa sub rsp, 20h ; +0xb, 0x18000cffb lea rbx, [rcx-140h] ; +0xf, 0x18000cfff mov rdi, rcx ; +0x16, 0x18000d006 mov rax, [rbx] ; +0x19, 0x18000d009 mov rcx, rbx ; +0x1c, 0x18000d00c mov rsi, rdx ; +0x1f, 0x18000d00f call qword ptr [rax+450h] ; +0x22, 0x18000d012 test al, al ; +0x28, 0x18000d018 jz loc_18000D0D3 ; +0x2a, 0x18000d01a mov rax, [rbx] ; +0x30, 0x18000d020 mov rcx, rbx ; +0x33, 0x18000d023 call qword ptr [rax+400h] ; +0x36, 0x18000d026 test al, al ; +0x3c, 0x18000d02c jz loc_18000D0D3 ; +0x3e, 0x18000d02e mov rax, [rbx] ; +0x44, 0x18000d034 mov rcx, rbx ; +0x47, 0x18000d037 call qword ptr [rax+148h] ; +0x4a, 0x18000d03a test al, al ; +0x50, 0x18000d040 jz loc_18000D0D3 ; +0x52, 0x18000d042 lea rdx, [rsp+28h+arg_0] ; +0x58, 0x18000d048 mov byte ptr [rdi+0A4h], 0 ; +0x5d, 0x18000d04d mov rcx, rsi ; +0x64, 0x18000d054 call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x67, 0x18000d057 lea r8, [rsp+28h+arg_0] ; +0x6d, 0x18000d05d mov rcx, rbx ; +0x72, 0x18000d062 lea rdx, [rsp+28h+arg_18] ; +0x75, 0x18000d065 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x7a, 0x18000d06a mov rdx, rax ; +0x80, 0x18000d070 lea rcx, [rsp+28h+arg_0] ; +0x83, 0x18000d073 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x88, 0x18000d078 mov rax, [rdi+98h] ; +0x8e, 0x18000d07e lea rdx, unk_1800234BC ; +0x95, 0x18000d085 movss xmm0, [rsp+28h+arg_0] ; +0x9c, 0x18000d08c subss xmm0, dword ptr [rax+260h] ; +0xa2, 0x18000d092 movss dword ptr [rdi+0A0h], xmm0 ; +0xaa, 0x18000d09a mov rcx, [rax+290h] ; +0xb2, 0x18000d0a2 add rcx, 140h ; +0xb9, 0x18000d0a9 mov rax, [rcx] ; +0xc0, 0x18000d0b0 call qword ptr [rax] ; +0xc3, 0x18000d0b3 mov rcx, [rdi+98h] ; +0xc5, 0x18000d0b5 call sub_18000C670 ; +0xcc, 0x18000d0bc mov al, 1 ; +0xd1, 0x18000d0c1 mov rbx, [rsp+28h+arg_8] ; +0xd3, 0x18000d0c3 mov rsi, [rsp+28h+arg_10] ; +0xd8, 0x18000d0c8 add rsp, 20h ; +0xdd, 0x18000d0cd pop rdi ; +0xe1, 0x18000d0d1 retn ; +0xe2, 0x18000d0d2 mov rbx, [rsp+28h+arg_8] ; +0xe3, 0x18000d0d3 xor al, al ; +0xe8, 0x18000d0d8 mov rsi, [rsp+28h+arg_10] ; +0xea, 0x18000d0da add rsp, 20h ; +0xef, 0x18000d0df pop rdi ; +0xf3, 0x18000d0e3 retn ; +0xf4, 0x18000d0e4