{"type": "func", "start": 5371445328, "end": 5371445476, "name": "SetIDPopup::onClose", "pseudocode": "// \n// SetIDPopup::onClose from 0x14029c050 to 0x14029c0e4 (148 bytes)\n// \n// 3 xrefs:\n// > SetIDPopup::keyBackClicked @ 0x14029c0f9\n// > SetIDPopup::init @ 0x14029b678\n// > <???> @ 0x1406d1de4\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 SetIDPopup::onClose(SetIDPopup *a1, cocos2d::CCObject *a2)\n{\n  int m_maximum; // r8d\n  SetIDPopupDelegate *m_delegate; // rcx\n  _BOOL8 v5; // rdx\n\n  a1->m_inputNode->m_delegate = nullptr;\n  a1->m_inputNode->onClickTrackNode(a1->m_inputNode, 0);\n  m_maximum = a1->m_maximum;\n  m_delegate = a1->m_delegate;\n  if ( m_maximum >= a1->m_value )\n    m_maximum = a1->m_value;\n  if ( a1->m_minimum > m_maximum )\n    m_maximum = a1->m_minimum;\n  a1->m_value = m_maximum;\n  if ( m_delegate && !a1->m_cancelled )\n    ((void (__fastcall *)(SetIDPopupDelegate *, SetIDPopup *))m_delegate->setIDPopupClosed)(m_delegate, a1);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; SetIDPopup::onClose from 0x14029c050 to 0x14029c0e4 (148 bytes)\n; \n; 3 xrefs:\n; > SetIDPopup::keyBackClicked @ 0x14029c0f9\n; > SetIDPopup::init @ 0x14029b678\n; > <???> @ 0x1406d1de4\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, 0x14029c050\nsub     rsp, 20h                                                       ; +0x2, 0x14029c052\nmov     rax, [rcx+280h]                                                ; +0x6, 0x14029c056\nmov     rbx, rcx                                                       ; +0xd, 0x14029c05d\nxor     edx, edx                                                       ; +0x10, 0x14029c060\nmov     qword ptr [rax+230h], 0                                        ; +0x12, 0x14029c062\nmov     rcx, [rcx+280h]                                                ; +0x1d, 0x14029c06d\nmov     rax, [rcx]                                                     ; +0x24, 0x14029c074\ncall    qword ptr [rax+3F8h]                                           ; +0x27, 0x14029c077\nmov     eax, [rbx+288h]                                                ; +0x2d, 0x14029c07d\nmov     r8d, [rbx+294h]                                                ; +0x33, 0x14029c083\ncmp     r8d, eax                                                       ; +0x3a, 0x14029c08a\nmov     rcx, [rbx+2A0h]                                                ; +0x3d, 0x14029c08d\ncmovge  r8d, eax                                                       ; +0x44, 0x14029c094\nmov     eax, [rbx+290h]                                                ; +0x48, 0x14029c098\ncmp     eax, r8d                                                       ; +0x4e, 0x14029c09e\ncmovg   r8d, eax                                                       ; +0x51, 0x14029c0a1\nmov     [rbx+288h], r8d                                                ; +0x55, 0x14029c0a5\ntest    rcx, rcx                                                       ; +0x5c, 0x14029c0ac\njz      short loc_14029C0C2                                            ; +0x5f, 0x14029c0af\ncmp     byte ptr [rbx+28Dh], 0                                         ; +0x61, 0x14029c0b1\njnz     short loc_14029C0C2                                            ; +0x68, 0x14029c0b8\nmov     rax, [rcx]                                                     ; +0x6a, 0x14029c0ba\nmov     rdx, rbx                                                       ; +0x6d, 0x14029c0bd\ncall    qword ptr [rax]                                                ; +0x70, 0x14029c0c0\nmov     rax, [rbx]                                                     ; +0x72, 0x14029c0c2\nxor     edx, edx                                                       ; +0x75, 0x14029c0c5\nmov     rcx, rbx                                                       ; +0x77, 0x14029c0c7\ncall    qword ptr [rax+3D0h]                                           ; +0x7a, 0x14029c0ca\nmov     rax, [rbx]                                                     ; +0x80, 0x14029c0d0\nmov     dl, 1                                                          ; +0x83, 0x14029c0d3\nmov     rcx, rbx                                                       ; +0x85, 0x14029c0d5\nadd     rsp, 20h                                                       ; +0x88, 0x14029c0d8\npop     rbx                                                            ; +0x8c, 0x14029c0dc\njmp     qword ptr [rax+1F8h]                                           ; +0x8d, 0x14029c0dd", "xrefs": ["SetIDPopup::keyBackClicked @ 0x14029c0f9", "SetIDPopup::init @ 0x14029b678", "<???> @ 0x1406d1de4"], "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"}