{"type": "func", "start": 4299130444, "end": 4299130548, "name": "EditorUI::getTouchPoint", "pseudocode": "// \n// EditorUI::getTouchPoint from 0x1003f864c to 0x1003f86b4 (104 bytes)\n// \n// 8 xrefs:\n// > EditorUI::ccTouchBegan @ 0x1003f87b8\n// > EditorUI::ccTouchMoved @ 0x1003f8cb8\n// > EditorUI::ccTouchMoved @ 0x1003f8dc4\n// > EditorUI::ccTouchMoved @ 0x1003f8f84\n// > EditorUI::ccTouchEnded @ 0x1003f91b0\n// > EditorUI::ccTouchEnded @ 0x1003f9224\n// > EditorUI::ccTouchEnded @ 0x1003f9474\n// > EditorUI::ccTouchEnded @ 0x1003f94f8\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\ncocos2d::CCPoint __fastcall EditorUI::getTouchPoint(EditorUI *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCPoint *v3; // x8\n  cocos2d::CCPoint *v5; // x20\n  cocos2d::CCDirector *v6; // x0\n  double v7; // d0\n  double v9; // [xsp+8h] [xbp-18h] BYREF\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v5 = v3;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(v6, v5);\n  sub_1000229D0(v5, &v9);\n  cocos2d::CCNode::convertToWorldSpace(a1, v5);\n  v7 = sub_1000229D0(v5, &v9);\n  result.x = *(float *)&v7;\n  return result;\n}", "assembly": "; \n; EditorUI::getTouchPoint from 0x1003f864c to 0x1003f86b4 (104 bytes)\n; \n; 8 xrefs:\n; > EditorUI::ccTouchBegan @ 0x1003f87b8\n; > EditorUI::ccTouchMoved @ 0x1003f8cb8\n; > EditorUI::ccTouchMoved @ 0x1003f8dc4\n; > EditorUI::ccTouchMoved @ 0x1003f8f84\n; > EditorUI::ccTouchEnded @ 0x1003f91b0\n; > EditorUI::ccTouchEnded @ 0x1003f9224\n; > EditorUI::ccTouchEnded @ 0x1003f9474\n; > EditorUI::ccTouchEnded @ 0x1003f94f8\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003f864c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003f8650\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003f8654\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003f8658\nMOV             X19, X0                                                ; +0x10, 0x1003f865c\nMOV             X20, X8                                                ; +0x14, 0x1003f8660\nMOV             X0, X1                                                 ; +0x18, 0x1003f8664\nBL              cocos2d__CCTouch__getLocationInView                    ; +0x1c, 0x1003f8668\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x1003f866c\nADD             X8, SP, #0x20+var_18                                   ; +0x24, 0x1003f8670\nMOV             X1, X20                                                ; +0x28, 0x1003f8674\nBL              cocos2d__CCDirector__convertToGL                       ; +0x2c, 0x1003f8678\nADD             X1, SP, #0x20+var_18                                   ; +0x30, 0x1003f867c\nMOV             X0, X20                                                ; +0x34, 0x1003f8680\nBL              sub_1000229D0                                          ; +0x38, 0x1003f8684\nADD             X8, SP, #0x20+var_18                                   ; +0x3c, 0x1003f8688\nMOV             X0, X19                                                ; +0x40, 0x1003f868c\nMOV             X1, X20                                                ; +0x44, 0x1003f8690\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x48, 0x1003f8694\nADD             X1, SP, #0x20+var_18                                   ; +0x4c, 0x1003f8698\nMOV             X0, X20                                                ; +0x50, 0x1003f869c\nBL              sub_1000229D0                                          ; +0x54, 0x1003f86a0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x1003f86a4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x1003f86a8\nADD             SP, SP, #0x30 ; '0'                                    ; +0x60, 0x1003f86ac\nRET                                                                    ; +0x64, 0x1003f86b0", "xrefs": ["EditorUI::ccTouchBegan @ 0x1003f87b8", "EditorUI::ccTouchMoved @ 0x1003f8cb8", "EditorUI::ccTouchMoved @ 0x1003f8dc4", "EditorUI::ccTouchMoved @ 0x1003f8f84", "EditorUI::ccTouchEnded @ 0x1003f91b0", "EditorUI::ccTouchEnded @ 0x1003f9224", "EditorUI::ccTouchEnded @ 0x1003f9474", "EditorUI::ccTouchEnded @ 0x1003f94f8"], "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"}