{"type": "func", "start": 4298932160, "end": 4298932293, "name": "DialogLayer::onClose", "pseudocode": "// \n// DialogLayer::onClose from 0x1003c7fc0 to 0x1003c8045 (133 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall DialogLayer::onClose(DialogLayer *a1)\n{\n  DialogDelegate *m_delegate; // rdi\n  TextArea *m_textArea; // rax\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    ((void (__fastcall *)(DialogDelegate *, DialogLayer *))m_delegate->dialogClosed)(m_delegate, a1);\n  a1->m_delegate = nullptr;\n  m_textArea = a1->m_textArea;\n  if ( m_textArea )\n    m_textArea->m_delegate = nullptr;\n  ((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeyboardEnabled)(a1, 0);\n  if ( !a1->m_noRemove )\n    ((void (__fastcall *)(DialogLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; DialogLayer::onClose from 0x1003c7fc0 to 0x1003c8045 (133 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1003c7fc0\nmov     rbp, rsp                                                       ; +0x1, 0x1003c7fc1\npush    rbx                                                            ; +0x4, 0x1003c7fc4\npush    rax                                                            ; +0x5, 0x1003c7fc5\nmov     rbx, rdi                                                       ; +0x6, 0x1003c7fc6\nmov     rdi, [rdi+270h]                                                ; +0x9, 0x1003c7fc9\ntest    rdi, rdi                                                       ; +0x10, 0x1003c7fd0\njz      short loc_1003C7FDD                                            ; +0x13, 0x1003c7fd3\nmov     rax, [rdi]                                                     ; +0x15, 0x1003c7fd5\nmov     rsi, rbx                                                       ; +0x18, 0x1003c7fd8\ncall    qword ptr [rax]                                                ; +0x1b, 0x1003c7fdb\nmov     qword ptr [rbx+270h], 0                                        ; +0x1d, 0x1003c7fdd\nmov     rax, [rbx+240h]                                                ; +0x28, 0x1003c7fe8\ntest    rax, rax                                                       ; +0x2f, 0x1003c7fef\njz      short loc_1003C7FFF                                            ; +0x32, 0x1003c7ff2\nmov     qword ptr [rax+2B0h], 0                                        ; +0x34, 0x1003c7ff4\nmov     rax, [rbx]                                                     ; +0x3f, 0x1003c7fff\nmov     rdi, rbx                                                       ; +0x42, 0x1003c8002\nxor     esi, esi                                                       ; +0x45, 0x1003c8005\ncall    qword ptr [rax+420h]                                           ; +0x47, 0x1003c8007\nmov     rax, [rbx]                                                     ; +0x4d, 0x1003c800d\nmov     rdi, rbx                                                       ; +0x50, 0x1003c8010\nxor     esi, esi                                                       ; +0x53, 0x1003c8013\ncall    qword ptr [rax+430h]                                           ; +0x55, 0x1003c8015\ncmp     byte ptr [rbx+280h], 0                                         ; +0x5b, 0x1003c801b\njz      short loc_1003C802B                                            ; +0x62, 0x1003c8022\nadd     rsp, 8                                                         ; +0x64, 0x1003c8024\npop     rbx                                                            ; +0x68, 0x1003c8028\npop     rbp                                                            ; +0x69, 0x1003c8029\nretn                                                                   ; +0x6a, 0x1003c802a\nmov     rax, [rbx]                                                     ; +0x6b, 0x1003c802b\nmov     rax, [rax+200h]                                                ; +0x6e, 0x1003c802e\nmov     rdi, rbx                                                       ; +0x75, 0x1003c8035\nmov     esi, 1                                                         ; +0x78, 0x1003c8038\nadd     rsp, 8                                                         ; +0x7d, 0x1003c803d\npop     rbx                                                            ; +0x81, 0x1003c8041\npop     rbp                                                            ; +0x82, 0x1003c8042\njmp     rax                                                            ; +0x83, 0x1003c8043", "xrefs": [], "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"}