{"type": "func", "start": 4297393168, "end": 4297393316, "name": "DailyLevelPage::createNodeIfLoaded", "pseudocode": "// \n// DailyLevelPage::createNodeIfLoaded from 0x100250410 to 0x1002504a4 (148 bytes)\n// \n// 2 xrefs:\n// > DailyLevelPage::downloadAndCreateNode @ 0x10025008c\n// > DailyLevelPage::skipDailyLevel @ 0x10025095c\n// \n// This function is hookable on this platform (idp: arm, 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 11:01:31 +0000\n// \n\n__int64 __fastcall DailyLevelPage::createNodeIfLoaded(__int64 a1)\n{\n  unsigned int *v2; // x0\n  __int64 result; // x0\n  __int64 v4; // x20\n  unsigned int *v5; // x0\n  int v6; // w0\n  __int64 SavedDailyLevel; // x0\n\n  *(_BYTE *)(a1 + 728) = 0;\n  v2 = (unsigned int *)GameLevelManager::sharedState();\n  result = sub_1000CD764(v2, *(_DWORD *)(a1 + 732));\n  if ( (int)result >= 1 )\n  {\n    v4 = GameLevelManager::sharedState();\n    v5 = (unsigned int *)GameLevelManager::sharedState();\n    v6 = sub_1000CD764(v5, *(_DWORD *)(a1 + 732));\n    SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v4, v6);\n    if ( SavedDailyLevel )\n      return DailyLevelPage::createDailyNode(a1, SavedDailyLevel, 0, 1, 0.0);\n    else\n      return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 1);\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::createNodeIfLoaded from 0x100250410 to 0x1002504a4 (148 bytes)\n; \n; 2 xrefs:\n; > DailyLevelPage::downloadAndCreateNode @ 0x10025008c\n; > DailyLevelPage::skipDailyLevel @ 0x10025095c\n; \n; This function is hookable on this platform (idp: arm, 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 11:01:31 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100250410\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100250414\nADD             X29, SP, #0x10                                         ; +0x8, 0x100250418\nMOV             X19, X0                                                ; +0xc, 0x10025041c\nSTRB            WZR, [X0,#0x2D8]                                       ; +0x10, 0x100250420\nBL              GameLevelManager__sharedState                          ; +0x14, 0x100250424\nLDR             W1, [X19,#0x2DC]                                       ; +0x18, 0x100250428\nBL              sub_1000CD764                                          ; +0x1c, 0x10025042c\nCMP             W0, #1                                                 ; +0x20, 0x100250430\nB.LT            loc_10025047C                                          ; +0x24, 0x100250434\nBL              GameLevelManager__sharedState                          ; +0x28, 0x100250438\nMOV             X20, X0                                                ; +0x2c, 0x10025043c\nBL              GameLevelManager__sharedState                          ; +0x30, 0x100250440\nLDR             W1, [X19,#0x2DC]                                       ; +0x34, 0x100250444\nBL              sub_1000CD764                                          ; +0x38, 0x100250448\nMOV             X1, X0                                                 ; +0x3c, 0x10025044c\nMOV             X0, X20                                                ; +0x40, 0x100250450\nBL              GameLevelManager__getSavedDailyLevel                   ; +0x44, 0x100250454\nCBZ             X0, loc_100250488                                      ; +0x48, 0x100250458\nMOV             X1, X0                                                 ; +0x4c, 0x10025045c\nFMOV            S0, WZR                                                ; +0x50, 0x100250460\nMOV             X0, X19                                                ; +0x54, 0x100250464\nMOV             W2, #0                                                 ; +0x58, 0x100250468\nMOV             W3, #1                                                 ; +0x5c, 0x10025046c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x100250470\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x100250474\nB               DailyLevelPage__createDailyNode                        ; +0x68, 0x100250478\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x10025047c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x100250480\nRET                                                                    ; +0x74, 0x100250484\nLDR             X0, [X19,#0x2C0]                                       ; +0x78, 0x100250488\nLDR             X8, [X0]                                               ; +0x7c, 0x10025048c\nLDR             X2, [X8,#0x158]                                        ; +0x80, 0x100250490\nMOV             W1, #1                                                 ; +0x84, 0x100250494\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x100250498\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10025049c\nBR              X2                                                     ; +0x90, 0x1002504a0", "xrefs": ["DailyLevelPage::downloadAndCreateNode @ 0x10025008c", "DailyLevelPage::skipDailyLevel @ 0x10025095c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}