{"type": "func", "start": 5371445168, "end": 5371445323, "name": "SetIDPopup::onCancel", "pseudocode": "// \n// SetIDPopup::onCancel from 0x14029bfb0 to 0x14029c04b (155 bytes)\n// \n// 2 xrefs:\n// > SetIDPopup::init @ 0x14029bbfc\n// > <???> @ 0x1406d1dd8\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::onCancel(SetIDPopup *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_inputNode; // rax\n  int m_maximum; // r8d\n  SetIDPopupDelegate *m_delegate; // rcx\n  _BOOL8 v6; // rdx\n\n  m_inputNode = a1->m_inputNode;\n  a1->m_cancelled = 1;\n  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(v6) = 1;\n  a1->removeFromParentAndCleanup(a1, v6);\n}", "assembly": "; \n; SetIDPopup::onCancel from 0x14029bfb0 to 0x14029c04b (155 bytes)\n; \n; 2 xrefs:\n; > SetIDPopup::init @ 0x14029bbfc\n; > <???> @ 0x1406d1dd8\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, 0x14029bfb0\nsub     rsp, 20h                                                       ; +0x2, 0x14029bfb2\nmov     rax, [rcx+280h]                                                ; +0x6, 0x14029bfb6\nmov     rbx, rcx                                                       ; +0xd, 0x14029bfbd\nmov     byte ptr [rcx+28Dh], 1                                         ; +0x10, 0x14029bfc0\nxor     edx, edx                                                       ; +0x17, 0x14029bfc7\nmov     qword ptr [rax+230h], 0                                        ; +0x19, 0x14029bfc9\nmov     rcx, [rcx+280h]                                                ; +0x24, 0x14029bfd4\nmov     rax, [rcx]                                                     ; +0x2b, 0x14029bfdb\ncall    qword ptr [rax+3F8h]                                           ; +0x2e, 0x14029bfde\nmov     eax, [rbx+288h]                                                ; +0x34, 0x14029bfe4\nmov     r8d, [rbx+294h]                                                ; +0x3a, 0x14029bfea\ncmp     r8d, eax                                                       ; +0x41, 0x14029bff1\nmov     rcx, [rbx+2A0h]                                                ; +0x44, 0x14029bff4\ncmovge  r8d, eax                                                       ; +0x4b, 0x14029bffb\nmov     eax, [rbx+290h]                                                ; +0x4f, 0x14029bfff\ncmp     eax, r8d                                                       ; +0x55, 0x14029c005\ncmovg   r8d, eax                                                       ; +0x58, 0x14029c008\nmov     [rbx+288h], r8d                                                ; +0x5c, 0x14029c00c\ntest    rcx, rcx                                                       ; +0x63, 0x14029c013\njz      short loc_14029C029                                            ; +0x66, 0x14029c016\ncmp     byte ptr [rbx+28Dh], 0                                         ; +0x68, 0x14029c018\njnz     short loc_14029C029                                            ; +0x6f, 0x14029c01f\nmov     rax, [rcx]                                                     ; +0x71, 0x14029c021\nmov     rdx, rbx                                                       ; +0x74, 0x14029c024\ncall    qword ptr [rax]                                                ; +0x77, 0x14029c027\nmov     rax, [rbx]                                                     ; +0x79, 0x14029c029\nxor     edx, edx                                                       ; +0x7c, 0x14029c02c\nmov     rcx, rbx                                                       ; +0x7e, 0x14029c02e\ncall    qword ptr [rax+3D0h]                                           ; +0x81, 0x14029c031\nmov     rax, [rbx]                                                     ; +0x87, 0x14029c037\nmov     dl, 1                                                          ; +0x8a, 0x14029c03a\nmov     rcx, rbx                                                       ; +0x8c, 0x14029c03c\nadd     rsp, 20h                                                       ; +0x8f, 0x14029c03f\npop     rbx                                                            ; +0x93, 0x14029c043\njmp     qword ptr [rax+1F8h]                                           ; +0x94, 0x14029c044", "xrefs": ["SetIDPopup::init @ 0x14029bbfc", "<???> @ 0x1406d1dd8"], "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"}