{"type": "func", "start": 5072314, "end": 5072396, "name": "DialogLayer::onClose", "pseudocode": "// \n// DialogLayer::onClose from 0x4d65ba to 0x4d660c (82 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::keyBackClicked @ 0x4d660c\n// > DialogLayer::handleDialogTap @ 0x4d66a6\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; // r0\n  TextArea *m_textArea; // r3\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    a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; DialogLayer::onClose from 0x4d65ba to 0x4d660c (82 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::keyBackClicked @ 0x4d660c\n; > DialogLayer::handleDialogTap @ 0x4d66a6\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            {R4,LR}                                                ; +0x0, 0x4d65ba\nMOV             R4, R0                                                 ; +0x2, 0x4d65bc\nLDR.W           R0, [R0,#0x1E0]                                        ; +0x4, 0x4d65be\nCBZ             R0, loc_4D65CC                                         ; +0x8, 0x4d65c2\nLDR             R3, [R0]                                               ; +0xa, 0x4d65c4\nMOV             R1, R4                                                 ; +0xc, 0x4d65c6\nLDR             R3, [R3]                                               ; +0xe, 0x4d65c8\nBLX             R3                                                     ; +0x10, 0x4d65ca\nLDR.W           R3, [R4,#0x1C8]                                        ; +0x12, 0x4d65cc\nMOVS            R2, #0                                                 ; +0x16, 0x4d65d0\nSTR.W           R2, [R4,#0x1E0]                                        ; +0x18, 0x4d65d2\nCBZ             R3, loc_4D65DC                                         ; +0x1c, 0x4d65d6\nSTR.W           R2, [R3,#0x23C]                                        ; +0x1e, 0x4d65d8\nLDR             R3, [R4]                                               ; +0x22, 0x4d65dc\nMOV             R0, R4                                                 ; +0x24, 0x4d65de\nMOVS            R1, #0                                                 ; +0x26, 0x4d65e0\nLDR.W           R3, [R3,#0x210]                                        ; +0x28, 0x4d65e2\nBLX             R3                                                     ; +0x2c, 0x4d65e6\nLDR             R3, [R4]                                               ; +0x2e, 0x4d65e8\nMOV             R0, R4                                                 ; +0x30, 0x4d65ea\nMOVS            R1, #0                                                 ; +0x32, 0x4d65ec\nLDR.W           R3, [R3,#0x218]                                        ; +0x34, 0x4d65ee\nBLX             R3                                                     ; +0x38, 0x4d65f2\nLDRB.W          R3, [R4,#0x1EC]                                        ; +0x3a, 0x4d65f4\nCBNZ            R3, locret_4D660A                                      ; +0x3e, 0x4d65f8\nLDR             R3, [R4]                                               ; +0x40, 0x4d65fa\nMOV             R0, R4                                                 ; +0x42, 0x4d65fc\nMOVS            R1, #1                                                 ; +0x44, 0x4d65fe\nPOP.W           {R4,LR}                                                ; +0x46, 0x4d6600\nLDR.W           R3, [R3,#0x100]                                        ; +0x4a, 0x4d6604\nBX              R3                                                     ; +0x4e, 0x4d6608\nPOP             {R4,PC}                                                ; +0x50, 0x4d660a", "xrefs": ["DialogLayer::keyBackClicked @ 0x4d660c", "DialogLayer::handleDialogTap @ 0x4d66a6"], "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"}