{"type": "func", "start": 5065644, "end": 5065972, "name": "DailyLevelPage::createDailyNode", "pseudocode": "// \n// DailyLevelPage::createDailyNode from 0x4d4bac to 0x4d4cf4 (328 bytes)\n// \n// 5 xrefs:\n// > DailyLevelPage::init @ 0x4d543e\n// > DailyLevelPage::levelDownloadFinished @ 0x4d5674\n// > DailyLevelPage::createNodeIfLoaded @ 0x4d56c6\n// > DailyLevelPage::claimLevelReward @ 0x4d57b6\n// > DailyLevelPage::refreshDailyPage @ 0x4d58c0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid DailyLevelPage::createDailyNode(DailyLevelPage *a1, GJGameLevel *a2, bool a3, float a4, bool a5)\n{\n  _BOOL4 v6; // r9\n  cocos2d::CCDirector *v9; // r0\n  DailyLevelNode *v10; // r4\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11\n  GameLevelManager *v12; // r0\n  const cocos2d::CCPoint *v13; // r0\n  void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11\n  cocos2d::CCDirector *v15; // r0\n  float v16; // r0\n  cocos2d::CCSequence *v17; // r10\n  cocos2d::CCShow *v18; // r7\n  cocos2d::CCEaseElasticOut *v19; // r0\n  float v20; // r2\n  int v21; // r0\n  cocos2d::CCAction *v22; // r0\n  cocos2d::CCSize v23; // [sp+4h] [bp-20h] BYREF\n  cocos2d::CCPoint v24; // [sp+Ch] [bp-18h] BYREF\n  cocos2d::CCPoint v25; // [sp+14h] [bp-10h] BYREF\n\n  v6 = a3;\n  if ( !a1->m_dailyNode )\n  {\n    v9 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v23, v9);\n    v10 = DailyLevelNode::create(a2, a1, a5);\n    a1->m_mainLayer->addChild(a1->m_mainLayer, v10);\n    setPosition = v10->setPosition;\n    cocos2d::CCPoint::CCPoint(&v25, v23.width * 0.5, (float)(v23.height * 0.5) - 8.0);\n    setPosition(v10, &v25);\n    if ( a2 )\n    {\n      v12 = GameLevelManager::sharedState();\n      if ( GameLevelManager::getDailyID(v12, a1->m_type) > a2->m_dailyID.random - a2->m_dailyID.seed )\n        DailyLevelNode::showSkipButton(v10);\n    }\n    if ( !v6 )\n    {\n      v10->setVisible(v10, 0);\n      v13 = v10->getPosition(v10);\n      cocos2d::CCPoint::CCPoint(&v24, v13);\n      v14 = v10->setPosition;\n      v15 = cocos2d::CCDirector::sharedDirector();\n      v16 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v15));\n      cocos2d::CCPoint::CCPoint(&v25, v16 + 180.0, v24.y);\n      v14(v10, &v25);\n      v17 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a4);\n      v18 = cocos2d::CCShow::create();\n      v19 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v24);\n      v21 = cocos2d::CCEaseElasticOut::create(v19, (cocos2d::CCActionInterval *)0x3F19999A, v20);\n      v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v17, v18, v21, 0);\n      cocos2d::CCNode::runAction(v10, v22);\n    }\n    a1->m_dailyNode = v10;\n  }\n}", "assembly": "; \n; DailyLevelPage::createDailyNode from 0x4d4bac to 0x4d4cf4 (328 bytes)\n; \n; 5 xrefs:\n; > DailyLevelPage::init @ 0x4d543e\n; > DailyLevelPage::levelDownloadFinished @ 0x4d5674\n; > DailyLevelPage::createNodeIfLoaded @ 0x4d56c6\n; > DailyLevelPage::claimLevelReward @ 0x4d57b6\n; > DailyLevelPage::refreshDailyPage @ 0x4d58c0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x4d4bac\nMOV             R10, R3                                                ; +0x4, 0x4d4bb0\nLDR             R3, =(__stack_chk_guard_ptr - 0x4D4BBE)                ; +0x6, 0x4d4bb2\nMOV             R9, R2                                                 ; +0x8, 0x4d4bb4\nSUB             SP, SP, #0x24                                          ; +0xa, 0x4d4bb6\nMOV             R6, R0                                                 ; +0xc, 0x4d4bb8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4d4bba\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x10, 0x4d4bbc\nMOV             R8, R1                                                 ; +0x12, 0x4d4bbe\nLDR             R2, [R3]                                               ; +0x14, 0x4d4bc0\nMOV             R5, R3                                                 ; +0x16, 0x4d4bc2\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x18, 0x4d4bc4\nLDR.W           R2, [R0,#0x20C]                                        ; +0x1a, 0x4d4bc6\nCMP             R2, #0                                                 ; +0x1e, 0x4d4bca\nBNE.W           loc_4D4CD8                                             ; +0x20, 0x4d4bcc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x4d4bd0\nADD             R7, SP, #0x24+var_10                                   ; +0x28, 0x4d4bd4\nMOV             R1, R0                                                 ; +0x2a, 0x4d4bd6\nADD             R0, SP, #0x24+var_20; this                             ; +0x2c, 0x4d4bd8\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x4d4bda\nLDRB.W          R2, [SP,#0x24+arg_0]; DailyLevelPage *                 ; +0x32, 0x4d4bde\nMOV             R1, R6; GJGameLevel *                                  ; +0x36, 0x4d4be2\nMOV             R0, R8; this                                           ; +0x38, 0x4d4be4\nBL              _ZN14DailyLevelNode6createEP11GJGameLevelP14DailyLevelPageb; DailyLevelNode::create(GJGameLevel *,DailyLevelPage *,bool) ; +0x3a, 0x4d4be6\nMOV             R4, R0                                                 ; +0x3e, 0x4d4bea\nLDR.W           R0, [R6,#0x1C8]                                        ; +0x40, 0x4d4bec\nMOV             R1, R4                                                 ; +0x44, 0x4d4bf0\nLDR             R3, [R0]                                               ; +0x46, 0x4d4bf2\nLDR.W           R3, [R3,#0xDC]                                         ; +0x48, 0x4d4bf4\nBLX             R3                                                     ; +0x4c, 0x4d4bf8\nVMOV.F32        S15, #0.5                                              ; +0x4e, 0x4d4bfa\nVLDR            S14, [SP,#0x24+var_20]                                 ; +0x52, 0x4d4bfe\nMOV             R0, R7; this                                           ; +0x56, 0x4d4c02\nLDR             R3, [R4]                                               ; +0x58, 0x4d4c04\nVLDR            S13, [SP,#0x24+var_1C]                                 ; +0x5a, 0x4d4c06\nLDR.W           R11, [R3,#0x5C]                                        ; +0x5e, 0x4d4c0a\nVMUL.F32        S14, S14, S15                                          ; +0x62, 0x4d4c0e\nVMOV            R1, S14; float                                         ; +0x66, 0x4d4c12\nVMOV.F32        S14, #8.0                                              ; +0x6a, 0x4d4c16\nVNMLS.F32       S14, S13, S15                                          ; +0x6e, 0x4d4c1a\nVMOV            R2, S14; float                                         ; +0x72, 0x4d4c1e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x76, 0x4d4c22\nMOV             R0, R4                                                 ; +0x7a, 0x4d4c26\nMOV             R1, R7                                                 ; +0x7c, 0x4d4c28\nBLX             R11                                                    ; +0x7e, 0x4d4c2a\nCMP.W           R8, #0                                                 ; +0x80, 0x4d4c2c\nBEQ             loc_4D4C4C                                             ; +0x84, 0x4d4c30\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x86, 0x4d4c32\nLDR.W           R1, [R6,#0x214]                                        ; +0x8a, 0x4d4c36\nBL              _ZN16GameLevelManager10getDailyIDE16GJTimedLevelType; GameLevelManager::getDailyID(GJTimedLevelType) ; +0x8e, 0x4d4c3a\nLDR.W           R3, [R8,#0x230]                                        ; +0x92, 0x4d4c3e\nLDR.W           R2, [R8,#0x234]                                        ; +0x96, 0x4d4c42\nSUBS            R3, R3, R2                                             ; +0x9a, 0x4d4c46\nCMP             R0, R3                                                 ; +0x9c, 0x4d4c48\nBGT             loc_4D4CE6                                             ; +0x9e, 0x4d4c4a\nCMP.W           R9, #0                                                 ; +0xa0, 0x4d4c4c\nBNE             loc_4D4CD0                                             ; +0xa4, 0x4d4c50\nLDR             R3, [R4]                                               ; +0xa6, 0x4d4c52\nMOV             R1, R9                                                 ; +0xa8, 0x4d4c54\nMOV             R0, R4                                                 ; +0xaa, 0x4d4c56\nADD.W           R8, SP, #0x24+var_18                                   ; +0xac, 0x4d4c58\nLDR.W           R3, [R3,#0xA4]                                         ; +0xb0, 0x4d4c5c\nBLX             R3                                                     ; +0xb4, 0x4d4c60\nLDR             R3, [R4]                                               ; +0xb6, 0x4d4c62\nMOV             R0, R4                                                 ; +0xb8, 0x4d4c64\nLDR             R3, [R3,#0x60]                                         ; +0xba, 0x4d4c66\nBLX             R3                                                     ; +0xbc, 0x4d4c68\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xbe, 0x4d4c6a\nMOV             R0, R8; this                                           ; +0xc0, 0x4d4c6c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc2, 0x4d4c6e\nLDR             R3, [R4]                                               ; +0xc6, 0x4d4c72\nLDR.W           R11, [R3,#0x5C]                                        ; +0xc8, 0x4d4c74\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xcc, 0x4d4c78\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0xd0, 0x4d4c7c\nVLDR            S15, =180.0                                            ; +0xd4, 0x4d4c80\nLDR             R2, [SP,#0x24+var_14]; float                           ; +0xd8, 0x4d4c84\nVMOV            S14, R0                                                ; +0xda, 0x4d4c86\nMOV             R0, R7; this                                           ; +0xde, 0x4d4c8a\nVADD.F32        S15, S14, S15                                          ; +0xe0, 0x4d4c8c\nVMOV            R1, S15; float                                         ; +0xe4, 0x4d4c90\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x4d4c94\nMOV             R1, R7                                                 ; +0xec, 0x4d4c98\nMOV             R0, R4                                                 ; +0xee, 0x4d4c9a\nBLX             R11                                                    ; +0xf0, 0x4d4c9c\nMOV             R0, R10; this                                          ; +0xf2, 0x4d4c9e\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0xf4, 0x4d4ca0\nMOV             R10, R0                                                ; +0xf8, 0x4d4ca4\nBL              _ZN7cocos2d6CCShow6createEv; cocos2d::CCShow::create(void) ; +0xfa, 0x4d4ca6\nMOV             R1, R8; float                                          ; +0xfe, 0x4d4caa\nMOV             R7, R0                                                 ; +0x100, 0x4d4cac\nMOV.W           R0, #0x3F000000; this                                  ; +0x102, 0x4d4cae\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x106, 0x4d4cb2\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x10a, 0x4d4cb6\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x10c, 0x4d4cb8\nMOV             R1, R7; cocos2d::CCFiniteTimeAction *                  ; +0x110, 0x4d4cbc\nMOV             R3, R9                                                 ; +0x112, 0x4d4cbe\nMOV             R2, R0                                                 ; +0x114, 0x4d4cc0\nMOV             R0, R10; this                                          ; +0x116, 0x4d4cc2\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x118, 0x4d4cc4\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x11c, 0x4d4cc8\nMOV             R0, R4; this                                           ; +0x11e, 0x4d4cca\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x120, 0x4d4ccc\nSTR.W           R4, [R6,#0x20C]                                        ; +0x124, 0x4d4cd0\nMOV             R0, R4                                                 ; +0x128, 0x4d4cd4\nB               loc_4D4CDA                                             ; +0x12a, 0x4d4cd6\nMOVS            R0, #0                                                 ; +0x12c, 0x4d4cd8\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x12e, 0x4d4cda\nLDR             R3, [R5]                                               ; +0x130, 0x4d4cdc\nCMP             R2, R3                                                 ; +0x132, 0x4d4cde\nBEQ             loc_4D4CEE                                             ; +0x134, 0x4d4ce0\nBLX             __stack_chk_fail                                       ; +0x136, 0x4d4ce2\nMOV             R0, R4; this                                           ; +0x13a, 0x4d4ce6\nBL              _ZN14DailyLevelNode14showSkipButtonEv; DailyLevelNode::showSkipButton(void) ; +0x13c, 0x4d4ce8\nB               loc_4D4C4C                                             ; +0x140, 0x4d4cec\nADD             SP, SP, #0x24 ; '$'                                    ; +0x142, 0x4d4cee\nPOP.W           {R4-R11,PC}                                            ; +0x144, 0x4d4cf0", "xrefs": ["DailyLevelPage::init @ 0x4d543e", "DailyLevelPage::levelDownloadFinished @ 0x4d5674", "DailyLevelPage::createNodeIfLoaded @ 0x4d56c6", "DailyLevelPage::claimLevelReward @ 0x4d57b6", "DailyLevelPage::refreshDailyPage @ 0x4d58c0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}