{"type": "func", "start": 6322992, "end": 6323094, "name": "DailyLevelPage::levelDownloadFinished", "pseudocode": "// \n// DailyLevelPage::levelDownloadFinished from 0x607b30 to 0x607b96 (102 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'DailyLevelPage::levelDownloadFinished @ 0x607b9a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:45 +0000\n// \n\nint *__fastcall DailyLevelPage::levelDownloadFinished(int *this, GJGameLevel *a2)\n{\n  int *v2; // r5\n  int v4; // r6\n  _DWORD *v5; // r0\n  GameLevelManager *DailyID; // r0\n  int v7; // r6\n  _DWORD *v8; // r0\n\n  v2 = this;\n  if ( a2 )\n  {\n    v4 = *((_DWORD *)a2 + 186) - *((_DWORD *)a2 + 187);\n    if ( v4 > 0 )\n    {\n      v5 = (_DWORD *)GameLevelManager::sharedState((GameLevelManager *)this);\n      DailyID = (GameLevelManager *)GameLevelManager::getDailyID(v5, v2[139]);\n      if ( (GameLevelManager *)v4 == DailyID\n        || (v7 = *((_DWORD *)a2 + 186) - *((_DWORD *)a2 + 187),\n            v8 = (_DWORD *)GameLevelManager::sharedState(DailyID),\n            this = (int *)GameLevelManager::getActiveDailyID(v8, v2[139]),\n            (int *)v7 == this) )\n      {\n        this = (int *)(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v2[135] + 172))(v2[135], 0);\n        if ( !*((_BYTE *)v2 + 552) )\n          return DailyLevelPage::createDailyNode(\n                   (DailyLevelPage *)v2,\n                   a2,\n                   *((unsigned __int8 *)v2 + 552),\n                   nullptr,\n                   (DailyLevelPage *)((char *)&dword_0 + 1));\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; DailyLevelPage::levelDownloadFinished from 0x607b30 to 0x607b96 (102 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'DailyLevelPage::levelDownloadFinished @ 0x607b9a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:54:45 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x607b30\nMOV             R5, R0                                                 ; +0x2, 0x607b32\nMOV             R4, R1                                                 ; +0x4, 0x607b34\nCBZ             R1, loc_607B92                                         ; +0x6, 0x607b36\nLDR.W           R3, [R1,#0x2E8]                                        ; +0x8, 0x607b38\nLDR.W           R6, [R1,#0x2EC]                                        ; +0xc, 0x607b3c\nSUBS            R6, R3, R6                                             ; +0x10, 0x607b40\nCMP             R6, #0                                                 ; +0x12, 0x607b42\nBLE             loc_607B92                                             ; +0x14, 0x607b44\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x16, 0x607b46\nLDR.W           R1, [R5,#0x22C]                                        ; +0x1a, 0x607b4a\nBL              _ZN16GameLevelManager10getDailyIDE16GJTimedLevelType; GameLevelManager::getDailyID(GJTimedLevelType) ; +0x1e, 0x607b4e\nCMP             R6, R0                                                 ; +0x22, 0x607b52\nBEQ             loc_607B70                                             ; +0x24, 0x607b54\nLDR.W           R3, [R4,#0x2E8]                                        ; +0x26, 0x607b56\nLDR.W           R6, [R4,#0x2EC]                                        ; +0x2a, 0x607b5a\nSUBS            R6, R3, R6                                             ; +0x2e, 0x607b5e\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x30, 0x607b60\nLDR.W           R1, [R5,#0x22C]                                        ; +0x34, 0x607b64\nBL              _ZN16GameLevelManager16getActiveDailyIDE16GJTimedLevelType; GameLevelManager::getActiveDailyID(GJTimedLevelType) ; +0x38, 0x607b68\nCMP             R6, R0                                                 ; +0x3c, 0x607b6c\nBNE             loc_607B92                                             ; +0x3e, 0x607b6e\nLDR.W           R0, [R5,#0x21C]                                        ; +0x40, 0x607b70\nMOVS            R1, #0                                                 ; +0x44, 0x607b74\nLDR             R3, [R0]                                               ; +0x46, 0x607b76\nLDR.W           R3, [R3,#0xAC]                                         ; +0x48, 0x607b78\nBLX             R3                                                     ; +0x4c, 0x607b7c\nLDRB.W          R2, [R5,#0x228]; bool                                  ; +0x4e, 0x607b7e\nCBNZ            R2, loc_607B92                                         ; +0x52, 0x607b82\nMOVS            R3, #(dword_0+1)                                       ; +0x54, 0x607b84\nMOV             R0, R5; this                                           ; +0x56, 0x607b86\nSTR             R3, [SP,#8+var_8]; DailyLevelPage *                    ; +0x58, 0x607b88\nMOV             R1, R4; GJGameLevel *                                  ; +0x5a, 0x607b8a\nMOVS            R3, #0; float                                          ; +0x5c, 0x607b8c\nBL              _ZN14DailyLevelPage15createDailyNodeEP11GJGameLevelbfb; DailyLevelPage::createDailyNode(GJGameLevel *,bool,float,bool) ; +0x5e, 0x607b8e\nADD             SP, SP, #8                                             ; +0x62, 0x607b92\nPOP             {R4-R6,PC}                                             ; +0x64, 0x607b94", "xrefs": ["`non-virtual thunk to'DailyLevelPage::levelDownloadFinished @ 0x607b9a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}