{"type": "func", "start": 6322652, "end": 6322980, "name": "DailyLevelPage::createDailyNode", "pseudocode": "// \n// DailyLevelPage::createDailyNode from 0x6079dc to 0x607b24 (328 bytes)\n// \n// 5 xrefs:\n// > DailyLevelPage::levelDownloadFinished @ 0x607b8e\n// > DailyLevelPage::createNodeIfLoaded @ 0x607be0\n// > DailyLevelPage::claimLevelReward @ 0x607cd2\n// > DailyLevelPage::refreshDailyPage @ 0x607d24\n// > DailyLevelPage::init @ 0x608a30\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::createDailyNode(\n        DailyLevelPage *this,\n        GJGameLevel *a2,\n        int a3,\n        cocos2d::CCDelayTime *a4,\n        DailyLevelPage *a5)\n{\n  bool v9; // r3\n  int *v10; // r4\n  int (__fastcall *v11)(int *, _BYTE *); // r11\n  GameLevelManager *v12; // r0\n  _DWORD *v13; // r0\n  const cocos2d::CCPoint *v14; // r0\n  cocos2d::CCDirector *v15; // r0\n  void (__fastcall *v16)(int *, _BYTE *); // r11\n  cocos2d::CCDirector *v17; // r0\n  float v18; // r0\n  float v19; // r1\n  cocos2d::CCShow *v20; // r10\n  cocos2d::CCFiniteTimeAction *v21; // r7\n  const cocos2d::CCPoint *v22; // r2\n  cocos2d::CCEaseElasticOut *v23; // r0\n  float v24; // r2\n  int v25; // r0\n  cocos2d::CCAction *v26; // r0\n  float v28[2]; // [sp+4h] [bp-20h] BYREF\n  _BYTE v29[4]; // [sp+Ch] [bp-18h] BYREF\n  float v30; // [sp+10h] [bp-14h]\n  _BYTE v31[8]; // [sp+14h] [bp-10h] BYREF\n\n  if ( *((_DWORD *)this + 137) )\n    return nullptr;\n  cocos2d::CCDirector::sharedDirector(this);\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v28);\n  v10 = DailyLevelNode::create(a2, this, (DailyLevelPage *)(unsigned __int8)a5, v9);\n  (*(void (__fastcall **)(_DWORD, int *))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v10);\n  v11 = *(int (__fastcall **)(int *, _BYTE *))(*v10 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v28[0] * 0.5, (float)(v28[1] * 0.5) - 8.0);\n  v12 = (GameLevelManager *)v11(v10, v31);\n  if ( a2 )\n  {\n    v13 = (_DWORD *)GameLevelManager::sharedState(v12);\n    if ( GameLevelManager::getDailyID(v13, *((_DWORD *)this + 139)) > *((_DWORD *)a2 + 186) - *((_DWORD *)a2 + 187) )\n      DailyLevelNode::showSkipButton((DailyLevelNode *)v10);\n  }\n  if ( !a3 )\n  {\n    (*(void (__fastcall **)(int *, _DWORD))(*v10 + 172))(v10, 0);\n    v14 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int *))(*v10 + 96))(v10);\n    v15 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v14);\n    v16 = *(void (__fastcall **)(int *, _BYTE *))(*v10 + 92);\n    v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15);\n    v18 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v17));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v18 + 180.0, v30);\n    v16(v10, v31);\n    v20 = (cocos2d::CCShow *)cocos2d::CCDelayTime::create(a4, v19);\n    v21 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCShow::create(v20);\n    v23 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(\n                                         (cocos2d::CCMoveTo *)0x3F000000,\n                                         COERCE_FLOAT(v29),\n                                         v22);\n    v25 = cocos2d::CCEaseElasticOut::create(v23, (cocos2d::CCActionInterval *)0x3F19999A, v24);\n    v26 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v20, v21, v25, 0);\n    cocos2d::CCNode::runAction((cocos2d::CCNode *)v10, v26);\n  }\n  *((_DWORD *)this + 137) = v10;\n  return v10;\n}", "assembly": "; \n; DailyLevelPage::createDailyNode from 0x6079dc to 0x607b24 (328 bytes)\n; \n; 5 xrefs:\n; > DailyLevelPage::levelDownloadFinished @ 0x607b8e\n; > DailyLevelPage::createNodeIfLoaded @ 0x607be0\n; > DailyLevelPage::claimLevelReward @ 0x607cd2\n; > DailyLevelPage::refreshDailyPage @ 0x607d24\n; > DailyLevelPage::init @ 0x608a30\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.W          {R4-R11,LR}                                            ; +0x0, 0x6079dc\nMOV             R10, R3                                                ; +0x4, 0x6079e0\nLDR             R3, =(__stack_chk_guard_ptr - 0x6079EE)                ; +0x6, 0x6079e2\nMOV             R9, R2                                                 ; +0x8, 0x6079e4\nSUB             SP, SP, #0x24                                          ; +0xa, 0x6079e6\nMOV             R6, R0                                                 ; +0xc, 0x6079e8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xe, 0x6079ea\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x10, 0x6079ec\nMOV             R8, R1                                                 ; +0x12, 0x6079ee\nLDR             R2, [R3]                                               ; +0x14, 0x6079f0\nMOV             R5, R3                                                 ; +0x16, 0x6079f2\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x18, 0x6079f4\nLDR.W           R2, [R0,#0x224]                                        ; +0x1a, 0x6079f6\nCMP             R2, #0                                                 ; +0x1e, 0x6079fa\nBNE.W           loc_607B08                                             ; +0x20, 0x6079fc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x607a00\nADD             R7, SP, #0x24+var_10                                   ; +0x28, 0x607a04\nMOV             R1, R0                                                 ; +0x2a, 0x607a06\nADD             R0, SP, #0x24+var_20; this                             ; +0x2c, 0x607a08\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x607a0a\nLDRB.W          R2, [SP,#0x24+arg_0]; DailyLevelPage *                 ; +0x32, 0x607a0e\nMOV             R1, R6; GJGameLevel *                                  ; +0x36, 0x607a12\nMOV             R0, R8; this                                           ; +0x38, 0x607a14\nBL              _ZN14DailyLevelNode6createEP11GJGameLevelP14DailyLevelPageb; DailyLevelNode::create(GJGameLevel *,DailyLevelPage *,bool) ; +0x3a, 0x607a16\nMOV             R4, R0                                                 ; +0x3e, 0x607a1a\nLDR.W           R0, [R6,#0x1CC]                                        ; +0x40, 0x607a1c\nMOV             R1, R4                                                 ; +0x44, 0x607a20\nLDR             R3, [R0]                                               ; +0x46, 0x607a22\nLDR.W           R3, [R3,#0xE4]                                         ; +0x48, 0x607a24\nBLX             R3                                                     ; +0x4c, 0x607a28\nVMOV.F32        S15, #0.5                                              ; +0x4e, 0x607a2a\nVLDR            S14, [SP,#0x24+var_20]                                 ; +0x52, 0x607a2e\nMOV             R0, R7; this                                           ; +0x56, 0x607a32\nLDR             R3, [R4]                                               ; +0x58, 0x607a34\nVLDR            S13, [SP,#0x24+var_1C]                                 ; +0x5a, 0x607a36\nLDR.W           R11, [R3,#0x5C]                                        ; +0x5e, 0x607a3a\nVMUL.F32        S14, S14, S15                                          ; +0x62, 0x607a3e\nVMOV            R1, S14; float                                         ; +0x66, 0x607a42\nVMOV.F32        S14, #8.0                                              ; +0x6a, 0x607a46\nVNMLS.F32       S14, S13, S15                                          ; +0x6e, 0x607a4a\nVMOV            R2, S14; float                                         ; +0x72, 0x607a4e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x76, 0x607a52\nMOV             R0, R4                                                 ; +0x7a, 0x607a56\nMOV             R1, R7                                                 ; +0x7c, 0x607a58\nBLX             R11                                                    ; +0x7e, 0x607a5a\nCMP.W           R8, #0                                                 ; +0x80, 0x607a5c\nBEQ             loc_607A7C                                             ; +0x84, 0x607a60\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x86, 0x607a62\nLDR.W           R1, [R6,#0x22C]                                        ; +0x8a, 0x607a66\nBL              _ZN16GameLevelManager10getDailyIDE16GJTimedLevelType; GameLevelManager::getDailyID(GJTimedLevelType) ; +0x8e, 0x607a6a\nLDR.W           R3, [R8,#0x2E8]                                        ; +0x92, 0x607a6e\nLDR.W           R2, [R8,#0x2EC]                                        ; +0x96, 0x607a72\nSUBS            R3, R3, R2                                             ; +0x9a, 0x607a76\nCMP             R0, R3                                                 ; +0x9c, 0x607a78\nBGT             loc_607B16                                             ; +0x9e, 0x607a7a\nCMP.W           R9, #0                                                 ; +0xa0, 0x607a7c\nBNE             loc_607B00                                             ; +0xa4, 0x607a80\nLDR             R3, [R4]                                               ; +0xa6, 0x607a82\nMOV             R1, R9                                                 ; +0xa8, 0x607a84\nMOV             R0, R4                                                 ; +0xaa, 0x607a86\nADD.W           R8, SP, #0x24+var_18                                   ; +0xac, 0x607a88\nLDR.W           R3, [R3,#0xAC]                                         ; +0xb0, 0x607a8c\nBLX             R3                                                     ; +0xb4, 0x607a90\nLDR             R3, [R4]                                               ; +0xb6, 0x607a92\nMOV             R0, R4                                                 ; +0xb8, 0x607a94\nLDR             R3, [R3,#0x60]                                         ; +0xba, 0x607a96\nBLX             R3                                                     ; +0xbc, 0x607a98\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xbe, 0x607a9a\nMOV             R0, R8; this                                           ; +0xc0, 0x607a9c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x607a9e\nLDR             R3, [R4]                                               ; +0xc6, 0x607aa2\nLDR.W           R11, [R3,#0x5C]                                        ; +0xc8, 0x607aa4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xcc, 0x607aa8\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0xd0, 0x607aac\nVLDR            S15, =180.0                                            ; +0xd4, 0x607ab0\nLDR             R2, [SP,#0x24+var_14]; float                           ; +0xd8, 0x607ab4\nVMOV            S14, R0                                                ; +0xda, 0x607ab6\nMOV             R0, R7; this                                           ; +0xde, 0x607aba\nVADD.F32        S15, S14, S15                                          ; +0xe0, 0x607abc\nVMOV            R1, S15; float                                         ; +0xe4, 0x607ac0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x607ac4\nMOV             R1, R7                                                 ; +0xec, 0x607ac8\nMOV             R0, R4                                                 ; +0xee, 0x607aca\nBLX             R11                                                    ; +0xf0, 0x607acc\nMOV             R0, R10; this                                          ; +0xf2, 0x607ace\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0xf4, 0x607ad0\nMOV             R10, R0                                                ; +0xf8, 0x607ad4\nBL              _ZN7cocos2d6CCShow6createEv; cocos2d::CCShow::create(void) ; +0xfa, 0x607ad6\nMOV             R1, R8; float                                          ; +0xfe, 0x607ada\nMOV             R7, R0                                                 ; +0x100, 0x607adc\nMOV.W           R0, #0x3F000000; this                                  ; +0x102, 0x607ade\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x106, 0x607ae2\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x10a, 0x607ae6\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x10c, 0x607ae8\nMOV             R1, R7; cocos2d::CCFiniteTimeAction *                  ; +0x110, 0x607aec\nMOV             R3, R9                                                 ; +0x112, 0x607aee\nMOV             R2, R0                                                 ; +0x114, 0x607af0\nMOV             R0, R10; this                                          ; +0x116, 0x607af2\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x118, 0x607af4\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x11c, 0x607af8\nMOV             R0, R4; this                                           ; +0x11e, 0x607afa\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x120, 0x607afc\nSTR.W           R4, [R6,#0x224]                                        ; +0x124, 0x607b00\nMOV             R0, R4                                                 ; +0x128, 0x607b04\nB               loc_607B0A                                             ; +0x12a, 0x607b06\nMOVS            R0, #0                                                 ; +0x12c, 0x607b08\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x12e, 0x607b0a\nLDR             R3, [R5]                                               ; +0x130, 0x607b0c\nCMP             R2, R3                                                 ; +0x132, 0x607b0e\nBEQ             loc_607B1E                                             ; +0x134, 0x607b10\nBLX             __stack_chk_fail                                       ; +0x136, 0x607b12\nMOV             R0, R4; this                                           ; +0x13a, 0x607b16\nBL              _ZN14DailyLevelNode14showSkipButtonEv; DailyLevelNode::showSkipButton(void) ; +0x13c, 0x607b18\nB               loc_607A7C                                             ; +0x140, 0x607b1c\nADD             SP, SP, #0x24 ; '$'                                    ; +0x142, 0x607b1e\nPOP.W           {R4-R11,PC}                                            ; +0x144, 0x607b20", "xrefs": ["DailyLevelPage::levelDownloadFinished @ 0x607b8e", "DailyLevelPage::createNodeIfLoaded @ 0x607be0", "DailyLevelPage::claimLevelReward @ 0x607cd2", "DailyLevelPage::refreshDailyPage @ 0x607d24", "DailyLevelPage::init @ 0x608a30"], "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"}