{"type": "func", "start": 7917892, "end": 7918006, "name": "EditorWindowPopup::ccTouchBegan", "pseudocode": "// \n// EditorWindowPopup::ccTouchBegan from 0x78d144 to 0x78d1b6 (114 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::ccTouchBegan @ 0x778800\n// > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0x78d1c0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:37 +0000\n// \n\nint __fastcall EditorWindowPopup::ccTouchBegan(EditorWindowPopup *a1, cocos2d::CCTouch *a2, int a3)\n{\n  int result; // r0\n  _BYTE v7[8]; // [sp+4h] [bp-20h] BYREF\n  _BYTE v8[16]; // [sp+Ch] [bp-18h] BYREF\n\n  if ( !(*(int (__fastcall **)(EditorWindowPopup *))(*(_DWORD *)a1 + 176))(a1) )\n    return 0;\n  EditorWindowPopup::syncWindowCenter(a1);\n  if ( *((_DWORD *)a1 + 188) == -1 )\n  {\n    result = EditorWindowPopup::beginTouch((int)a1, a2, a3);\n    if ( !result )\n      return 0;\n    *((_DWORD *)a1 + 188) = *((_DWORD *)a2 + 13);\n  }\n  else\n  {\n    EditorWindowPopup::touchRect((EditorWindowPopup *)v8, (float *)a1);\n    cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v7);\n    return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v8, (const cocos2d::CCPoint *)v7);\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::ccTouchBegan from 0x78d144 to 0x78d1b6 (114 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::ccTouchBegan @ 0x778800\n; > `non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0x78d1c0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:37 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x78d144\nSUB             SP, SP, #0x24                                          ; +0x2, 0x78d146\nLDR             R5, =(__stack_chk_guard_ptr - 0x78D154)                ; +0x4, 0x78d148\nMOV             R4, R0                                                 ; +0x6, 0x78d14a\nMOV             R6, R1                                                 ; +0x8, 0x78d14c\nMOV             R7, R2                                                 ; +0xa, 0x78d14e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x78d150\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x78d152\nLDR             R3, [R5]                                               ; +0x10, 0x78d154\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x12, 0x78d156\nLDR             R3, [R0]                                               ; +0x14, 0x78d158\nLDR.W           R3, [R3,#0xB0]                                         ; +0x16, 0x78d15a\nBLX             R3                                                     ; +0x1a, 0x78d15e\nCBNZ            R0, loc_78D166                                         ; +0x1c, 0x78d160\nMOVS            R0, #0                                                 ; +0x1e, 0x78d162\nB               loc_78D1A6                                             ; +0x20, 0x78d164\nMOV             R0, R4; this                                           ; +0x22, 0x78d166\nBL              _ZN17EditorWindowPopup16syncWindowCenterEv; EditorWindowPopup::syncWindowCenter(void) ; +0x24, 0x78d168\nLDR.W           R3, [R4,#0x2F0]                                        ; +0x28, 0x78d16c\nADDS            R3, #1                                                 ; +0x2c, 0x78d170\nBEQ             loc_78D192                                             ; +0x2e, 0x78d172\nADD             R7, SP, #0x24+var_18                                   ; +0x30, 0x78d174\nMOV             R1, R4                                                 ; +0x32, 0x78d176\nADD             R4, SP, #0x24+var_20                                   ; +0x34, 0x78d178\nMOV             R0, R7; this                                           ; +0x36, 0x78d17a\nBL              _ZNK17EditorWindowPopup9touchRectEv; EditorWindowPopup::touchRect(void) ; +0x38, 0x78d17c\nMOV             R0, R4; this                                           ; +0x3c, 0x78d180\nMOV             R1, R6                                                 ; +0x3e, 0x78d182\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x40, 0x78d184\nMOV             R0, R7; this                                           ; +0x44, 0x78d188\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x46, 0x78d18a\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x48, 0x78d18c\nB               loc_78D1A6                                             ; +0x4c, 0x78d190\nMOV             R0, R4                                                 ; +0x4e, 0x78d192\nMOV             R1, R6                                                 ; +0x50, 0x78d194\nMOV             R2, R7                                                 ; +0x52, 0x78d196\nBL              _ZN17EditorWindowPopup10beginTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorWindowPopup::beginTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x54, 0x78d198\nCMP             R0, #0                                                 ; +0x58, 0x78d19c\nBEQ             loc_78D162                                             ; +0x5a, 0x78d19e\nLDR             R3, [R6,#0x34]                                         ; +0x5c, 0x78d1a0\nSTR.W           R3, [R4,#0x2F0]                                        ; +0x5e, 0x78d1a2\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x62, 0x78d1a6\nLDR             R3, [R5]                                               ; +0x64, 0x78d1a8\nCMP             R2, R3                                                 ; +0x66, 0x78d1aa\nBEQ             loc_78D1B2                                             ; +0x68, 0x78d1ac\nBLX             __stack_chk_fail                                       ; +0x6a, 0x78d1ae\nADD             SP, SP, #0x24 ; '$'                                    ; +0x6e, 0x78d1b2\nPOP             {R4-R7,PC}                                             ; +0x70, 0x78d1b4", "xrefs": ["EmotePickerPopup::ccTouchBegan @ 0x778800", "`non-virtual thunk to'EditorWindowPopup::ccTouchBegan @ 0x78d1c0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}