{"type": "func", "start": 5371455008, "end": 5371455125, "name": "TOSPopup::onClose", "pseudocode": "// \n// TOSPopup::onClose from 0x14029e620 to 0x14029e695 (117 bytes)\n// \n// 2 xrefs:\n// > TOSPopup::init @ 0x14029e3a3\n// > <???> @ 0x1406d1eec\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 TOSPopup::onClose(TOSPopup *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  _BOOL8 v4; // rdx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setUGV(v3, \"30\", 1);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v4) = 1;\n  a1->removeFromParentAndCleanup(a1, v4);\n}", "assembly": "; \n; TOSPopup::onClose from 0x14029e620 to 0x14029e695 (117 bytes)\n; \n; 2 xrefs:\n; > TOSPopup::init @ 0x14029e3a3\n; > <???> @ 0x1406d1eec\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, 0x14029e620\nsub     rsp, 20h                                                       ; +0x2, 0x14029e622\nmov     rbx, rcx                                                       ; +0x6, 0x14029e626\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x14029e629\ntest    rcx, rcx                                                       ; +0x10, 0x14029e630\njnz     short loc_14029E664                                            ; +0x13, 0x14029e633\nmov     ecx, 668h; Size                                                ; +0x15, 0x14029e635\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14029e63a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14029e63f\nmov     rcx, rax                                                       ; +0x24, 0x14029e644\ncall    sub_14017AB00                                                  ; +0x27, 0x14029e647\nnop                                                                    ; +0x2c, 0x14029e64c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x14029e64d\nmov     rdx, [rax]                                                     ; +0x34, 0x14029e654\nmov     rcx, rax                                                       ; +0x37, 0x14029e657\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x14029e65a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x14029e65d\nmov     r8b, 1                                                         ; +0x44, 0x14029e664\nlea     rdx, a30; \"30\"                                                 ; +0x47, 0x14029e667\ncall    GameManager__setUGV                                            ; +0x4e, 0x14029e66e\nmov     rax, [rbx]                                                     ; +0x53, 0x14029e673\nxor     edx, edx                                                       ; +0x56, 0x14029e676\nmov     rcx, rbx                                                       ; +0x58, 0x14029e678\ncall    qword ptr [rax+3D0h]                                           ; +0x5b, 0x14029e67b\nmov     rax, [rbx]                                                     ; +0x61, 0x14029e681\nmov     dl, 1                                                          ; +0x64, 0x14029e684\nmov     rcx, rbx                                                       ; +0x66, 0x14029e686\nadd     rsp, 20h                                                       ; +0x69, 0x14029e689\npop     rbx                                                            ; +0x6d, 0x14029e68d\njmp     qword ptr [rax+1F8h]                                           ; +0x6e, 0x14029e68e", "xrefs": ["TOSPopup::init @ 0x14029e3a3", "<???> @ 0x1406d1eec"], "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"}