{"type": "func", "start": 6442469808, "end": 6442469876, "name": "cocos2d::extension::CCControlSwitch::locationFromTouch", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::locationFromTouch from 0x1800049b0 to 0x1800049f4 (68 bytes)\n// \n// 12 xrefs:\n// > <???> @ 0x180023b38\n// > <???> @ 0x180024138\n// > <???> @ 0x1800246a8\n// > <???> @ 0x180024db0\n// > <???> @ 0x180025360\n// > <???> @ 0x180025948\n// > <???> @ 0x180025ef8\n// > <???> @ 0x1800264c8\n// > <???> @ 0x180026af0\n// > <???> @ 0x180027f80\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049480\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Alternative name is '?getTouchLocation@CCControl@extension@cocos2d@@UEAA?AVCCPoint@3@PEAVCCTouch@3@@Z'\n__int64 __fastcall cocos2d::extension::CCControlSwitch::locationFromTouch(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v5; // rax\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n\n  cocos2d::CCTouch::getLocation(a3);\n  v5 = cocos2d::CCNode::convertToNodeSpace(a1, &v7, a2);\n  cocos2d::CCPoint::operator=(a2, v5);\n  return a2;\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::locationFromTouch from 0x1800049b0 to 0x1800049f4 (68 bytes)\n; \n; 12 xrefs:\n; > <???> @ 0x180023b38\n; > <???> @ 0x180024138\n; > <???> @ 0x1800246a8\n; > <???> @ 0x180024db0\n; > <???> @ 0x180025360\n; > <???> @ 0x180025948\n; > <???> @ 0x180025ef8\n; > <???> @ 0x1800264c8\n; > <???> @ 0x180026af0\n; > <???> @ 0x180027f80\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049480\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800049b0\npush    rdi                                                            ; +0x5, 0x1800049b5\nsub     rsp, 20h                                                       ; +0x6, 0x1800049b6\nmov     rbx, rcx                                                       ; +0xa, 0x1800049ba\nmov     rdi, rdx                                                       ; +0xd, 0x1800049bd\nmov     rcx, r8                                                        ; +0x10, 0x1800049c0\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x13, 0x1800049c3\nmov     r8, rdi                                                        ; +0x19, 0x1800049c9\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x1c, 0x1800049cc\nmov     rcx, rbx                                                       ; +0x21, 0x1800049d1\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x24, 0x1800049d4\nmov     rdx, rax                                                       ; +0x2a, 0x1800049da\nmov     rcx, rdi                                                       ; +0x2d, 0x1800049dd\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x30, 0x1800049e0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x36, 0x1800049e6\nmov     rax, rdi                                                       ; +0x3b, 0x1800049eb\nadd     rsp, 20h                                                       ; +0x3e, 0x1800049ee\npop     rdi                                                            ; +0x42, 0x1800049f2\nretn                                                                   ; +0x43, 0x1800049f3", "xrefs": ["<???> @ 0x180023b38", "<???> @ 0x180024138", "<???> @ 0x1800246a8", "<???> @ 0x180024db0", "<???> @ 0x180025360", "<???> @ 0x180025948", "<???> @ 0x180025ef8", "<???> @ 0x1800264c8", "<???> @ 0x180026af0", "<???> @ 0x180027f80", "<???> @ 0x18002fdf8", "<???> @ 0x180049480"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}