{"type": "func", "start": 5369569248, "end": 5369569464, "name": "DailyLevelPage::onTheSafe", "pseudocode": "// \n// DailyLevelPage::onTheSafe from 0x1400d1fe0 to 0x1400d20b8 (216 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::init @ 0x1400cf24e\n// > <???> @ 0x1406c85d4\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=1\nvoid DailyLevelPage::onTheSafe(DailyLevelPage *a1, cocos2d::CCObject *a2)\n{\n  SearchType v2; // eax\n  GJTimedLevelType m_type; // edx\n  GJSearchObject *v4; // rbx\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  struct cocos2d::CCScene *v7; // rdi\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  LevelBrowserLayer *v10; // rax\n  struct cocos2d::CCTransitionFade *v11; // rbx\n  __int64 v12; // rcx\n  cocos2d::CCDirector *v13; // rax\n  __int64 v14; // rax\n  void *v15; // [rsp+30h] [rbp+8h]\n\n  v2 = DailySafe;\n  m_type = a1->m_type;\n  if ( m_type == 1 )\n  {\n    v2 = WeeklySafe;\n  }\n  else if ( m_type == Event )\n  {\n    v2 = EventSafe;\n  }\n  v4 = GJSearchObject::create_2(v2);\n  v7 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v6, v5);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v9, v8) + 224) = v7;\n  v10 = LevelBrowserLayer::create(v4);\n  v7->addChild_1(v7, v10);\n  v11 = cocos2d::CCTransitionFade::create(0.5, v7);\n  v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12);\n  cocos2d::CCDirector::pushScene(v13, v11);\n  v14 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v15 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v14 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v14 + 700) = 1;\n}", "assembly": "; \n; DailyLevelPage::onTheSafe from 0x1400d1fe0 to 0x1400d20b8 (216 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::init @ 0x1400cf24e\n; > <???> @ 0x1406c85d4\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_8], rbx                                               ; +0x0, 0x1400d1fe0\npush    rdi                                                            ; +0x5, 0x1400d1fe5\nsub     rsp, 20h                                                       ; +0x6, 0x1400d1fe6\nmov     eax, 15h                                                       ; +0xa, 0x1400d1fea\nmov     edx, [rcx+2BCh]                                                ; +0xf, 0x1400d1fef\ncmp     edx, 1                                                         ; +0x15, 0x1400d1ff5\njnz     short loc_1400D1FFF                                            ; +0x18, 0x1400d1ff8\nlea     eax, [rdx+15h]                                                 ; +0x1a, 0x1400d1ffa\njmp     short loc_1400D200A                                            ; +0x1d, 0x1400d1ffd\nmov     ecx, 17h                                                       ; +0x1f, 0x1400d1fff\ncmp     edx, 2                                                         ; +0x24, 0x1400d2004\ncmovz   eax, ecx                                                       ; +0x27, 0x1400d2007\nmov     ecx, eax                                                       ; +0x2a, 0x1400d200a\ncall    GJSearchObject__create_2                                       ; +0x2c, 0x1400d200c\nmov     rbx, rax                                                       ; +0x31, 0x1400d2011\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x34, 0x1400d2014\nmov     rdi, rax                                                       ; +0x3a, 0x1400d201a\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x3d, 0x1400d201d\nmov     [rax+0E0h], rdi                                                ; +0x43, 0x1400d2023\nmov     rcx, rbx                                                       ; +0x4a, 0x1400d202a\ncall    LevelBrowserLayer__create                                      ; +0x4d, 0x1400d202d\nmov     r8, [rdi]                                                      ; +0x52, 0x1400d2032\nmov     rdx, rax                                                       ; +0x55, 0x1400d2035\nmov     rcx, rdi                                                       ; +0x58, 0x1400d2038\ncall    qword ptr [r8+1C0h]                                            ; +0x5b, 0x1400d203b\nmov     rdx, rdi                                                       ; +0x62, 0x1400d2042\nmovss   xmm0, cs:dword_140622B08                                       ; +0x65, 0x1400d2045\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6d, 0x1400d204d\nmov     rbx, rax                                                       ; +0x73, 0x1400d2053\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x1400d2056\nmov     rcx, rax                                                       ; +0x7c, 0x1400d205c\nmov     rdx, rbx                                                       ; +0x7f, 0x1400d205f\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x82, 0x1400d2062\nmov     rax, cs:qword_1406C2ED8                                        ; +0x88, 0x1400d2068\ntest    rax, rax                                                       ; +0x8f, 0x1400d206f\njnz     short loc_1400D20A3                                            ; +0x92, 0x1400d2072\nmov     ecx, 668h; Size                                                ; +0x94, 0x1400d2074\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x99, 0x1400d2079\nmov     [rsp+28h+arg_0], rax                                           ; +0x9e, 0x1400d207e\nmov     rcx, rax                                                       ; +0xa3, 0x1400d2083\ncall    sub_14017AB00                                                  ; +0xa6, 0x1400d2086\nnop                                                                    ; +0xab, 0x1400d208b\nmov     cs:qword_1406C2ED8, rax                                        ; +0xac, 0x1400d208c\nmov     rdx, [rax]                                                     ; +0xb3, 0x1400d2093\nmov     rcx, rax                                                       ; +0xb6, 0x1400d2096\ncall    qword ptr [rdx+48h]                                            ; +0xb9, 0x1400d2099\nmov     rax, cs:qword_1406C2ED8                                        ; +0xbc, 0x1400d209c\nmov     dword ptr [rax+2BCh], 1                                        ; +0xc3, 0x1400d20a3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xcd, 0x1400d20ad\nadd     rsp, 20h                                                       ; +0xd2, 0x1400d20b2\npop     rdi                                                            ; +0xd6, 0x1400d20b6\nretn                                                                   ; +0xd7, 0x1400d20b7", "xrefs": ["DailyLevelPage::init @ 0x1400cf24e", "<???> @ 0x1406c85d4"], "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"}