{"type": "func", "start": 5371451856, "end": 5371451997, "name": "SetTextPopup::onCancel", "pseudocode": "// \n// SetTextPopup::onCancel from 0x14029d9d0 to 0x14029da5d (141 bytes)\n// \n// 2 xrefs:\n// > SetTextPopup::init @ 0x14029d746\n// > <???> @ 0x1406d1e98\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 SetTextPopup::onCancel(SetTextPopup *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_input; // rax\n  std::string *v4; // rax\n  _BOOL8 v5; // rdx\n  _BYTE v6[40]; // [rsp+20h] [rbp-28h] BYREF\n\n  m_input = a1->m_input;\n  a1->m_cancelled = 1;\n  m_input->m_delegate = nullptr;\n  a1->m_input->onClickTrackNode(a1->m_input, 0);\n  if ( a1->m_delegate && !a1->m_cancelled )\n  {\n    v4 = (std::string *)sub_14003BDB0((__int64)v6, (__int64)&a1->m_value);\n    a1->m_delegate->setTextPopupClosed(a1->m_delegate, a1, v4);\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; SetTextPopup::onCancel from 0x14029d9d0 to 0x14029da5d (141 bytes)\n; \n; 2 xrefs:\n; > SetTextPopup::init @ 0x14029d746\n; > <???> @ 0x1406d1e98\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, 0x14029d9d0\nsub     rsp, 40h                                                       ; +0x2, 0x14029d9d2\nmov     rax, [rcx+280h]                                                ; +0x6, 0x14029d9d6\nmov     rbx, rcx                                                       ; +0xd, 0x14029d9dd\nmov     byte ptr [rcx+289h], 1                                         ; +0x10, 0x14029d9e0\nxor     edx, edx                                                       ; +0x17, 0x14029d9e7\nmov     qword ptr [rax+230h], 0                                        ; +0x19, 0x14029d9e9\nmov     rcx, [rcx+280h]                                                ; +0x24, 0x14029d9f4\nmov     rax, [rcx]                                                     ; +0x2b, 0x14029d9fb\ncall    qword ptr [rax+3F8h]                                           ; +0x2e, 0x14029d9fe\ncmp     qword ptr [rbx+2B0h], 0                                        ; +0x34, 0x14029da04\njz      short loc_14029DA3B                                            ; +0x3c, 0x14029da0c\ncmp     byte ptr [rbx+289h], 0                                         ; +0x3e, 0x14029da0e\njnz     short loc_14029DA3B                                            ; +0x45, 0x14029da15\nlea     rdx, [rbx+290h]                                                ; +0x47, 0x14029da17\nlea     rcx, [rsp+48h+var_28]                                          ; +0x4e, 0x14029da1e\ncall    sub_14003BDB0                                                  ; +0x53, 0x14029da23\nmov     rcx, [rbx+2B0h]                                                ; +0x58, 0x14029da28\nmov     r8, rax                                                        ; +0x5f, 0x14029da2f\nmov     rdx, rbx                                                       ; +0x62, 0x14029da32\nmov     r9, [rcx]                                                      ; +0x65, 0x14029da35\ncall    qword ptr [r9]                                                 ; +0x68, 0x14029da38\nmov     rax, [rbx]                                                     ; +0x6b, 0x14029da3b\nxor     edx, edx                                                       ; +0x6e, 0x14029da3e\nmov     rcx, rbx                                                       ; +0x70, 0x14029da40\ncall    qword ptr [rax+3D0h]                                           ; +0x73, 0x14029da43\nmov     rax, [rbx]                                                     ; +0x79, 0x14029da49\nmov     dl, 1                                                          ; +0x7c, 0x14029da4c\nmov     rcx, rbx                                                       ; +0x7e, 0x14029da4e\nadd     rsp, 40h                                                       ; +0x81, 0x14029da51\npop     rbx                                                            ; +0x85, 0x14029da55\njmp     qword ptr [rax+1F8h]                                           ; +0x86, 0x14029da56", "xrefs": ["SetTextPopup::init @ 0x14029d746", "<???> @ 0x1406d1e98"], "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"}