{"type": "func", "start": 3677900, "end": 3677984, "name": "EditorUI::getTouchPoint", "pseudocode": "// \n// EditorUI::getTouchPoint from 0x381ecc to 0x381f20 (84 bytes)\n// \n// 8 xrefs:\n// > EditorUI::ccTouchMoved @ 0x3a4bac\n// > EditorUI::ccTouchMoved @ 0x3a4d78\n// > EditorUI::ccTouchMoved @ 0x3a4dee\n// > EditorUI::ccTouchEnded @ 0x3a54c0\n// > EditorUI::ccTouchEnded @ 0x3a5562\n// > EditorUI::ccTouchEnded @ 0x3a578a\n// > EditorUI::ccTouchEnded @ 0x3a5814\n// > EditorUI::ccTouchBegan @ 0x3a6ac0\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 *EditorUI::getTouchPoint(\n        cocos2d::CCPoint *__return_ptr retstr,\n        EditorUI *a2,\n        cocos2d::CCTouch *a3,\n        cocos2d::CCEvent *a4)\n{\n  cocos2d::CCDirector *v6; // r0\n  int v7; // r2\n  bool v8; // r3\n  int v9; // r2\n  bool v10; // r3\n  cocos2d::CCPoint v12; // [sp+4h] [bp-10h] BYREF\n\n  cocos2d::CCTouch::getLocationInView(retstr, a3);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(&v12, v6, retstr);\n  cocos2d::CCPoint::operator=((PlayerObject *)retstr, COERCE_FLOAT(&v12), v7, v8);\n  cocos2d::CCNode::convertToWorldSpace(&v12, a2, retstr);\n  cocos2d::CCPoint::operator=((PlayerObject *)retstr, COERCE_FLOAT(&v12), v9, v10);\n  return retstr;\n}", "assembly": "; \n; EditorUI::getTouchPoint from 0x381ecc to 0x381f20 (84 bytes)\n; \n; 8 xrefs:\n; > EditorUI::ccTouchMoved @ 0x3a4bac\n; > EditorUI::ccTouchMoved @ 0x3a4d78\n; > EditorUI::ccTouchMoved @ 0x3a4dee\n; > EditorUI::ccTouchEnded @ 0x3a54c0\n; > EditorUI::ccTouchEnded @ 0x3a5562\n; > EditorUI::ccTouchEnded @ 0x3a578a\n; > EditorUI::ccTouchEnded @ 0x3a5814\n; > EditorUI::ccTouchBegan @ 0x3a6ac0\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x381ecc\nSUB             SP, SP, #0x14                                          ; +0x2, 0x381ece\nLDR             R5, =(__stack_chk_guard_ptr - 0x381EDC)                ; +0x4, 0x381ed0\nMOV             R7, R1                                                 ; +0x6, 0x381ed2\nMOV             R1, R2                                                 ; +0x8, 0x381ed4\nMOV             R4, R0                                                 ; +0xa, 0x381ed6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x381ed8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x381eda\nADD             R6, SP, #0x14+var_10                                   ; +0x10, 0x381edc\nLDR             R3, [R5]                                               ; +0x12, 0x381ede\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x381ee0\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x16, 0x381ee2\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a, 0x381ee6\nMOV             R2, R4                                                 ; +0x1e, 0x381eea\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x20, 0x381eec\nMOV             R0, R6; this                                           ; +0x22, 0x381eee\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x24, 0x381ef0\nMOV             R1, R6                                                 ; +0x28, 0x381ef4\nMOV             R0, R4                                                 ; +0x2a, 0x381ef6\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x2c, 0x381ef8\nMOV             R2, R4                                                 ; +0x30, 0x381efc\nMOV             R0, R6; this                                           ; +0x32, 0x381efe\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x34, 0x381f00\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x36, 0x381f02\nMOV             R0, R4                                                 ; +0x3a, 0x381f06\nMOV             R1, R6                                                 ; +0x3c, 0x381f08\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x3e, 0x381f0a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x42, 0x381f0e\nLDR             R3, [R5]                                               ; +0x44, 0x381f10\nMOV             R0, R4                                                 ; +0x46, 0x381f12\nCMP             R2, R3                                                 ; +0x48, 0x381f14\nBEQ             loc_381F1C                                             ; +0x4a, 0x381f16\nBLX             __stack_chk_fail                                       ; +0x4c, 0x381f18\nADD             SP, SP, #0x14                                          ; +0x50, 0x381f1c\nPOP             {R4-R7,PC}                                             ; +0x52, 0x381f1e", "xrefs": ["EditorUI::ccTouchMoved @ 0x3a4bac", "EditorUI::ccTouchMoved @ 0x3a4d78", "EditorUI::ccTouchMoved @ 0x3a4dee", "EditorUI::ccTouchEnded @ 0x3a54c0", "EditorUI::ccTouchEnded @ 0x3a5562", "EditorUI::ccTouchEnded @ 0x3a578a", "EditorUI::ccTouchEnded @ 0x3a5814", "EditorUI::ccTouchBegan @ 0x3a6ac0"], "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"}