{"type": "func", "start": 6442463392, "end": 6442463516, "name": "cocos2d::CCNode::convertTouchToNodeSpaceAR", "pseudocode": "// \n// cocos2d::CCNode::convertTouchToNodeSpaceAR from 0x1800030a0 to 0x18000311c (124 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad270\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\nstruct cocos2d::CCTouch *__fastcall cocos2d::CCNode::convertTouchToNodeSpaceAR(\n        cocos2d::CCNode *this,\n        struct cocos2d::CCTouch *a2,\n        cocos2d::CCTouch *a3)\n{\n  const struct cocos2d::CCAffineTransform *v5; // rax\n  struct cocos2d::CCPoint v7; // [rsp+20h] [rbp-38h] BYREF\n  _BYTE v8[8]; // [rsp+28h] [rbp-30h] BYREF\n  _BYTE v9[24]; // [rsp+30h] [rbp-28h] BYREF\n\n  cocos2d::CCTouch::getLocation(a3);\n  v5 = (const struct cocos2d::CCAffineTransform *)((__int64 (__fastcall *)(cocos2d::CCNode *, _BYTE *))this->worldToNodeTransform)(\n                                                    this,\n                                                    v9);\n  cocos2d::__CCPointApplyAffineTransform((cocos2d *)v8, &v7, v5);\n  cocos2d::CCSize::operator-(v8, a2, &this->m_obAnchorPointInPoints);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCNode::convertTouchToNodeSpaceAR from 0x1800030a0 to 0x18000311c (124 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad270\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_18], rbx                                              ; +0x0, 0x1800030a0\npush    rdi                                                            ; +0x5, 0x1800030a5\nsub     rsp, 50h                                                       ; +0x6, 0x1800030a6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800030aa\nxor     rax, rsp                                                       ; +0x11, 0x1800030b1\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x1800030b4\nmov     rdi, rdx                                                       ; +0x19, 0x1800030b9\nmov     rbx, rcx                                                       ; +0x1c, 0x1800030bc\nlea     rdx, [rsp+58h+var_38]                                          ; +0x1f, 0x1800030bf\nmov     rcx, r8                                                        ; +0x24, 0x1800030c4\ncall    ?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x27, 0x1800030c7\nmov     r8, [rbx]                                                      ; +0x2c, 0x1800030cc\nlea     rdx, [rsp+58h+var_28]                                          ; +0x2f, 0x1800030cf\nmov     rcx, rbx                                                       ; +0x34, 0x1800030d4\ncall    qword ptr [r8+330h]                                            ; +0x37, 0x1800030d7\nmov     r8, rax                                                        ; +0x3e, 0x1800030de\nlea     rdx, [rsp+58h+var_38]                                          ; +0x41, 0x1800030e1\nlea     rcx, [rsp+58h+var_30]                                          ; +0x46, 0x1800030e6\ncall    ?__CCPointApplyAffineTransform@cocos2d@@YA?AVCCPoint@1@AEBV21@AEBUCCAffineTransform@1@@Z; cocos2d::__CCPointApplyAffineTransform(cocos2d::CCPoint const &,cocos2d::CCAffineTransform const &) ; +0x4b, 0x1800030eb\nlea     r8, [rbx+5Ch]                                                  ; +0x50, 0x1800030f0\nmov     rdx, rdi                                                       ; +0x54, 0x1800030f4\nlea     rcx, [rsp+58h+var_30]                                          ; +0x57, 0x1800030f7\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x5c, 0x1800030fc\nmov     rax, rdi                                                       ; +0x61, 0x180003101\nmov     rcx, [rsp+58h+var_10]                                          ; +0x64, 0x180003104\nxor     rcx, rsp; StackCookie                                          ; +0x69, 0x180003109\ncall    __security_check_cookie                                        ; +0x6c, 0x18000310c\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x71, 0x180003111\nadd     rsp, 50h                                                       ; +0x76, 0x180003116\npop     rdi                                                            ; +0x7a, 0x18000311a\nretn                                                                   ; +0x7b, 0x18000311b", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ad270"], "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"}