{"type": "func", "start": 5369693456, "end": 5369693587, "name": "NewThreadPopup::keyDown", "pseudocode": "// \n// NewThreadPopup::keyDown from 0x1400f0510 to 0x1400f0593 (131 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072a0c0\n// > <???> @ 0x140915074\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:36 +0000\n// \n\nvoid __fastcall NewThreadPopup::keyDown(__int64 a1, int a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n\n  if ( a2 == 13\n    && (v4 = *(_QWORD *)(a1 + 560)) != 0\n    && *(_BYTE *)(v4 + 468)\n    && (v5 = cocos2d::CCDirector::sharedDirector(a1),\n        !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 152)) )\n  {\n    NewThreadPopup::onSend(a1 - 344, 0);\n  }\n  else\n  {\n    FLAlertLayer::keyDown(a1, a2);\n  }\n}", "assembly": "; \n; NewThreadPopup::keyDown from 0x1400f0510 to 0x1400f0593 (131 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072a0c0\n; > <???> @ 0x140915074\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:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400f0510\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400f0515\npush    rdi                                                            ; +0xa, 0x1400f051a\nsub     rsp, 30h                                                       ; +0xb, 0x1400f051b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x1400f051f\nmovaps  xmm6, xmm2                                                     ; +0x14, 0x1400f0524\nmov     edi, edx                                                       ; +0x17, 0x1400f0527\nmov     rsi, rcx                                                       ; +0x19, 0x1400f0529\ncmp     edx, 0Dh                                                       ; +0x1c, 0x1400f052c\njnz     short loc_1400F0571                                            ; +0x1f, 0x1400f052f\nmov     rax, [rcx+230h]                                                ; +0x21, 0x1400f0531\ntest    rax, rax                                                       ; +0x28, 0x1400f0538\njz      short loc_1400F0571                                            ; +0x2b, 0x1400f053b\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x2d, 0x1400f053d\njz      short loc_1400F0571                                            ; +0x34, 0x1400f0544\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x36, 0x1400f0546\nmov     rcx, rax                                                       ; +0x3c, 0x1400f054c\nmov     rdx, [rax]                                                     ; +0x3f, 0x1400f054f\ncall    qword ptr [rdx+0B0h]                                           ; +0x42, 0x1400f0552\ncmp     byte ptr [rax+98h], 0                                          ; +0x48, 0x1400f0558\njnz     short loc_1400F0571                                            ; +0x4f, 0x1400f055f\nxor     edx, edx                                                       ; +0x51, 0x1400f0561\nlea     rcx, [rsi-158h]                                                ; +0x53, 0x1400f0563\ncall    NewThreadPopup__onSend                                         ; +0x5a, 0x1400f056a\njmp     short loc_1400F057E                                            ; +0x5f, 0x1400f056f\nmovaps  xmm2, xmm6                                                     ; +0x61, 0x1400f0571\nmov     edx, edi                                                       ; +0x64, 0x1400f0574\nmov     rcx, rsi                                                       ; +0x66, 0x1400f0576\ncall    FLAlertLayer__keyDown                                          ; +0x69, 0x1400f0579\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6e, 0x1400f057e\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x73, 0x1400f0583\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x78, 0x1400f0588\nadd     rsp, 30h                                                       ; +0x7d, 0x1400f058d\npop     rdi                                                            ; +0x81, 0x1400f0591\nretn                                                                   ; +0x82, 0x1400f0592", "xrefs": ["<???> @ 0x14072a0c0", "<???> @ 0x140915074"], "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"}