{"type": "func", "start": 4300256544, "end": 4300256672, "name": "NewThreadPopup::keyDown", "pseudocode": "// \n// NewThreadPopup::keyDown from 0x10050b520 to 0x10050b5a0 (128 bytes)\n// \n// 2 xrefs:\n// > sub_10050B5A0 @ 0x10050b5a4\n// > <???> @ 0x100998928\n// \n// This function is hookable on this platform (idp: arm, 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:06:59 +0000\n// \n\nvoid __fastcall NewThreadPopup::keyDown(__int64 a1, int a2)\n{\n  __int64 v4; // x8\n  __int64 v5; // x0\n\n  if ( a2 == 13\n    && (v4 = *(_QWORD *)(a1 + 888)) != 0\n    && *(_BYTE *)(v4 + 460) == 1\n    && (v5 = cocos2d::CCDirector::sharedDirector(),\n        (*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 128) & 1) == 0) )\n  {\n    sub_10050A580(a1);\n  }\n  else\n  {\n    FLAlertLayer::keyDown(a1, a2);\n  }\n}", "assembly": "; \n; NewThreadPopup::keyDown from 0x10050b520 to 0x10050b5a0 (128 bytes)\n; \n; 2 xrefs:\n; > sub_10050B5A0 @ 0x10050b5a4\n; > <???> @ 0x100998928\n; \n; This function is hookable on this platform (idp: arm, 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:06:59 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10050b520\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10050b524\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10050b528\nADD             X29, SP, #0x20                                         ; +0xc, 0x10050b52c\nFMOV            D8, D0                                                 ; +0x10, 0x10050b530\nMOV             X19, X1                                                ; +0x14, 0x10050b534\nMOV             X20, X0                                                ; +0x18, 0x10050b538\nCMP             W1, #0xD                                               ; +0x1c, 0x10050b53c\nB.NE            loc_10050B570                                          ; +0x20, 0x10050b540\nLDR             X8, [X20,#0x378]                                       ; +0x24, 0x10050b544\nCBZ             X8, loc_10050B570                                      ; +0x28, 0x10050b548\nLDRB            W8, [X8,#0x1CC]                                        ; +0x2c, 0x10050b54c\nCMP             W8, #1                                                 ; +0x30, 0x10050b550\nB.NE            loc_10050B570                                          ; +0x34, 0x10050b554\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x38, 0x10050b558\nLDR             X8, [X0]                                               ; +0x3c, 0x10050b55c\nLDR             X8, [X8,#0xC0]                                         ; +0x40, 0x10050b560\nBLR             X8                                                     ; +0x44, 0x10050b564\nLDRB            W8, [X0,#0x80]                                         ; +0x48, 0x10050b568\nTBZ             W8, #0, loc_10050B58C                                  ; +0x4c, 0x10050b56c\nMOV             X0, X20                                                ; +0x50, 0x10050b570\nMOV             X1, X19                                                ; +0x54, 0x10050b574\nFMOV            D0, D8                                                 ; +0x58, 0x10050b578\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x10050b57c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x10050b580\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x64, 0x10050b584\nB               FLAlertLayer__keyDown                                  ; +0x68, 0x10050b588\nMOV             X0, X20                                                ; +0x6c, 0x10050b58c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10050b590\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x10050b594\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x78, 0x10050b598\nB               sub_10050A580                                          ; +0x7c, 0x10050b59c", "xrefs": ["sub_10050B5A0 @ 0x10050b5a4", "<???> @ 0x100998928"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}