{"type": "func", "start": 4297155984, "end": 4297156124, "name": "DailyLevelPage::createNodeIfLoaded", "pseudocode": "// \n// DailyLevelPage::createNodeIfLoaded from 0x100216590 to 0x10021661c (140 bytes)\n// \n// 4 xrefs:\n// > DailyLevelPage::dailyStatusFinished @ 0x100215f36\n// > DailyLevelPage::downloadAndCreateNode @ 0x100216158\n// > DailyLevelPage::claimLevelReward @ 0x100216b0d\n// > DailyLevelPage::skipDailyLevel @ 0x100216c11\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:00 +0000\n// \n\n_QWORD *__fastcall DailyLevelPage::createNodeIfLoaded(__int64 a1, double a2)\n{\n  __int64 v2; // rax\n  _QWORD *result; // rax\n  __int64 v4; // r14\n  __int64 v5; // rax\n  unsigned int DailyID; // eax\n  __int64 SavedDailyLevel; // rax\n\n  *(_BYTE *)(a1 + 728) = 0;\n  v2 = GameLevelManager::sharedState(a2);\n  result = (_QWORD *)GameLevelManager::getDailyID(v2, *(unsigned int *)(a1 + 732));\n  if ( (int)result > 0 )\n  {\n    v4 = GameLevelManager::sharedState(a2);\n    v5 = GameLevelManager::sharedState(a2);\n    DailyID = GameLevelManager::getDailyID(v5, *(unsigned int *)(a1 + 732));\n    SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v4, DailyID);\n    if ( SavedDailyLevel )\n      return DailyLevelPage::createDailyNode(a1, SavedDailyLevel, 0, 1u, 0.0);\n    else\n      return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(\n                         *(_QWORD *)(a1 + 704),\n                         1);\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::createNodeIfLoaded from 0x100216590 to 0x10021661c (140 bytes)\n; \n; 4 xrefs:\n; > DailyLevelPage::dailyStatusFinished @ 0x100215f36\n; > DailyLevelPage::downloadAndCreateNode @ 0x100216158\n; > DailyLevelPage::claimLevelReward @ 0x100216b0d\n; > DailyLevelPage::skipDailyLevel @ 0x100216c11\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x100216590\nmov     rbp, rsp                                                       ; +0x1, 0x100216591\npush    r14                                                            ; +0x4, 0x100216594\npush    rbx                                                            ; +0x6, 0x100216596\nmov     rbx, rdi                                                       ; +0x7, 0x100216597\nmov     byte ptr [rdi+2D8h], 0                                         ; +0xa, 0x10021659a\ncall    GameLevelManager__sharedState                                  ; +0x11, 0x1002165a1\nmov     esi, [rbx+2DCh]                                                ; +0x16, 0x1002165a6\nmov     rdi, rax                                                       ; +0x1c, 0x1002165ac\ncall    GameLevelManager__getDailyID                                   ; +0x1f, 0x1002165af\ntest    eax, eax                                                       ; +0x24, 0x1002165b4\njle     short loc_1002165FB                                            ; +0x26, 0x1002165b6\ncall    GameLevelManager__sharedState                                  ; +0x28, 0x1002165b8\nmov     r14, rax                                                       ; +0x2d, 0x1002165bd\ncall    GameLevelManager__sharedState                                  ; +0x30, 0x1002165c0\nmov     esi, [rbx+2DCh]                                                ; +0x35, 0x1002165c5\nmov     rdi, rax                                                       ; +0x3b, 0x1002165cb\ncall    GameLevelManager__getDailyID                                   ; +0x3e, 0x1002165ce\nmov     rdi, r14                                                       ; +0x43, 0x1002165d3\nmov     esi, eax                                                       ; +0x46, 0x1002165d6\ncall    GameLevelManager__getSavedDailyLevel                           ; +0x48, 0x1002165d8\ntest    rax, rax                                                       ; +0x4d, 0x1002165dd\njz      short loc_100216600                                            ; +0x50, 0x1002165e0\nxorps   xmm0, xmm0                                                     ; +0x52, 0x1002165e2\nmov     rdi, rbx                                                       ; +0x55, 0x1002165e5\nmov     rsi, rax                                                       ; +0x58, 0x1002165e8\nxor     edx, edx                                                       ; +0x5b, 0x1002165eb\nmov     ecx, 1                                                         ; +0x5d, 0x1002165ed\npop     rbx                                                            ; +0x62, 0x1002165f2\npop     r14                                                            ; +0x63, 0x1002165f3\npop     rbp                                                            ; +0x65, 0x1002165f5\njmp     DailyLevelPage__createDailyNode                                ; +0x66, 0x1002165f6\npop     rbx                                                            ; +0x6b, 0x1002165fb\npop     r14                                                            ; +0x6c, 0x1002165fc\npop     rbp                                                            ; +0x6e, 0x1002165fe\nretn                                                                   ; +0x6f, 0x1002165ff\nmov     rdi, [rbx+2C0h]                                                ; +0x70, 0x100216600\nmov     rax, [rdi]                                                     ; +0x77, 0x100216607\nmov     rax, [rax+158h]                                                ; +0x7a, 0x10021660a\nmov     esi, 1                                                         ; +0x81, 0x100216611\npop     rbx                                                            ; +0x86, 0x100216616\npop     r14                                                            ; +0x87, 0x100216617\npop     rbp                                                            ; +0x89, 0x100216619\njmp     rax                                                            ; +0x8a, 0x10021661a", "xrefs": ["DailyLevelPage::dailyStatusFinished @ 0x100215f36", "DailyLevelPage::downloadAndCreateNode @ 0x100216158", "DailyLevelPage::claimLevelReward @ 0x100216b0d", "DailyLevelPage::skipDailyLevel @ 0x100216c11"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}