{"type": "func", "start": 5371644496, "end": 5371644994, "name": "LevelBrowserLayer::setIDPopupClosed", "pseudocode": "// \n// LevelBrowserLayer::setIDPopupClosed from 0x1402cca50 to 0x1402ccc42 (498 bytes)\n// \n// 3 xrefs:\n// > LevelListLayer::setIDPopupClosed @ 0x140307105\n// > <???> @ 0x140585268\n// > <???> @ 0x1406d2d08\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\n// Hidden C++ exception states: #wind=4\nvoid LevelBrowserLayer::setIDPopupClosed(LevelBrowserLayer *a1, SetIDPopup *a2, int a3)\n{\n  __int64 v5; // rax\n  __int64 v6; // rax\n  GameManager *v7; // rcx\n  GameManager *v8; // rcx\n  int ty_low; // ebx\n  float ty; // eax\n  __int64 v11; // rax\n  __int64 v12; // rax\n  GJSearchObject *PageObject; // rax\n  void *v14; // [rsp+38h] [rbp+10h]\n  void *v15; // [rsp+38h] [rbp+10h]\n  void *v16; // [rsp+38h] [rbp+10h]\n  void *v17; // [rsp+38h] [rbp+10h]\n\n  if ( a2->getTag(a2) == 4 )\n  {\n    if ( a3 >= 0 )\n    {\n      if ( a3 > 999 )\n        a3 = 999;\n    }\n    else\n    {\n      a3 = 0;\n    }\n    if ( *(_QWORD *)&a1->m_obAnchorPoint.y )\n    {\n      v5 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v14 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v14);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v5 = qword_1406C2ED8;\n      }\n      *(_DWORD *)(v5 + 948) = 0;\n      *(_DWORD *)(*(_QWORD *)&a1->m_obAnchorPoint.y + 452LL) = a3;\n      *(_DWORD *)(*(_QWORD *)&a1->m_obAnchorPoint.y + 424LL) = 0;\n      LevelBrowserLayer::loadPage((LevelBrowserLayer *)((char *)a1 - 560), *(GJSearchObject **)&a1->m_obAnchorPoint.y);\n      v6 = *(_QWORD *)&a1->m_obAnchorPoint.y;\n      if ( v6 && *(_DWORD *)(v6 + 320) == 99 )\n      {\n        v7 = (GameManager *)qword_1406C2ED8;\n        if ( !qword_1406C2ED8 )\n        {\n          v15 = operator new(0x668u);\n          qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n          v7 = (GameManager *)qword_1406C2ED8;\n        }\n        GameManager::setIntGameVariable(v7, \"0092\", a3);\n      }\n      else\n      {\n        v8 = (GameManager *)qword_1406C2ED8;\n        if ( !qword_1406C2ED8 )\n        {\n          v16 = operator new(0x668u);\n          qword_1406C2ED8 = sub_14017AB00((__int64)v16);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n          v8 = (GameManager *)qword_1406C2ED8;\n        }\n        GameManager::setIntGameVariable(v8, \"0091\", a3);\n      }\n    }\n  }\n  else\n  {\n    ty_low = a3 - 1;\n    ty = a1->m_sInverse.ty;\n    if ( SLODWORD(ty) > 0 && SLODWORD(ty) < ty_low )\n      ty_low = LODWORD(a1->m_sInverse.ty);\n    v11 = *(_QWORD *)&a1->m_obAnchorPoint.y;\n    if ( v11 && *(_DWORD *)(v11 + 424) != ty_low )\n    {\n      v12 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v17 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v17);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v12 = qword_1406C2ED8;\n      }\n      *(_DWORD *)(v12 + 948) = 0;\n      PageObject = GJSearchObject::getPageObject(*(GJSearchObject **)&a1->m_obAnchorPoint.y, ty_low);\n      LevelBrowserLayer::loadPage((LevelBrowserLayer *)((char *)a1 - 560), PageObject);\n    }\n  }\n}", "assembly": "; \n; LevelBrowserLayer::setIDPopupClosed from 0x1402cca50 to 0x1402ccc42 (498 bytes)\n; \n; 3 xrefs:\n; > LevelListLayer::setIDPopupClosed @ 0x140307105\n; > <???> @ 0x140585268\n; > <???> @ 0x1406d2d08\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402cca50\npush    rdi                                                            ; +0x5, 0x1402cca55\nsub     rsp, 20h                                                       ; +0x6, 0x1402cca56\nmov     ebx, r8d                                                       ; +0xa, 0x1402cca5a\nmov     rdi, rcx                                                       ; +0xd, 0x1402cca5d\nmov     rax, [rdx]                                                     ; +0x10, 0x1402cca60\nmov     rcx, rdx                                                       ; +0x13, 0x1402cca63\ncall    qword ptr [rax+38h]                                            ; +0x16, 0x1402cca66\ncmp     eax, 4                                                         ; +0x19, 0x1402cca69\njnz     loc_1402CCBB6                                                  ; +0x1c, 0x1402cca6c\ntest    ebx, ebx                                                       ; +0x22, 0x1402cca72\njns     short loc_1402CCA7A                                            ; +0x24, 0x1402cca74\nxor     ebx, ebx                                                       ; +0x26, 0x1402cca76\njmp     short loc_1402CCA84                                            ; +0x28, 0x1402cca78\nmov     eax, 3E7h                                                      ; +0x2a, 0x1402cca7a\ncmp     ebx, eax                                                       ; +0x2f, 0x1402cca7f\ncmovg   ebx, eax                                                       ; +0x31, 0x1402cca81\ncmp     qword ptr [rdi+68h], 0                                         ; +0x34, 0x1402cca84\njz      loc_1402CCC37                                                  ; +0x39, 0x1402cca89\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3f, 0x1402cca8f\ntest    rax, rax                                                       ; +0x46, 0x1402cca96\njnz     short loc_1402CCACA                                            ; +0x49, 0x1402cca99\nmov     ecx, 668h; Size                                                ; +0x4b, 0x1402cca9b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x50, 0x1402ccaa0\nmov     [rsp+28h+arg_8], rax                                           ; +0x55, 0x1402ccaa5\nmov     rcx, rax                                                       ; +0x5a, 0x1402ccaaa\ncall    sub_14017AB00                                                  ; +0x5d, 0x1402ccaad\nnop                                                                    ; +0x62, 0x1402ccab2\nmov     cs:qword_1406C2ED8, rax                                        ; +0x63, 0x1402ccab3\nmov     rdx, [rax]                                                     ; +0x6a, 0x1402ccaba\nmov     rcx, rax                                                       ; +0x6d, 0x1402ccabd\ncall    qword ptr [rdx+48h]                                            ; +0x70, 0x1402ccac0\nmov     rax, cs:qword_1406C2ED8                                        ; +0x73, 0x1402ccac3\nmov     dword ptr [rax+3B4h], 0                                        ; +0x7a, 0x1402ccaca\nmov     rax, [rdi+68h]                                                 ; +0x84, 0x1402ccad4\nmov     [rax+1C4h], ebx                                                ; +0x88, 0x1402ccad8\nmov     rax, [rdi+68h]                                                 ; +0x8e, 0x1402ccade\nmov     dword ptr [rax+1A8h], 0                                        ; +0x92, 0x1402ccae2\nlea     rcx, [rdi-230h]                                                ; +0x9c, 0x1402ccaec\nmov     rdx, [rdi+68h]                                                 ; +0xa3, 0x1402ccaf3\ncall    LevelBrowserLayer__loadPage                                    ; +0xa7, 0x1402ccaf7\nmov     rax, [rdi+68h]                                                 ; +0xac, 0x1402ccafc\ntest    rax, rax                                                       ; +0xb0, 0x1402ccb00\njz      short loc_1402CCB62                                            ; +0xb3, 0x1402ccb03\ncmp     dword ptr [rax+140h], 63h ; 'c'                                ; +0xb5, 0x1402ccb05\njnz     short loc_1402CCB62                                            ; +0xbc, 0x1402ccb0c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xbe, 0x1402ccb0e\ntest    rcx, rcx                                                       ; +0xc5, 0x1402ccb15\njnz     short loc_1402CCB49                                            ; +0xc8, 0x1402ccb18\nmov     ecx, 668h; Size                                                ; +0xca, 0x1402ccb1a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xcf, 0x1402ccb1f\nmov     [rsp+28h+arg_8], rax                                           ; +0xd4, 0x1402ccb24\nmov     rcx, rax                                                       ; +0xd9, 0x1402ccb29\ncall    sub_14017AB00                                                  ; +0xdc, 0x1402ccb2c\nnop                                                                    ; +0xe1, 0x1402ccb31\nmov     cs:qword_1406C2ED8, rax                                        ; +0xe2, 0x1402ccb32\nmov     rdx, [rax]                                                     ; +0xe9, 0x1402ccb39\nmov     rcx, rax                                                       ; +0xec, 0x1402ccb3c\ncall    qword ptr [rdx+48h]                                            ; +0xef, 0x1402ccb3f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xf2, 0x1402ccb42\nmov     r8d, ebx                                                       ; +0xf9, 0x1402ccb49\nlea     rdx, a0092; \"0092\"                                             ; +0xfc, 0x1402ccb4c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x103, 0x1402ccb53\nadd     rsp, 20h                                                       ; +0x108, 0x1402ccb58\npop     rdi                                                            ; +0x10c, 0x1402ccb5c\njmp     GameManager__setIntGameVariable                                ; +0x10d, 0x1402ccb5d\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x112, 0x1402ccb62\ntest    rcx, rcx                                                       ; +0x119, 0x1402ccb69\njnz     short loc_1402CCB9D                                            ; +0x11c, 0x1402ccb6c\nmov     ecx, 668h; Size                                                ; +0x11e, 0x1402ccb6e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x123, 0x1402ccb73\nmov     [rsp+28h+arg_8], rax                                           ; +0x128, 0x1402ccb78\nmov     rcx, rax                                                       ; +0x12d, 0x1402ccb7d\ncall    sub_14017AB00                                                  ; +0x130, 0x1402ccb80\nnop                                                                    ; +0x135, 0x1402ccb85\nmov     cs:qword_1406C2ED8, rax                                        ; +0x136, 0x1402ccb86\nmov     rdx, [rax]                                                     ; +0x13d, 0x1402ccb8d\nmov     rcx, rax                                                       ; +0x140, 0x1402ccb90\ncall    qword ptr [rdx+48h]                                            ; +0x143, 0x1402ccb93\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x146, 0x1402ccb96\nmov     r8d, ebx                                                       ; +0x14d, 0x1402ccb9d\nlea     rdx, a0091; \"0091\"                                             ; +0x150, 0x1402ccba0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x157, 0x1402ccba7\nadd     rsp, 20h                                                       ; +0x15c, 0x1402ccbac\npop     rdi                                                            ; +0x160, 0x1402ccbb0\njmp     GameManager__setIntGameVariable                                ; +0x161, 0x1402ccbb1\ndec     ebx                                                            ; +0x166, 0x1402ccbb6\nmov     eax, [rdi+0B8h]                                                ; +0x168, 0x1402ccbb8\ntest    eax, eax                                                       ; +0x16e, 0x1402ccbbe\njle     short loc_1402CCBC7                                            ; +0x170, 0x1402ccbc0\ncmp     eax, ebx                                                       ; +0x172, 0x1402ccbc2\ncmovl   ebx, eax                                                       ; +0x174, 0x1402ccbc4\nmov     rax, [rdi+68h]                                                 ; +0x177, 0x1402ccbc7\ntest    rax, rax                                                       ; +0x17b, 0x1402ccbcb\njz      short loc_1402CCC37                                            ; +0x17e, 0x1402ccbce\ncmp     [rax+1A8h], ebx                                                ; +0x180, 0x1402ccbd0\njz      short loc_1402CCC37                                            ; +0x186, 0x1402ccbd6\nmov     rax, cs:qword_1406C2ED8                                        ; +0x188, 0x1402ccbd8\ntest    rax, rax                                                       ; +0x18f, 0x1402ccbdf\njnz     short loc_1402CCC13                                            ; +0x192, 0x1402ccbe2\nmov     ecx, 668h; Size                                                ; +0x194, 0x1402ccbe4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x199, 0x1402ccbe9\nmov     [rsp+28h+arg_8], rax                                           ; +0x19e, 0x1402ccbee\nmov     rcx, rax                                                       ; +0x1a3, 0x1402ccbf3\ncall    sub_14017AB00                                                  ; +0x1a6, 0x1402ccbf6\nnop                                                                    ; +0x1ab, 0x1402ccbfb\nmov     cs:qword_1406C2ED8, rax                                        ; +0x1ac, 0x1402ccbfc\nmov     rdx, [rax]                                                     ; +0x1b3, 0x1402ccc03\nmov     rcx, rax                                                       ; +0x1b6, 0x1402ccc06\ncall    qword ptr [rdx+48h]                                            ; +0x1b9, 0x1402ccc09\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1bc, 0x1402ccc0c\nmov     dword ptr [rax+3B4h], 0                                        ; +0x1c3, 0x1402ccc13\nmov     edx, ebx                                                       ; +0x1cd, 0x1402ccc1d\nmov     rcx, [rdi+68h]                                                 ; +0x1cf, 0x1402ccc1f\ncall    GJSearchObject__getPageObject                                  ; +0x1d3, 0x1402ccc23\nmov     rdx, rax                                                       ; +0x1d8, 0x1402ccc28\nlea     rcx, [rdi-230h]                                                ; +0x1db, 0x1402ccc2b\ncall    LevelBrowserLayer__loadPage                                    ; +0x1e2, 0x1402ccc32\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1e7, 0x1402ccc37\nadd     rsp, 20h                                                       ; +0x1ec, 0x1402ccc3c\npop     rdi                                                            ; +0x1f0, 0x1402ccc40\nretn                                                                   ; +0x1f1, 0x1402ccc41", "xrefs": ["LevelListLayer::setIDPopupClosed @ 0x140307105", "<???> @ 0x140585268", "<???> @ 0x1406d2d08"], "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"}