{"type": "func", "start": 13475828, "end": 13476056, "name": "EditorWindowPopup::ccTouchBegan", "pseudocode": "// \n// EditorWindowPopup::ccTouchBegan from 0xcd9ff4 to 0xcda0d8 (228 bytes)\n// \n// 8 xrefs:\n// > EmotePickerPopup::ccTouchBegan @ 0xcb8cec\n// > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0xcda0dc\n// > <???> @ 0xa13e0\n// > <???> @ 0x14eb360\n// > <???> @ 0x14fb1a0\n// > <???> @ 0x14fba00\n// > <???> @ 0x15016b0\n// > <???> @ 0x15022b0\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:32 +0000\n// \n\n__int64 __fastcall EditorWindowPopup::ccTouchBegan(EditorWindowPopup *a1, cocos2d::CCTouch *a2, __int64 a3)\n{\n  __int64 result; // x0\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n  _BYTE v8[16]; // [xsp+48h] [xbp+48h] BYREF\n\n  if ( !(*(unsigned __int8 (__fastcall **)(EditorWindowPopup *))(*(_QWORD *)a1 + 352LL))(a1) )\n    return 0;\n  EditorWindowPopup::syncWindowCenter(a1);\n  if ( *((_DWORD *)a1 + 269) != -1 )\n  {\n    EditorWindowPopup::touchRect(a1, (cocos2d::CCRect *)v8);\n    cocos2d::CCTouch::getLocation(&v7, a2);\n    return (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v8, (const cocos2d::CCPoint *)&v7);\n  }\n  result = (unsigned __int8)EditorWindowPopup::beginTouch((__int64)a1, a2, a3);\n  if ( !(_BYTE)result )\n    return 0;\n  *((_DWORD *)a1 + 269) = *((_DWORD *)a2 + 14);\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchBegan from 0xcd9ff4 to 0xcda0d8 (228 bytes)\n; \n; 8 xrefs:\n; > EmotePickerPopup::ccTouchBegan @ 0xcb8cec\n; > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0xcda0dc\n; > <???> @ 0xa13e0\n; > <???> @ 0x14eb360\n; > <???> @ 0x14fb1a0\n; > <???> @ 0x14fba00\n; > <???> @ 0x15016b0\n; > <???> @ 0x15022b0\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:32 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xcd9ff4\nMOV             X29, SP                                                ; +0x4, 0xcd9ff8\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xcd9ffc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcda000\nMOV             X20, X0                                                ; +0x10, 0xcda004\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0xcda008\nMOV             X21, X1                                                ; +0x18, 0xcda00c\nSTR             X2, [X29,#0x60+var_28]                                 ; +0x1c, 0xcda010\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xcda014\nLDR             X1, [X0]                                               ; +0x24, 0xcda018\nLDR             X3, [X3]                                               ; +0x28, 0xcda01c\nLDR             X1, [X1,#0x160]                                        ; +0x2c, 0xcda020\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x30, 0xcda024\nBLR             X1                                                     ; +0x34, 0xcda028\nUXTB            W0, W0                                                 ; +0x38, 0xcda02c\nLDR             X2, [X29,#0x60+var_28]                                 ; +0x3c, 0xcda030\nCBNZ            W0, loc_CDA060                                         ; +0x40, 0xcda034\nMOV             W0, #0                                                 ; +0x44, 0xcda038\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x48, 0xcda03c\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x4c, 0xcda040\nLDR             X1, [X19]                                              ; +0x50, 0xcda044\nCMP             X2, X1                                                 ; +0x54, 0xcda048\nB.NE            loc_CDA0D4                                             ; +0x58, 0xcda04c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x5c, 0xcda050\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x60, 0xcda054\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x64, 0xcda058\nRET                                                                    ; +0x68, 0xcda05c\nMOV             X0, X20; this                                          ; +0x6c, 0xcda060\nSTR             X2, [X29,#0x60+var_28]                                 ; +0x70, 0xcda064\nBL              _ZN17EditorWindowPopup16syncWindowCenterEv; EditorWindowPopup::syncWindowCenter(void) ; +0x74, 0xcda068\nLDR             W0, [X20,#0x434]                                       ; +0x78, 0xcda06c\nLDR             X2, [X29,#0x60+var_28]                                 ; +0x7c, 0xcda070\nCMN             W0, #1                                                 ; +0x80, 0xcda074\nB.EQ            loc_CDA0B4                                             ; +0x84, 0xcda078\nADD             X22, X29, #0x60+var_18                                 ; +0x88, 0xcda07c\nMOV             X0, X20; this                                          ; +0x8c, 0xcda080\nMOV             X8, X22                                                ; +0x90, 0xcda084\nADD             X20, X29, #0x60+var_20                                 ; +0x94, 0xcda088\nBL              _ZNK17EditorWindowPopup9touchRectEv; EditorWindowPopup::touchRect(void) ; +0x98, 0xcda08c\nSTR             X20, [X29,#0x60+var_28]                                ; +0x9c, 0xcda090\nMOV             X8, X20                                                ; +0xa0, 0xcda094\nMOV             X0, X21; this                                          ; +0xa4, 0xcda098\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0xa8, 0xcda09c\nLDR             X1, [X29,#0x60+var_28]; cocos2d::CCPoint *             ; +0xac, 0xcda0a0\nMOV             X0, X22; this                                          ; +0xb0, 0xcda0a4\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0xb4, 0xcda0a8\nUXTB            W0, W0                                                 ; +0xb8, 0xcda0ac\nB               loc_CDA03C                                             ; +0xbc, 0xcda0b0\nMOV             X0, X20; int                                           ; +0xc0, 0xcda0b4\nMOV             X1, X21; this                                          ; +0xc4, 0xcda0b8\nBL              _ZN17EditorWindowPopup10beginTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorWindowPopup::beginTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0xc8, 0xcda0bc\nUXTB            W0, W0                                                 ; +0xcc, 0xcda0c0\nCBZ             W0, loc_CDA038                                         ; +0xd0, 0xcda0c4\nLDR             W1, [X21,#0x38]                                        ; +0xd4, 0xcda0c8\nSTR             W1, [X20,#0x434]                                       ; +0xd8, 0xcda0cc\nB               loc_CDA03C                                             ; +0xdc, 0xcda0d0\nBL              .__stack_chk_fail                                      ; +0xe0, 0xcda0d4", "xrefs": ["EmotePickerPopup::ccTouchBegan @ 0xcb8cec", "`non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0xcda0dc", "<???> @ 0xa13e0", "<???> @ 0x14eb360", "<???> @ 0x14fb1a0", "<???> @ 0x14fba00", "<???> @ 0x15016b0", "<???> @ 0x15022b0"], "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"}