{"type": "func", "start": 13339840, "end": 13340056, "name": "EmotePickerPopup::ccTouchBegan", "pseudocode": "// \n// EmotePickerPopup::ccTouchBegan from 0xcb8cc0 to 0xcb8d98 (216 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0xcb8d9c\n// > <???> @ 0x8d5b0\n// > <???> @ 0x14fa120\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:13 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::ccTouchBegan(_QWORD *a1, cocos2d::CCTouch *a2)\n{\n  unsigned __int8 v4; // w0\n  unsigned int v5; // w20\n  __int64 v7; // x24\n  __int64 v8; // [xsp+48h] [xbp+48h] BYREF\n  _BYTE v9[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  v4 = EditorWindowPopup::ccTouchBegan();\n  v5 = v4;\n  if ( !v4 )\n  {\n    cocos2d::CCTouch::getLocation(&v8, a2);\n    v7 = a1[146];\n    if ( !v7\n      || (cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (const cocos2d::CCPoint *)&v8),\n          !(unsigned __int8)CCTextInputNode::containsTouchPoint(v7, (const cocos2d::CCPoint *)v9)) )\n    {\n      if ( !(unsigned __int8)cocos2d::CCRect::containsPoint(\n                               (cocos2d::CCRect *)(a1 + 149),\n                               (const cocos2d::CCPoint *)&v8) )\n      {\n        v5 = 0;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0);\n      }\n    }\n  }\n  return v5;\n}", "assembly": "; \n; EmotePickerPopup::ccTouchBegan from 0xcb8cc0 to 0xcb8d98 (216 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0xcb8d9c\n; > <???> @ 0x8d5b0\n; > <???> @ 0x14fa120\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:13 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xcb8cc0\nMOV             X29, SP                                                ; +0x4, 0xcb8cc4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xcb8cc8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcb8ccc\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x10, 0xcb8cd0\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x14, 0xcb8cd4\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xcb8cd8\nMOV             X21, X0                                                ; +0x1c, 0xcb8cdc\nMOV             X22, X1                                                ; +0x20, 0xcb8ce0\nLDR             X3, [X3]                                               ; +0x24, 0xcb8ce4\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x28, 0xcb8ce8\nBL              _ZN17EditorWindowPopup12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorWindowPopup::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x2c, 0xcb8cec\nUXTB            W20, W0                                                ; +0x30, 0xcb8cf0\nCBZ             W20, loc_CB8D24                                        ; +0x34, 0xcb8cf4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x38, 0xcb8cf8\nMOV             W0, W20                                                ; +0x3c, 0xcb8cfc\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x40, 0xcb8d00\nLDR             X1, [X19]                                              ; +0x44, 0xcb8d04\nCMP             X2, X1                                                 ; +0x48, 0xcb8d08\nB.NE            loc_CB8D90                                             ; +0x4c, 0xcb8d0c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x50, 0xcb8d10\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x54, 0xcb8d14\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x58, 0xcb8d18\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x5c, 0xcb8d1c\nRET                                                                    ; +0x60, 0xcb8d20\nADD             X23, X29, #0x60+var_18                                 ; +0x64, 0xcb8d24\nMOV             X0, X22; this                                          ; +0x68, 0xcb8d28\nMOV             X8, X23                                                ; +0x6c, 0xcb8d2c\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x70, 0xcb8d30\nLDR             X24, [X21,#0x490]                                      ; +0x74, 0xcb8d34\nCBZ             X24, loc_CB8D60                                        ; +0x78, 0xcb8d38\nADD             X22, X29, #0x60+var_10                                 ; +0x7c, 0xcb8d3c\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x80, 0xcb8d40\nMOV             X0, X22; this                                          ; +0x84, 0xcb8d44\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x88, 0xcb8d48\nMOV             X0, X24                                                ; +0x8c, 0xcb8d4c\nMOV             X1, X22                                                ; +0x90, 0xcb8d50\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x94, 0xcb8d54\nUXTB            W0, W0                                                 ; +0x98, 0xcb8d58\nCBNZ            W0, loc_CB8CF8                                         ; +0x9c, 0xcb8d5c\nADD             X0, X21, #0x4A8; this                                  ; +0xa0, 0xcb8d60\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0xa4, 0xcb8d64\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0xa8, 0xcb8d68\nUXTB            W0, W0                                                 ; +0xac, 0xcb8d6c\nCBNZ            W0, loc_CB8CF8                                         ; +0xb0, 0xcb8d70\nLDR             X2, [X21]                                              ; +0xb4, 0xcb8d74\nMOV             X0, X21                                                ; +0xb8, 0xcb8d78\nMOV             X1, #0                                                 ; +0xbc, 0xcb8d7c\nMOV             W20, #0                                                ; +0xc0, 0xcb8d80\nLDR             X2, [X2,#0x558]                                        ; +0xc4, 0xcb8d84\nBLR             X2                                                     ; +0xc8, 0xcb8d88\nB               loc_CB8CF8                                             ; +0xcc, 0xcb8d8c\nBL              .__stack_chk_fail                                      ; +0xd0, 0xcb8d90\nBL              _Unwind_Resume                                         ; +0xd4, 0xcb8d94", "xrefs": ["`non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0xcb8d9c", "<???> @ 0x8d5b0", "<???> @ 0x14fa120"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}