{"type": "func", "start": 5368981056, "end": 5368981136, "name": "GJDropDownLayer::registerWithTouchDispatcher", "pseudocode": "// \n// GJDropDownLayer::registerWithTouchDispatcher from 0x140042640 to 0x140042690 (80 bytes)\n// \n// 43 xrefs:\n// > <???> @ 0x14052cf98\n// > <???> @ 0x140539918\n// > <???> @ 0x140539d50\n// > <???> @ 0x14053ab60\n// > <???> @ 0x14053b050\n// > <???> @ 0x14053b638\n// > <???> @ 0x14053c2e8\n// > <???> @ 0x14053cb58\n// > <???> @ 0x14053d5a0\n// > <???> @ 0x14053e288\n// > <???> @ 0x1405407c8\n// > <???> @ 0x14054fd00\n// > <???> @ 0x1405524f0\n// > <???> @ 0x1405553b8\n// > <???> @ 0x1405575a0\n// > <???> @ 0x1405580a8\n// > <???> @ 0x140558640\n// > <???> @ 0x14056c570\n// > <???> @ 0x14056e2c8\n// > <???> @ 0x14056e710\n// > <???> @ 0x140574250\n// > <???> @ 0x140576d70\n// > <???> @ 0x140579eb8\n// > <???> @ 0x14057e160\n// > <???> @ 0x14057f930\n// > <???> @ 0x140581810\n// > <???> @ 0x1405884a8\n// > <???> @ 0x1405ab790\n// > <???> @ 0x1405abf68\n// > <???> @ 0x1405ac428\n// > <???> @ 0x1405c4788\n// > <???> @ 0x1405c69a0\n// > <???> @ 0x1405cbb68\n// > <???> @ 0x1405cd1d8\n// > <???> @ 0x1405cd9a8\n// > <???> @ 0x140604f80\n// > <???> @ 0x14060a980\n// > <???> @ 0x14060af78\n// > <???> @ 0x14060d1c0\n// > <???> @ 0x1406205b8\n// > <???> @ 0x140621158\n// > <???> @ 0x1406217e0\n// > <???> @ 0x1406c43f8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Merged with: GJDropDownLayer::registerWithTouchDispatcher, AccountLoginLayer::registerWithTouchDispatcher, AccountRegisterLayer::registerWithTouchDispatcher, AudioAssetsBrowser::registerWithTouchDispatcher, CCBlockLayer::registerWithTouchDispatcher, ChallengesPage::registerWithTouchDispatcher, CharacterColorPage::registerWithTouchDispatcher, CommunityCreditsPage::registerWithTouchDispatcher, DailyLevelPage::registerWithTouchDispatcher, FollowRewardPage::registerWithTouchDispatcher, FRequestProfilePage::registerWithTouchDispatcher, FriendsProfilePage::registerWithTouchDispatcher, GJPathPage::registerWithTouchDispatcher, GJPathsLayer::registerWithTouchDispatcher, GJPromoPopup::registerWithTouchDispatcher, GJShopLayer::registerWithTouchDispatcher, GJWriteMessagePopup::registerWithTouchDispatcher, InfoLayer::registerWithTouchDispatcher, LevelLeaderboard::registerWithTouchDispatcher, MessagesProfilePage::registerWithTouchDispatcher, MusicBrowser::registerWithTouchDispatcher, OptionsScrollLayer::registerWithTouchDi\nvoid __fastcall GJDropDownLayer::registerWithTouchDispatcher(struct cocos2d::CCTouchDelegate *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCTouchDelegate *v3; // rdi\n  cocos2d::CCTouchDispatcher *v4; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = a1 + 40;\n  if ( !a1 )\n    v3 = nullptr;\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, v3, -500, 1);\n}", "assembly": "; \n; GJDropDownLayer::registerWithTouchDispatcher from 0x140042640 to 0x140042690 (80 bytes)\n; \n; 43 xrefs:\n; > <???> @ 0x14052cf98\n; > <???> @ 0x140539918\n; > <???> @ 0x140539d50\n; > <???> @ 0x14053ab60\n; > <???> @ 0x14053b050\n; > <???> @ 0x14053b638\n; > <???> @ 0x14053c2e8\n; > <???> @ 0x14053cb58\n; > <???> @ 0x14053d5a0\n; > <???> @ 0x14053e288\n; > <???> @ 0x1405407c8\n; > <???> @ 0x14054fd00\n; > <???> @ 0x1405524f0\n; > <???> @ 0x1405553b8\n; > <???> @ 0x1405575a0\n; > <???> @ 0x1405580a8\n; > <???> @ 0x140558640\n; > <???> @ 0x14056c570\n; > <???> @ 0x14056e2c8\n; > <???> @ 0x14056e710\n; > <???> @ 0x140574250\n; > <???> @ 0x140576d70\n; > <???> @ 0x140579eb8\n; > <???> @ 0x14057e160\n; > <???> @ 0x14057f930\n; > <???> @ 0x140581810\n; > <???> @ 0x1405884a8\n; > <???> @ 0x1405ab790\n; > <???> @ 0x1405abf68\n; > <???> @ 0x1405ac428\n; > <???> @ 0x1405c4788\n; > <???> @ 0x1405c69a0\n; > <???> @ 0x1405cbb68\n; > <???> @ 0x1405cd1d8\n; > <???> @ 0x1405cd9a8\n; > <???> @ 0x140604f80\n; > <???> @ 0x14060a980\n; > <???> @ 0x14060af78\n; > <???> @ 0x14060d1c0\n; > <???> @ 0x1406205b8\n; > <???> @ 0x140621158\n; > <???> @ 0x1406217e0\n; > <???> @ 0x1406c43f8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140042640\npush    rdi                                                            ; +0x5, 0x140042645\nsub     rsp, 20h                                                       ; +0x6, 0x140042646\nmov     rbx, rcx                                                       ; +0xa, 0x14004264a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14004264d\nxor     ecx, ecx                                                       ; +0x13, 0x140042653\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x140042655\ntest    rbx, rbx                                                       ; +0x1c, 0x14004265c\nmov     r8, [rax]                                                      ; +0x1f, 0x14004265f\ncmovz   rdi, rcx                                                       ; +0x22, 0x140042662\nmov     rcx, rax                                                       ; +0x26, 0x140042666\ncall    qword ptr [r8+90h]                                             ; +0x29, 0x140042669\nmov     r9b, 1                                                         ; +0x30, 0x140042670\nmov     r8d, 0FFFFFE0Ch                                                ; +0x33, 0x140042673\nmov     rcx, rax                                                       ; +0x39, 0x140042679\nmov     rdx, rdi                                                       ; +0x3c, 0x14004267c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x14004267f\nadd     rsp, 20h                                                       ; +0x44, 0x140042684\npop     rdi                                                            ; +0x48, 0x140042688\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x49, 0x140042689", "xrefs": ["<???> @ 0x14052cf98", "<???> @ 0x140539918", "<???> @ 0x140539d50", "<???> @ 0x14053ab60", "<???> @ 0x14053b050", "<???> @ 0x14053b638", "<???> @ 0x14053c2e8", "<???> @ 0x14053cb58", "<???> @ 0x14053d5a0", "<???> @ 0x14053e288", "<???> @ 0x1405407c8", "<???> @ 0x14054fd00", "<???> @ 0x1405524f0", "<???> @ 0x1405553b8", "<???> @ 0x1405575a0", "<???> @ 0x1405580a8", "<???> @ 0x140558640", "<???> @ 0x14056c570", "<???> @ 0x14056e2c8", "<???> @ 0x14056e710", "<???> @ 0x140574250", "<???> @ 0x140576d70", "<???> @ 0x140579eb8", "<???> @ 0x14057e160", "<???> @ 0x14057f930", "<???> @ 0x140581810", "<???> @ 0x1405884a8", "<???> @ 0x1405ab790", "<???> @ 0x1405abf68", "<???> @ 0x1405ac428", "<???> @ 0x1405c4788", "<???> @ 0x1405c69a0", "<???> @ 0x1405cbb68", "<???> @ 0x1405cd1d8", "<???> @ 0x1405cd9a8", "<???> @ 0x140604f80", "<???> @ 0x14060a980", "<???> @ 0x14060af78", "<???> @ 0x14060d1c0", "<???> @ 0x1406205b8", "<???> @ 0x140621158", "<???> @ 0x1406217e0", "<???> @ 0x1406c43f8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}