{"type": "func", "start": 5369561296, "end": 5369561463, "name": "DailyLevelPage::downloadAndCreateNode", "pseudocode": "// \n// DailyLevelPage::downloadAndCreateNode from 0x1400d00d0 to 0x1400d0177 (167 bytes)\n// \n// 3 xrefs:\n// > DailyLevelPage::dailyStatusFinished @ 0x1400cfc66\n// > DailyLevelPage::claimLevelReward @ 0x1400d1d70\n// > <???> @ 0x1406c855c\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::downloadAndCreateNode(DailyLevelPage *a1)\n{\n  float v1; // xmm3_4\n  GameLevelManager *v3; // rcx\n  __int64 v4; // rbx\n  struct cocos2d::CCDelayTime *v5; // rax\n  struct cocos2d::CCSequence *v6; // rax\n  cocos2d::ccColor3B *v7; // r8\n  void *v8; // [rsp+30h] [rbp+8h]\n  float v9; // [rsp+50h] [rbp+28h]\n\n  a1->m_downloadStarted = 1;\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  GameLevelManager::downloadLevel(v3, a1->m_downloadLevelID, 0, 0);\n  v4 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded);\n  v5 = cocos2d::CCDelayTime::create(0.5);\n  v6 = cocos2d::CCSequence::create(v5, v4, 0);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, v1, v9);\n}", "assembly": "; \n; DailyLevelPage::downloadAndCreateNode from 0x1400d00d0 to 0x1400d0177 (167 bytes)\n; \n; 3 xrefs:\n; > DailyLevelPage::dailyStatusFinished @ 0x1400cfc66\n; > DailyLevelPage::claimLevelReward @ 0x1400d1d70\n; > <???> @ 0x1406c855c\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, 0x1400d00d0\npush    rdi                                                            ; +0x5, 0x1400d00d5\nsub     rsp, 20h                                                       ; +0x6, 0x1400d00d6\nmov     rdi, rcx                                                       ; +0xa, 0x1400d00da\nmov     byte ptr [rcx+2B8h], 1                                         ; +0xd, 0x1400d00dd\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x14, 0x1400d00e4\ntest    rcx, rcx                                                       ; +0x1b, 0x1400d00eb\njnz     short loc_1400D011F                                            ; +0x1e, 0x1400d00ee\nmov     ecx, 3D0h; Size                                                ; +0x20, 0x1400d00f0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x1400d00f5\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x1400d00fa\nmov     rcx, rax                                                       ; +0x2f, 0x1400d00ff\ncall    sub_140141280                                                  ; +0x32, 0x1400d0102\nnop                                                                    ; +0x37, 0x1400d0107\nmov     cs:qword_1406C2EC0, rax                                        ; +0x38, 0x1400d0108\nmov     rdx, [rax]                                                     ; +0x3f, 0x1400d010f\nmov     rcx, rax                                                       ; +0x42, 0x1400d0112\ncall    qword ptr [rdx+48h]                                            ; +0x45, 0x1400d0115\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x48, 0x1400d0118\nxor     r9d, r9d                                                       ; +0x4f, 0x1400d011f\nxor     r8d, r8d                                                       ; +0x52, 0x1400d0122\nmov     edx, [rdi+2C0h]                                                ; +0x55, 0x1400d0125\ncall    GameLevelManager__downloadLevel                                ; +0x5b, 0x1400d012b\nlea     rdx, DailyLevelPage__createNodeIfLoaded                        ; +0x60, 0x1400d0130\nmov     rcx, rdi                                                       ; +0x67, 0x1400d0137\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x6a, 0x1400d013a\nmov     rbx, rax                                                       ; +0x70, 0x1400d0140\nmovss   xmm0, cs:dword_140622B08                                       ; +0x73, 0x1400d0143\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x7b, 0x1400d014b\nmov     rcx, rax                                                       ; +0x81, 0x1400d0151\nxor     r8d, r8d                                                       ; +0x84, 0x1400d0154\nmov     rdx, rbx                                                       ; +0x87, 0x1400d0157\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x8a, 0x1400d015a\nmov     rdx, rax                                                       ; +0x90, 0x1400d0160\nmov     rcx, rdi                                                       ; +0x93, 0x1400d0163\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x96, 0x1400d0166\nadd     rsp, 20h                                                       ; +0x9b, 0x1400d016b\npop     rdi                                                            ; +0x9f, 0x1400d016f\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xa0, 0x1400d0170", "xrefs": ["DailyLevelPage::dailyStatusFinished @ 0x1400cfc66", "DailyLevelPage::claimLevelReward @ 0x1400d1d70", "<???> @ 0x1406c855c"], "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"}