{"type": "func", "start": 5369577488, "end": 5369577608, "name": "DialogLayer::onClose", "pseudocode": "// \n// DialogLayer::onClose from 0x1400d4010 to 0x1400d4088 (120 bytes)\n// \n// 3 xrefs:\n// > DialogLayer::handleDialogTap @ 0x1400d3f93\n// > DialogLayer::keyBackClicked @ 0x1400d4007\n// > <???> @ 0x1406c86b8\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 DialogLayer::onClose(DialogLayer *a1)\n{\n  DialogDelegate *m_delegate; // rcx\n  TextArea *m_textArea; // rax\n  _BOOL8 v4; // rdx\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->dialogClosed(m_delegate, a1);\n  m_textArea = a1->m_textArea;\n  a1->m_delegate = nullptr;\n  if ( m_textArea )\n    m_textArea->m_delegate = nullptr;\n  a1->setKeypadEnabled(a1, 0);\n  a1->setKeyboardEnabled(a1, 0);\n  if ( !a1->m_noRemove )\n  {\n    LOBYTE(v4) = 1;\n    a1->removeFromParentAndCleanup(a1, v4);\n  }\n}", "assembly": "; \n; DialogLayer::onClose from 0x1400d4010 to 0x1400d4088 (120 bytes)\n; \n; 3 xrefs:\n; > DialogLayer::handleDialogTap @ 0x1400d3f93\n; > DialogLayer::keyBackClicked @ 0x1400d4007\n; > <???> @ 0x1406c86b8\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    rbx                                                            ; +0x0, 0x1400d4010\nsub     rsp, 20h                                                       ; +0x2, 0x1400d4012\nmov     rbx, rcx                                                       ; +0x6, 0x1400d4016\nmov     rcx, [rcx+270h]                                                ; +0x9, 0x1400d4019\ntest    rcx, rcx                                                       ; +0x10, 0x1400d4020\njz      short loc_1400D402D                                            ; +0x13, 0x1400d4023\nmov     rax, [rcx]                                                     ; +0x15, 0x1400d4025\nmov     rdx, rbx                                                       ; +0x18, 0x1400d4028\ncall    qword ptr [rax]                                                ; +0x1b, 0x1400d402b\nmov     rax, [rbx+240h]                                                ; +0x1d, 0x1400d402d\nxor     ecx, ecx                                                       ; +0x24, 0x1400d4034\nmov     [rbx+270h], rcx                                                ; +0x26, 0x1400d4036\ntest    rax, rax                                                       ; +0x2d, 0x1400d403d\njz      short loc_1400D4049                                            ; +0x30, 0x1400d4040\nmov     [rax+2C0h], rcx                                                ; +0x32, 0x1400d4042\nmov     rax, [rbx]                                                     ; +0x39, 0x1400d4049\nxor     edx, edx                                                       ; +0x3c, 0x1400d404c\nmov     rcx, rbx                                                       ; +0x3e, 0x1400d404e\ncall    qword ptr [rax+3D0h]                                           ; +0x41, 0x1400d4051\nmov     rax, [rbx]                                                     ; +0x47, 0x1400d4057\nxor     edx, edx                                                       ; +0x4a, 0x1400d405a\nmov     rcx, rbx                                                       ; +0x4c, 0x1400d405c\ncall    qword ptr [rax+3E0h]                                           ; +0x4f, 0x1400d405f\ncmp     byte ptr [rbx+280h], 0                                         ; +0x55, 0x1400d4065\njnz     short loc_1400D4082                                            ; +0x5c, 0x1400d406c\nmov     rax, [rbx]                                                     ; +0x5e, 0x1400d406e\nmov     dl, 1                                                          ; +0x61, 0x1400d4071\nmov     rcx, rbx                                                       ; +0x63, 0x1400d4073\nadd     rsp, 20h                                                       ; +0x66, 0x1400d4076\npop     rbx                                                            ; +0x6a, 0x1400d407a\njmp     qword ptr [rax+1F8h]                                           ; +0x6b, 0x1400d407b\nadd     rsp, 20h                                                       ; +0x72, 0x1400d4082\npop     rbx                                                            ; +0x76, 0x1400d4086\nretn                                                                   ; +0x77, 0x1400d4087", "xrefs": ["DialogLayer::handleDialogTap @ 0x1400d3f93", "DialogLayer::keyBackClicked @ 0x1400d4007", "<???> @ 0x1406c86b8"], "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"}