{"type": "func", "start": 4296463948, "end": 4296464096, "name": "CCTextInputNode::keyboardWillHide", "pseudocode": "// \n// CCTextInputNode::keyboardWillHide from 0x10016d64c to 0x10016d6e0 (148 bytes)\n// \n// 2 xrefs:\n// > sub_10016D6E0 @ 0x10016d6e4\n// > <???> @ 0x10079fa78\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 CCTextInputNode::keyboardWillHide(CCTextInputNode *a1, cocos2d::CCIMEKeyboardNotificationInfo *a2)\n{\n  TextInputDelegate *m_delegate; // x0\n  TextInputDelegate *v4; // x0\n\n  if ( a1->m_forceOffset )\n  {\n    if ( a1->m_selected && a1->m_textField )\n    {\n      m_delegate = a1->m_delegate;\n      if ( m_delegate )\n        ((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))m_delegate->textInputReturn)(m_delegate, a1);\n      a1->m_selected = 0;\n    }\n  }\n  else if ( a1->m_textField )\n  {\n    if ( a1->m_unknown2 )\n    {\n      a1->m_unknown2 = 0;\n      v4 = a1->m_delegate;\n      if ( v4 )\n        ((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))v4->textInputReturn)(v4, a1);\n    }\n  }\n}", "assembly": "; \n; CCTextInputNode::keyboardWillHide from 0x10016d64c to 0x10016d6e0 (148 bytes)\n; \n; 2 xrefs:\n; > sub_10016D6E0 @ 0x10016d6e4\n; > <???> @ 0x10079fa78\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10016d64c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10016d650\nADD             X29, SP, #0x10                                         ; +0x8, 0x10016d654\nMOV             X19, X0                                                ; +0xc, 0x10016d658\nLDRB            W8, [X0,#0x23A]                                        ; +0x10, 0x10016d65c\nCMP             W8, #1                                                 ; +0x14, 0x10016d660\nB.NE            loc_10016D69C                                          ; +0x18, 0x10016d664\nLDRB            W8, [X19,#0x1CC]                                       ; +0x1c, 0x10016d668\nCMP             W8, #1                                                 ; +0x20, 0x10016d66c\nB.NE            loc_10016D6D4                                          ; +0x24, 0x10016d670\nLDR             X8, [X19,#0x218]                                       ; +0x28, 0x10016d674\nCBZ             X8, loc_10016D6D4                                      ; +0x2c, 0x10016d678\nLDR             X0, [X19,#0x220]                                       ; +0x30, 0x10016d67c\nCBZ             X0, loc_10016D694                                      ; +0x34, 0x10016d680\nLDR             X8, [X0]                                               ; +0x38, 0x10016d684\nLDR             X8, [X8,#0x20]                                         ; +0x3c, 0x10016d688\nMOV             X1, X19                                                ; +0x40, 0x10016d68c\nBLR             X8                                                     ; +0x44, 0x10016d690\nSTRB            WZR, [X19,#0x1CC]                                      ; +0x48, 0x10016d694\nB               loc_10016D6D4                                          ; +0x4c, 0x10016d698\nLDR             X8, [X19,#0x218]                                       ; +0x50, 0x10016d69c\nCBZ             X8, loc_10016D6D4                                      ; +0x54, 0x10016d6a0\nLDRB            W8, [X19,#0x1CD]                                       ; +0x58, 0x10016d6a4\nCMP             W8, #1                                                 ; +0x5c, 0x10016d6a8\nB.NE            loc_10016D6D4                                          ; +0x60, 0x10016d6ac\nSTRB            WZR, [X19,#0x1CD]                                      ; +0x64, 0x10016d6b0\nLDR             X0, [X19,#0x220]                                       ; +0x68, 0x10016d6b4\nCBZ             X0, loc_10016D6D4                                      ; +0x6c, 0x10016d6b8\nLDR             X8, [X0]                                               ; +0x70, 0x10016d6bc\nLDR             X2, [X8,#0x20]                                         ; +0x74, 0x10016d6c0\nMOV             X1, X19                                                ; +0x78, 0x10016d6c4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x10016d6c8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x10016d6cc\nBR              X2                                                     ; +0x84, 0x10016d6d0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x10016d6d4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10016d6d8\nRET                                                                    ; +0x90, 0x10016d6dc", "xrefs": ["sub_10016D6E0 @ 0x10016d6e4", "<???> @ 0x10079fa78"], "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"}