{"type": "func", "start": 7828128, "end": 7828252, "name": "DropdownListPopup::ccTouchBegan", "pseudocode": "// \n// DropdownListPopup::ccTouchBegan from 0x7772a0 to 0x77731c (124 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'DropdownListPopup::ccTouchBegan @ 0x777324\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:20 +0000\n// \n\nint __fastcall DropdownListPopup::ccTouchBegan(int a1, cocos2d::CCTouch *a2, int a3)\n{\n  int v6; // r6\n  ScrollableContentLayer *v7; // r0\n  int v8; // r0\n  _BYTE v10[8]; // [sp+4h] [bp+0h] BYREF\n\n  cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v10);\n  v6 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 636), (const cocos2d::CCPoint *)v10);\n  if ( v6 )\n  {\n    v7 = *(ScrollableContentLayer **)(a1 + 548);\n    if ( v7 )\n      ScrollableContentLayer::handleTouchBegan(v7, a2);\n    v8 = *(_DWORD *)(a1 + 544);\n    if ( v8 || (v8 = *(_DWORD *)(a1 + 444)) != 0 )\n      LOBYTE(v8) = (*(int (__fastcall **)(int, cocos2d::CCTouch *, int))(*(_DWORD *)v8 + 448))(v8, a2, a3);\n    *(_BYTE *)(a1 + 552) = v8;\n  }\n  else\n  {\n    DropdownListPopup::closeSelf((DropdownListPopup *)a1);\n    return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 652), (const cocos2d::CCPoint *)v10);\n  }\n  return v6;\n}", "assembly": "; \n; DropdownListPopup::ccTouchBegan from 0x7772a0 to 0x77731c (124 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'DropdownListPopup::ccTouchBegan @ 0x777324\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:20 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x7772a0\nSUB             SP, SP, #0x14                                          ; +0x4, 0x7772a4\nLDR             R5, =(__stack_chk_guard_ptr - 0x7772B2)                ; +0x6, 0x7772a6\nADD             R7, SP, #4                                             ; +0x8, 0x7772a8\nMOV             R4, R0                                                 ; +0xa, 0x7772aa\nMOV             R8, R1                                                 ; +0xc, 0x7772ac\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x7772ae\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x7772b0\nMOV             R0, R7; this                                           ; +0x12, 0x7772b2\nMOV             R9, R2                                                 ; +0x14, 0x7772b4\nLDR             R3, [R5]                                               ; +0x16, 0x7772b6\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x18, 0x7772b8\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x1a, 0x7772ba\nADD.W           R0, R4, #0x27C; this                                   ; +0x1e, 0x7772be\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x22, 0x7772c2\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x24, 0x7772c4\nMOV             R6, R0                                                 ; +0x28, 0x7772c8\nCBNZ            R0, loc_7772E0                                         ; +0x2a, 0x7772ca\nMOV             R0, R4; this                                           ; +0x2c, 0x7772cc\nBL              _ZN17DropdownListPopup9closeSelfEv; DropdownListPopup::closeSelf(void) ; +0x2e, 0x7772ce\nADD.W           R0, R4, #0x28C; this                                   ; +0x32, 0x7772d2\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x36, 0x7772d6\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x38, 0x7772d8\nMOV             R6, R0                                                 ; +0x3c, 0x7772dc\nB               loc_777308                                             ; +0x3e, 0x7772de\nLDR.W           R0, [R4,#0x224]; this                                  ; +0x40, 0x7772e0\nCBZ             R0, loc_7772EC                                         ; +0x44, 0x7772e4\nMOV             R1, R8; cocos2d::CCTouch *                             ; +0x46, 0x7772e6\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x48, 0x7772e8\nLDR.W           R0, [R4,#0x220]                                        ; +0x4c, 0x7772ec\nCBNZ            R0, loc_7772F8                                         ; +0x50, 0x7772f0\nLDR.W           R0, [R4,#0x1BC]                                        ; +0x52, 0x7772f2\nCBZ             R0, loc_777304                                         ; +0x56, 0x7772f6\nLDR             R3, [R0]                                               ; +0x58, 0x7772f8\nMOV             R1, R8                                                 ; +0x5a, 0x7772fa\nMOV             R2, R9                                                 ; +0x5c, 0x7772fc\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x5e, 0x7772fe\nBLX             R3                                                     ; +0x62, 0x777302\nSTRB.W          R0, [R4,#0x228]                                        ; +0x64, 0x777304\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x68, 0x777308\nMOV             R0, R6                                                 ; +0x6a, 0x77730a\nLDR             R3, [R5]                                               ; +0x6c, 0x77730c\nCMP             R2, R3                                                 ; +0x6e, 0x77730e\nBEQ             loc_777316                                             ; +0x70, 0x777310\nBLX             __stack_chk_fail                                       ; +0x72, 0x777312\nADD             SP, SP, #0x14                                          ; +0x76, 0x777316\nPOP.W           {R4-R9,PC}                                             ; +0x78, 0x777318", "xrefs": ["`non-virtual thunk to'DropdownListPopup::ccTouchBegan @ 0x777324"], "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"}