{"type": "func", "start": 4297392916, "end": 4297393096, "name": "DailyLevelPage::levelDownloadFinished", "pseudocode": "// \n// DailyLevelPage::levelDownloadFinished from 0x100250314 to 0x1002503c8 (180 bytes)\n// \n// 2 xrefs:\n// > sub_1002503C8 @ 0x1002503cc\n// > <???> @ 0x10090c148\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::levelDownloadFinished(__int64 result, __int64 a2)\n{\n  int v3; // w21\n  __int64 v4; // x20\n  unsigned int *v5; // x0\n  int v6; // w21\n  unsigned int *v7; // x0\n\n  if ( a2 )\n  {\n    v3 = *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924);\n    if ( v3 >= 1 )\n    {\n      v4 = result;\n      v5 = (unsigned int *)GameLevelManager::sharedState();\n      if ( v3 == (unsigned int)sub_1000CD764(v5, *(_DWORD *)(v4 + 732))\n        || (v6 = *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924),\n            v7 = (unsigned int *)GameLevelManager::sharedState(),\n            result = GameLevelManager::getActiveDailyID(v7, *(_DWORD *)(v4 + 732)),\n            v6 == (_DWORD)result) )\n      {\n        result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v4 + 704) + 344LL))(*(_QWORD *)(v4 + 704), 0);\n        if ( (*(_BYTE *)(v4 + 728) & 1) == 0 )\n          return DailyLevelPage::createDailyNode(v4, a2, 0, 1, 0.0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::levelDownloadFinished from 0x100250314 to 0x1002503c8 (180 bytes)\n; \n; 2 xrefs:\n; > sub_1002503C8 @ 0x1002503cc\n; > <???> @ 0x10090c148\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100250314\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100250318\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10025031c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100250320\nCBZ             X1, loc_100250394                                      ; +0x10, 0x100250324\nMOV             X19, X1                                                ; +0x14, 0x100250328\nLDR             W8, [X1,#0x398]                                        ; +0x18, 0x10025032c\nLDR             W9, [X1,#0x39C]                                        ; +0x1c, 0x100250330\nSUB             W21, W8, W9                                            ; +0x20, 0x100250334\nCMP             W21, #1                                                ; +0x24, 0x100250338\nB.LT            loc_100250394                                          ; +0x28, 0x10025033c\nMOV             X20, X0                                                ; +0x2c, 0x100250340\nBL              GameLevelManager__sharedState                          ; +0x30, 0x100250344\nLDR             W1, [X20,#0x2DC]                                       ; +0x34, 0x100250348\nBL              sub_1000CD764                                          ; +0x38, 0x10025034c\nCMP             W21, W0                                                ; +0x3c, 0x100250350\nB.EQ            loc_100250378                                          ; +0x40, 0x100250354\nLDR             W8, [X19,#0x398]                                       ; +0x44, 0x100250358\nLDR             W9, [X19,#0x39C]                                       ; +0x48, 0x10025035c\nSUB             W21, W8, W9                                            ; +0x4c, 0x100250360\nBL              GameLevelManager__sharedState                          ; +0x50, 0x100250364\nLDR             W1, [X20,#0x2DC]                                       ; +0x54, 0x100250368\nBL              GameLevelManager__getActiveDailyID                     ; +0x58, 0x10025036c\nCMP             W21, W0                                                ; +0x5c, 0x100250370\nB.NE            loc_100250394                                          ; +0x60, 0x100250374\nLDR             X0, [X20,#0x2C0]                                       ; +0x64, 0x100250378\nLDR             X8, [X0]                                               ; +0x68, 0x10025037c\nLDR             X8, [X8,#0x158]                                        ; +0x6c, 0x100250380\nMOV             W1, #0                                                 ; +0x70, 0x100250384\nBLR             X8                                                     ; +0x74, 0x100250388\nLDRB            W8, [X20,#0x2D8]                                       ; +0x78, 0x10025038c\nTBZ             W8, #0, loc_1002503A4                                  ; +0x7c, 0x100250390\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x100250394\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x100250398\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x10025039c\nRET                                                                    ; +0x8c, 0x1002503a0\nFMOV            S0, WZR                                                ; +0x90, 0x1002503a4\nMOV             X0, X20                                                ; +0x94, 0x1002503a8\nMOV             X1, X19                                                ; +0x98, 0x1002503ac\nMOV             W2, #0                                                 ; +0x9c, 0x1002503b0\nMOV             W3, #1                                                 ; +0xa0, 0x1002503b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x1002503b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x1002503bc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xac, 0x1002503c0\nB               DailyLevelPage__createDailyNode                        ; +0xb0, 0x1002503c4", "xrefs": ["sub_1002503C8 @ 0x1002503cc", "<???> @ 0x10090c148"], "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"}