{"type": "func", "start": 4297155696, "end": 4297155867, "name": "DailyLevelPage::levelDownloadFinished", "pseudocode": "// \n// DailyLevelPage::levelDownloadFinished from 0x100216470 to 0x10021651b (171 bytes)\n// \n// 2 xrefs:\n// > sub_100216520 @ 0x10021652c\n// > <???> @ 0x100ae6608\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::levelDownloadFinished(__int64 a1, __int64 a2, double a3)\n{\n  int v3; // r15d\n  bool v4; // cc\n  int v5; // r15d\n  __int64 v6; // rax\n  int v7; // r15d\n  __int64 v8; // rax\n  _QWORD *result; // rax\n\n  if ( a2 )\n  {\n    v3 = *(_DWORD *)(a2 + 920);\n    v4 = v3 <= *(_DWORD *)(a2 + 924);\n    v5 = v3 - *(_DWORD *)(a2 + 924);\n    if ( !v4 )\n    {\n      v6 = GameLevelManager::sharedState(a3);\n      if ( v5 == (unsigned int)GameLevelManager::getDailyID(v6, *(unsigned int *)(a1 + 732))\n        || (v7 = *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924),\n            v8 = GameLevelManager::sharedState(a3),\n            result = (_QWORD *)GameLevelManager::getActiveDailyID(v8, *(unsigned int *)(a1 + 732)),\n            v7 == (_DWORD)result) )\n      {\n        result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(\n                             *(_QWORD *)(a1 + 704),\n                             0);\n        if ( !*(_BYTE *)(a1 + 728) )\n          return DailyLevelPage::createDailyNode(a1, a2, 0, 1u, 0.0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelPage::levelDownloadFinished from 0x100216470 to 0x10021651b (171 bytes)\n; \n; 2 xrefs:\n; > sub_100216520 @ 0x10021652c\n; > <???> @ 0x100ae6608\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, 0x100216470\nmov     rbp, rsp                                                       ; +0x1, 0x100216471\npush    r15                                                            ; +0x4, 0x100216474\npush    r14                                                            ; +0x6, 0x100216476\npush    rbx                                                            ; +0x8, 0x100216478\npush    rax                                                            ; +0x9, 0x100216479\ntest    rsi, rsi                                                       ; +0xa, 0x10021647a\njz      short loc_1002164F1                                            ; +0xd, 0x10021647d\nmov     rbx, rsi                                                       ; +0xf, 0x10021647f\nmov     r15d, [rsi+398h]                                               ; +0x12, 0x100216482\nsub     r15d, [rsi+39Ch]                                               ; +0x19, 0x100216489\njle     short loc_1002164F1                                            ; +0x20, 0x100216490\nmov     r14, rdi                                                       ; +0x22, 0x100216492\ncall    GameLevelManager__sharedState                                  ; +0x25, 0x100216495\nmov     esi, [r14+2DCh]                                                ; +0x2a, 0x10021649a\nmov     rdi, rax                                                       ; +0x31, 0x1002164a1\ncall    GameLevelManager__getDailyID                                   ; +0x34, 0x1002164a4\ncmp     r15d, eax                                                      ; +0x39, 0x1002164a9\njz      short loc_1002164D5                                            ; +0x3c, 0x1002164ac\nmov     r15d, [rbx+398h]                                               ; +0x3e, 0x1002164ae\nsub     r15d, [rbx+39Ch]                                               ; +0x45, 0x1002164b5\ncall    GameLevelManager__sharedState                                  ; +0x4c, 0x1002164bc\nmov     esi, [r14+2DCh]                                                ; +0x51, 0x1002164c1\nmov     rdi, rax                                                       ; +0x58, 0x1002164c8\ncall    GameLevelManager__getActiveDailyID                             ; +0x5b, 0x1002164cb\ncmp     r15d, eax                                                      ; +0x60, 0x1002164d0\njnz     short loc_1002164F1                                            ; +0x63, 0x1002164d3\nmov     rdi, [r14+2C0h]                                                ; +0x65, 0x1002164d5\nmov     rax, [rdi]                                                     ; +0x6c, 0x1002164dc\nxor     esi, esi                                                       ; +0x6f, 0x1002164df\ncall    qword ptr [rax+158h]                                           ; +0x71, 0x1002164e1\ncmp     byte ptr [r14+2D8h], 0                                         ; +0x77, 0x1002164e7\njz      short loc_1002164FC                                            ; +0x7f, 0x1002164ef\nadd     rsp, 8                                                         ; +0x81, 0x1002164f1\npop     rbx                                                            ; +0x85, 0x1002164f5\npop     r14                                                            ; +0x86, 0x1002164f6\npop     r15                                                            ; +0x88, 0x1002164f8\npop     rbp                                                            ; +0x8a, 0x1002164fa\nretn                                                                   ; +0x8b, 0x1002164fb\nxorps   xmm0, xmm0                                                     ; +0x8c, 0x1002164fc\nmov     rdi, r14                                                       ; +0x8f, 0x1002164ff\nmov     rsi, rbx                                                       ; +0x92, 0x100216502\nxor     edx, edx                                                       ; +0x95, 0x100216505\nmov     ecx, 1                                                         ; +0x97, 0x100216507\nadd     rsp, 8                                                         ; +0x9c, 0x10021650c\npop     rbx                                                            ; +0xa0, 0x100216510\npop     r14                                                            ; +0xa1, 0x100216511\npop     r15                                                            ; +0xa3, 0x100216513\npop     rbp                                                            ; +0xa5, 0x100216515\njmp     DailyLevelPage__createDailyNode                                ; +0xa6, 0x100216516", "xrefs": ["sub_100216520 @ 0x10021652c", "<???> @ 0x100ae6608"], "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"}