{"type": "func", "start": 5369897664, "end": 5369897917, "name": "DropdownListPopup::ccTouchBegan", "pseudocode": "// \n// DropdownListPopup::ccTouchBegan from 0x1401222c0 to 0x1401223bd (253 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140732710\n// > <???> @ 0x14091667c\n// > <???> @ 0x140916688\n// \n// This function is hookable on this platform (idp: pc, 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 11:26:57 +0000\n// \n\nbool __fastcall DropdownListPopup::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)\n{\n  _QWORD *v6; // rbx\n  void (__fastcall ***v7)(_QWORD, __int64); // rcx\n  __int64 v8; // rdx\n  __int64 v10; // rcx\n  __int64 v11; // rcx\n  bool v12; // al\n  char v13; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCTouch::getLocation(a2, &v13);\n  v6 = (_QWORD *)(a1 - 320);\n  if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 568), (const struct cocos2d::CCPoint *)&v13) )\n  {\n    v10 = v6[90];\n    if ( v10 )\n      ScrollableContentLayer::handleTouchBegan(v10, a2);\n    v11 = *(_QWORD *)(a1 + 392);\n    v12 = (v11 || (v11 = *(_QWORD *)(a1 + 232)) != 0)\n       && (*(unsigned __int8 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(v11 + 320) + 8LL))(\n            v11 + 320,\n            a2,\n            a3);\n    *(_BYTE *)(a1 + 408) = v12;\n    return 1;\n  }\n  else\n  {\n    v7 = (void (__fastcall ***)(_QWORD, __int64))v6[116];\n    if ( v7 )\n    {\n      v6[116] = 0;\n      (**v7)(v7, a1 - 320);\n    }\n    (*(void (__fastcall **)(__int64, _QWORD))(*v6 + 992LL))(a1 - 320, 0);\n    LOBYTE(v8) = 1;\n    (*(void (__fastcall **)(__int64, __int64))(*v6 + 520LL))(a1 - 320, v8);\n    return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 584), (const struct cocos2d::CCPoint *)&v13);\n  }\n}", "assembly": "; \n; DropdownListPopup::ccTouchBegan from 0x1401222c0 to 0x1401223bd (253 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140732710\n; > <???> @ 0x14091667c\n; > <???> @ 0x140916688\n; \n; This function is hookable on this platform (idp: pc, 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 11:26:57 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401222c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401222c5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1401222ca\npush    rdi                                                            ; +0xf, 0x1401222cf\nsub     rsp, 20h                                                       ; +0x10, 0x1401222d0\nmov     rsi, rdx                                                       ; +0x14, 0x1401222d4\nmov     rdi, rcx                                                       ; +0x17, 0x1401222d7\nmov     rcx, rsi                                                       ; +0x1a, 0x1401222da\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x1d, 0x1401222dd\nmov     rbp, r8                                                        ; +0x22, 0x1401222e2\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x25, 0x1401222e5\nlea     rcx, [rdi+238h]                                                ; +0x2b, 0x1401222eb\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x32, 0x1401222f2\nlea     rbx, [rdi-140h]                                                ; +0x37, 0x1401222f7\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x3e, 0x1401222fe\ntest    al, al                                                         ; +0x44, 0x140122304\njnz     short loc_140122357                                            ; +0x46, 0x140122306\nmov     rcx, [rbx+3A0h]                                                ; +0x48, 0x140122308\ntest    rcx, rcx                                                       ; +0x4f, 0x14012230f\njz      short loc_140122327                                            ; +0x52, 0x140122312\nmov     qword ptr [rbx+3A0h], 0                                        ; +0x54, 0x140122314\nmov     rdx, rbx                                                       ; +0x5f, 0x14012231f\nmov     rax, [rcx]                                                     ; +0x62, 0x140122322\ncall    qword ptr [rax]                                                ; +0x65, 0x140122325\nmov     rax, [rbx]                                                     ; +0x67, 0x140122327\nxor     edx, edx                                                       ; +0x6a, 0x14012232a\nmov     rcx, rbx                                                       ; +0x6c, 0x14012232c\ncall    qword ptr [rax+3E0h]                                           ; +0x6f, 0x14012232f\nmov     rax, [rbx]                                                     ; +0x75, 0x140122335\nmov     dl, 1                                                          ; +0x78, 0x140122338\nmov     rcx, rbx                                                       ; +0x7a, 0x14012233a\ncall    qword ptr [rax+208h]                                           ; +0x7d, 0x14012233d\nlea     rcx, [rdi+248h]                                                ; +0x83, 0x140122343\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x8a, 0x14012234a\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x8f, 0x14012234f\njmp     short loc_1401223A8                                            ; +0x95, 0x140122355\nmov     rcx, [rbx+2D0h]                                                ; +0x97, 0x140122357\ntest    rcx, rcx                                                       ; +0x9e, 0x14012235e\njz      short loc_14012236B                                            ; +0xa1, 0x140122361\nmov     rdx, rsi                                                       ; +0xa3, 0x140122363\ncall    ScrollableContentLayer__handleTouchBegan                       ; +0xa6, 0x140122366\nmov     rcx, [rdi+188h]                                                ; +0xab, 0x14012236b\ntest    rcx, rcx                                                       ; +0xb2, 0x140122372\njnz     short loc_140122383                                            ; +0xb5, 0x140122375\nmov     rcx, [rdi+0E8h]                                                ; +0xb7, 0x140122377\ntest    rcx, rcx                                                       ; +0xbe, 0x14012237e\njz      short loc_14012239E                                            ; +0xc1, 0x140122381\nadd     rcx, 140h                                                      ; +0xc3, 0x140122383\nmov     r8, rbp                                                        ; +0xca, 0x14012238a\nmov     rdx, rsi                                                       ; +0xcd, 0x14012238d\nmov     rax, [rcx]                                                     ; +0xd0, 0x140122390\ncall    qword ptr [rax+8]                                              ; +0xd3, 0x140122393\ntest    al, al                                                         ; +0xd6, 0x140122396\njz      short loc_14012239E                                            ; +0xd8, 0x140122398\nmov     al, 1                                                          ; +0xda, 0x14012239a\njmp     short loc_1401223A0                                            ; +0xdc, 0x14012239c\nxor     al, al                                                         ; +0xde, 0x14012239e\nmov     [rdi+198h], al                                                 ; +0xe0, 0x1401223a0\nmov     al, 1                                                          ; +0xe6, 0x1401223a6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe8, 0x1401223a8\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xed, 0x1401223ad\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xf2, 0x1401223b2\nadd     rsp, 20h                                                       ; +0xf7, 0x1401223b7\npop     rdi                                                            ; +0xfb, 0x1401223bb\nretn                                                                   ; +0xfc, 0x1401223bc", "xrefs": ["<???> @ 0x140732710", "<???> @ 0x14091667c", "<???> @ 0x140916688"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}