{"type": "func", "start": 7833580, "end": 7833706, "name": "EmotePickerPopup::ccTouchBegan", "pseudocode": "// \n// EmotePickerPopup::ccTouchBegan from 0x7787ec to 0x77886a (126 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0x778874\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:21 +0000\n// \n\nint __fastcall EmotePickerPopup::ccTouchBegan(_DWORD *a1)\n{\n  int v2; // r6\n  int v3; // r9\n  _BYTE v5[8]; // [sp+4h] [bp-18h] BYREF\n  _BYTE v6[8]; // [sp+Ch] [bp-10h] BYREF\n\n  v2 = EditorWindowPopup::ccTouchBegan();\n  if ( !v2 )\n  {\n    cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v5);\n    v3 = a1[210];\n    if ( !v3\n      || (cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, (const cocos2d::CCPoint *)v5),\n          !CCTextInputNode::containsTouchPoint(v3)) )\n    {\n      if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 214), (const cocos2d::CCPoint *)v5) )\n      {\n        v2 = 0;\n        (*(void (__fastcall **)(_DWORD *, _DWORD))(*a1 + 684))(a1, 0);\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; EmotePickerPopup::ccTouchBegan from 0x7787ec to 0x77886a (126 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0x778874\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:21 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x7787ec\nSUB             SP, SP, #0x1C                                          ; +0x4, 0x7787f0\nLDR             R4, =(__stack_chk_guard_ptr - 0x7787FC)                ; +0x6, 0x7787f2\nMOV             R5, R0                                                 ; +0x8, 0x7787f4\nMOV             R8, R1                                                 ; +0xa, 0x7787f6\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x7787f8\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x7787fa\nLDR             R3, [R4]                                               ; +0x10, 0x7787fc\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x12, 0x7787fe\nBL              _ZN17EditorWindowPopup12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; EditorWindowPopup::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x14, 0x778800\nMOV             R6, R0                                                 ; +0x18, 0x778804\nCBNZ            R0, loc_778846                                         ; +0x1a, 0x778806\nADD             R7, SP, #0x1C+var_18                                   ; +0x1c, 0x778808\nMOV             R1, R8                                                 ; +0x1e, 0x77880a\nMOV             R0, R7; this                                           ; +0x20, 0x77880c\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x22, 0x77880e\nLDR.W           R9, [R5,#0x348]                                        ; +0x26, 0x778812\nCMP.W           R9, #0                                                 ; +0x2a, 0x778816\nBEQ             loc_778838                                             ; +0x2e, 0x77881a\nADD.W           R8, SP, #0x1C+var_10                                   ; +0x30, 0x77881c\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x34, 0x778820\nMOV             R0, R8; this                                           ; +0x36, 0x778822\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x38, 0x778824\nMOV             R0, R9                                                 ; +0x3c, 0x778828\nMOV             R1, R8                                                 ; +0x3e, 0x77882a\nBL              _ZN15CCTextInputNode18containsTouchPointEN7cocos2d7CCPointE; CCTextInputNode::containsTouchPoint(cocos2d::CCPoint) ; +0x40, 0x77882c\nCBNZ            R0, loc_778846                                         ; +0x44, 0x778830\nB               loc_778838                                             ; +0x46, 0x778832\nBL              __cxa_end_cleanup                                      ; +0x48, 0x778834\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x4c, 0x778838\nADD.W           R0, R5, #0x358; this                                   ; +0x4e, 0x77883a\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x52, 0x77883e\nMOV             R7, R0                                                 ; +0x56, 0x778842\nCBZ             R0, loc_778854                                         ; +0x58, 0x778844\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x5a, 0x778846\nMOV             R0, R6                                                 ; +0x5c, 0x778848\nLDR             R3, [R4]                                               ; +0x5e, 0x77884a\nCMP             R2, R3                                                 ; +0x60, 0x77884c\nBEQ             loc_778864                                             ; +0x62, 0x77884e\nBLX             __stack_chk_fail                                       ; +0x64, 0x778850\nLDR             R3, [R5]                                               ; +0x68, 0x778854\nMOV             R0, R5                                                 ; +0x6a, 0x778856\nMOV             R1, R7                                                 ; +0x6c, 0x778858\nMOV             R6, R7                                                 ; +0x6e, 0x77885a\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x70, 0x77885c\nBLX             R3                                                     ; +0x74, 0x778860\nB               loc_778846                                             ; +0x76, 0x778862\nADD             SP, SP, #0x1C                                          ; +0x78, 0x778864\nPOP.W           {R4-R9,PC}                                             ; +0x7a, 0x778866", "xrefs": ["`non-virtual thunk to'EmotePickerPopup::ccTouchBegan @ 0x778874"], "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"}