{"type": "func", "start": 10893044, "end": 10893576, "name": "ChallengesPage::createChallengeNode", "pseudocode": "// \n// ChallengesPage::createChallengeNode from 0xa636f4 to 0xa63908 (532 bytes)\n// \n// 4 xrefs:\n// > ChallengesPage::init @ 0xa63d30\n// > ChallengesPage::challengeStatusFinished @ 0xa6438c\n// > ChallengesPage::claimItem @ 0xa6450c\n// > <???> @ 0xf0e20\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 13:00:16 +0000\n// \n\ncocos2d::CCObject *__fastcall ChallengesPage::createChallengeNode(\n        cocos2d::CCDictionary **this,\n        int a2,\n        unsigned __int8 a3,\n        float a4,\n        unsigned __int8 a5)\n{\n  int v5; // w26\n  __int64 v6; // x23\n  unsigned int v9; // w28\n  cocos2d::CCObject *v10; // x22\n  cocos2d::CCDirector *v12; // x0\n  GameStatsManager *v13; // x0\n  GameStatsManager *v14; // x0\n  GameStatsManager *Challenge; // x0\n  GameStatsManager *v16; // x0\n  cocos2d::CCLabelBMFont **v17; // x0\n  cocos2d::CCObject *v18; // x28\n  void (__fastcall *v19)(cocos2d::CCObject *, __int64 *); // x20\n  const cocos2d::CCPoint *v20; // x0\n  __int64 (__fastcall *v21)(cocos2d::CCObject *, __int64 *); // x20\n  cocos2d::CCDirector *v22; // x0\n  float v23; // s0\n  cocos2d::CCDelayTime *v24; // x0\n  cocos2d::CCSequence *v25; // x20\n  const cocos2d::CCPoint *v26; // x1\n  cocos2d::CCEaseElasticOut *v27; // x0\n  cocos2d::CCActionInterval *v28; // x1\n  cocos2d::CCFiniteTimeAction *v29; // x0\n  cocos2d::CCAction *v30; // x0\n  GameStatsManager *v31; // x0\n  __int64 v32; // [xsp+78h] [xbp+78h] BYREF\n  char v33[8]; // [xsp+80h] [xbp+80h] BYREF\n  _BYTE v34[4]; // [xsp+88h] [xbp+88h] BYREF\n  float v35; // [xsp+8Ch] [xbp+8Ch]\n  __int64 v36; // [xsp+90h] [xbp+90h] BYREF\n\n  v5 = a3;\n  v6 = a2;\n  v9 = a5;\n  v10 = nullptr;\n  if ( !cocos2d::CCDictionary::objectForKey(*(this + 91), a2) )\n  {\n    v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(nullptr);\n    cocos2d::CCDirector::getWinSize(&v32, v12);\n    v13 = (GameStatsManager *)cocos2d::CCPoint::CCPoint(\n                                (cocos2d::CCPoint *)v33,\n                                *(float *)&v32 * 0.5,\n                                (float)((float)(*((float *)&v32 + 1) * 0.5) + 80.0) + 5.0);\n    v14 = (GameStatsManager *)GameStatsManager::sharedState(v13);\n    Challenge = (GameStatsManager *)GameStatsManager::getChallenge(v14, (const char *)(unsigned int)v6);\n    if ( !Challenge )\n    {\n      v31 = (GameStatsManager *)GameStatsManager::sharedState(nullptr);\n      v9 = 1;\n      Challenge = (GameStatsManager *)GameStatsManager::processChallengeQueue(v31, (const char *)(unsigned int)v6);\n    }\n    v16 = (GameStatsManager *)GameStatsManager::sharedState(Challenge);\n    v17 = (cocos2d::CCLabelBMFont **)GameStatsManager::getChallenge(v16, (const char *)(unsigned int)v6);\n    v18 = (cocos2d::CCObject *)ChallengeNode::create(v17, (GJChallengeItem *)this, (ChallengesPage *)v9);\n    v10 = v18;\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v18);\n    v19 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v18 + 184LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, (float)(v6 - 1) * -80.0);\n    cocos2d::CCPoint::operator+(&v36, v33);\n    v19(v18, &v36);\n    cocos2d::CCDictionary::setObject(*(this + 91), v18, v6);\n    if ( !v5 )\n    {\n      v20 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v18 + 192LL))(v18);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v20);\n      v21 = *(__int64 (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v18 + 184LL);\n      v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*(cocos2d::CCDirector **)v18);\n      cocos2d::CCDirector::getScreenRight(v22);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v23 + 160.0, v35);\n      v24 = (cocos2d::CCDelayTime *)v21(v18, &v36);\n      v25 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v24, a4);\n      v27 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)v34, 0.5, v26);\n      v29 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseElasticOut::create(v27, v28, 0.6);\n      v30 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v25, v29, 0);\n      cocos2d::CCNode::runAction(v18, v30);\n    }\n  }\n  return v10;\n}", "assembly": "; \n; ChallengesPage::createChallengeNode from 0xa636f4 to 0xa63908 (532 bytes)\n; \n; 4 xrefs:\n; > ChallengesPage::init @ 0xa63d30\n; > ChallengesPage::challengeStatusFinished @ 0xa6438c\n; > ChallengesPage::claimItem @ 0xa6450c\n; > <???> @ 0xf0e20\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 13:00:16 +0000\n; \nSTP             X29, X30, [SP,#var_A0]!                                ; +0x0, 0xa636f4\nMOV             X29, SP                                                ; +0x4, 0xa636f8\nSTP             X19, X20, [SP,#0xA0+var_90]                            ; +0x8, 0xa636fc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa63700\nSTP             X25, X26, [SP,#0xA0+var_60]                            ; +0x10, 0xa63704\nUXTB            W26, W2                                                ; +0x14, 0xa63708\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xa6370c\nSTP             X21, X22, [SP,#0xA0+var_80]                            ; +0x1c, 0xa63710\nSTP             X23, X24, [SP,#0xA0+var_70]                            ; +0x20, 0xa63714\nSTP             X27, X28, [SP,#0xA0+var_50]                            ; +0x24, 0xa63718\nSTR             D8, [SP,#0xA0+var_40]                                  ; +0x28, 0xa6371c\nSXTW            X23, W1                                                ; +0x2c, 0xa63720\nFMOV            S8, S0                                                 ; +0x30, 0xa63724\nMOV             X21, X0                                                ; +0x34, 0xa63728\nLDR             X2, [X2]                                               ; +0x38, 0xa6372c\nMOV             X1, X23; __int64                                       ; +0x3c, 0xa63730\nLDR             X0, [X0,#0x2D8]; this                                  ; +0x40, 0xa63734\nMOV             X20, X23                                               ; +0x44, 0xa63738\nUXTB            W28, W3                                                ; +0x48, 0xa6373c\nMOV             X22, #0                                                ; +0x4c, 0xa63740\nSTR             X2, [X29,#0xA0+var_8]                                  ; +0x50, 0xa63744\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x54, 0xa63748\nCBZ             X0, loc_A63788                                         ; +0x58, 0xa6374c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x5c, 0xa63750\nMOV             X0, X22                                                ; +0x60, 0xa63754\nLDR             X2, [X29,#0xA0+var_8]                                  ; +0x64, 0xa63758\nLDR             X1, [X19]                                              ; +0x68, 0xa6375c\nCMP             X2, X1                                                 ; +0x6c, 0xa63760\nB.NE            loc_A63904                                             ; +0x70, 0xa63764\nLDP             X19, X20, [SP,#0xA0+var_90]                            ; +0x74, 0xa63768\nLDP             X21, X22, [SP,#0xA0+var_80]                            ; +0x78, 0xa6376c\nLDP             X23, X24, [SP,#0xA0+var_70]                            ; +0x7c, 0xa63770\nLDP             X25, X26, [SP,#0xA0+var_60]                            ; +0x80, 0xa63774\nLDP             X27, X28, [SP,#0xA0+var_50]                            ; +0x84, 0xa63778\nLDR             D8, [SP,#0xA0+var_40]                                  ; +0x88, 0xa6377c\nLDP             X29, X30, [SP+0xA0+var_A0],#0xA0                       ; +0x8c, 0xa63780\nRET                                                                    ; +0x90, 0xa63784\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x94, 0xa63788\nADD             X27, X29, #0xA0+var_20                                 ; +0x98, 0xa6378c\nADD             X8, X29, #0xA0+var_28                                  ; +0x9c, 0xa63790\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0xa0, 0xa63794\nLDR             S1, =0x42A00000                                        ; +0xa4, 0xa63798\nMOV             X0, X27; this                                          ; +0xa8, 0xa6379c\nFMOV            S0, #0.5                                               ; +0xac, 0xa637a0\nLDR             S2, [X29,#0xA0+var_24]                                 ; +0xb0, 0xa637a4\nFMADD           S2, S2, S0, S1                                         ; +0xb4, 0xa637a8\nLDR             S1, [X29,#0xA0+var_28]                                 ; +0xb8, 0xa637ac\nFMUL            S0, S1, S0; float                                      ; +0xbc, 0xa637b0\nFMOV            S1, #5.0                                               ; +0xc0, 0xa637b4\nFADD            S1, S2, S1; float                                      ; +0xc4, 0xa637b8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0xa637bc\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0xcc, 0xa637c0\nMOV             W1, W23; int                                           ; +0xd0, 0xa637c4\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0xd4, 0xa637c8\nCBZ             X0, loc_A638F0                                         ; +0xd8, 0xa637cc\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0xdc, 0xa637d0\nADD             X24, X29, #0xA0+var_18                                 ; +0xe0, 0xa637d4\nMOV             W1, W20; int                                           ; +0xe4, 0xa637d8\nSUB             W20, W20, #1                                           ; +0xe8, 0xa637dc\nADD             X25, X29, #0xA0+var_10                                 ; +0xec, 0xa637e0\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0xf0, 0xa637e4\nMOV             W2, W28; ChallengesPage *                              ; +0xf4, 0xa637e8\nMOV             X1, X21; GJChallengeItem *                             ; +0xf8, 0xa637ec\nBL              _ZN13ChallengeNode6createEP15GJChallengeItemP14ChallengesPageb; ChallengeNode::create(GJChallengeItem *,ChallengesPage *,bool) ; +0xfc, 0xa637f0\nMOV             X28, X0                                                ; +0x100, 0xa637f4\nLDR             X2, [X21,#0x248]                                       ; +0x104, 0xa637f8\nMOV             X1, X0                                                 ; +0x108, 0xa637fc\nMOV             X22, X0                                                ; +0x10c, 0xa63800\nMOV             X0, X2                                                 ; +0x110, 0xa63804\nLDR             X2, [X2]                                               ; +0x114, 0xa63808\nLDR             X2, [X2,#0x1C8]                                        ; +0x118, 0xa6380c\nBLR             X2                                                     ; +0x11c, 0xa63810\nSCVTF           S1, W20                                                ; +0x120, 0xa63814\nLDR             X1, [X28]                                              ; +0x124, 0xa63818\nLDR             S2, =0xC2A00000                                        ; +0x128, 0xa6381c\nMOV             X0, X24; this                                          ; +0x12c, 0xa63820\nFMOV            S0, WZR; float                                         ; +0x130, 0xa63824\nLDR             X20, [X1,#0xB8]                                        ; +0x134, 0xa63828\nFMUL            S1, S1, S2; float                                      ; +0x138, 0xa6382c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x13c, 0xa63830\nMOV             X8, X25                                                ; +0x140, 0xa63834\nMOV             X0, X27                                                ; +0x144, 0xa63838\nMOV             X1, X24                                                ; +0x148, 0xa6383c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x14c, 0xa63840\nMOV             X0, X28                                                ; +0x150, 0xa63844\nMOV             X1, X25                                                ; +0x154, 0xa63848\nBLR             X20                                                    ; +0x158, 0xa6384c\nLDR             X0, [X21,#0x2D8]; this                                 ; +0x15c, 0xa63850\nMOV             X1, X28; cocos2d::CCObject *                           ; +0x160, 0xa63854\nMOV             X2, X23; __int64                                       ; +0x164, 0xa63858\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEl; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,long) ; +0x168, 0xa6385c\nCBNZ            W26, loc_A63750                                        ; +0x16c, 0xa63860\nLDR             X1, [X28]                                              ; +0x170, 0xa63864\nMOV             X0, X28                                                ; +0x174, 0xa63868\nLDR             X1, [X1,#0xC0]                                         ; +0x178, 0xa6386c\nBLR             X1                                                     ; +0x17c, 0xa63870\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x180, 0xa63874\nMOV             X0, X24; this                                          ; +0x184, 0xa63878\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x188, 0xa6387c\nLDR             X0, [X28]; this                                        ; +0x18c, 0xa63880\nLDR             X20, [X0,#0xB8]                                        ; +0x190, 0xa63884\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x194, 0xa63888\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x198, 0xa6388c\nLDR             S2, =0x43200000                                        ; +0x19c, 0xa63890\nMOV             X0, X25; this                                          ; +0x1a0, 0xa63894\nLDR             S1, [X29,#0xA0+var_14]; float                          ; +0x1a4, 0xa63898\nFADD            S0, S0, S2; float                                      ; +0x1a8, 0xa6389c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ac, 0xa638a0\nMOV             X1, X25                                                ; +0x1b0, 0xa638a4\nMOV             X0, X28                                                ; +0x1b4, 0xa638a8\nBLR             X20                                                    ; +0x1b8, 0xa638ac\nFMOV            S0, S8; float                                          ; +0x1bc, 0xa638b0\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x1c0, 0xa638b4\nMOV             X20, X0                                                ; +0x1c4, 0xa638b8\nFMOV            S0, #0.5; float                                        ; +0x1c8, 0xa638bc\nMOV             X0, X24; this                                          ; +0x1cc, 0xa638c0\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x1d0, 0xa638c4\nLDR             S0, flt_A63914; float                                  ; +0x1d4, 0xa638c8\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x1d8, 0xa638cc\nMOV             X1, X0; cocos2d::CCFiniteTimeAction *                  ; +0x1dc, 0xa638d0\nMOV             X2, #0                                                 ; +0x1e0, 0xa638d4\nMOV             X0, X20; this                                          ; +0x1e4, 0xa638d8\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1e8, 0xa638dc\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x1ec, 0xa638e0\nMOV             X0, X28; this                                          ; +0x1f0, 0xa638e4\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1f4, 0xa638e8\nB               loc_A63750                                             ; +0x1f8, 0xa638ec\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x1fc, 0xa638f0\nMOV             W28, #1                                                ; +0x200, 0xa638f4\nMOV             W1, W23; int                                           ; +0x204, 0xa638f8\nBL              _ZN16GameStatsManager21processChallengeQueueEi; GameStatsManager::processChallengeQueue(int) ; +0x208, 0xa638fc\nB               loc_A637D0                                             ; +0x20c, 0xa63900\nBL              .__stack_chk_fail                                      ; +0x210, 0xa63904", "xrefs": ["ChallengesPage::init @ 0xa63d30", "ChallengesPage::challengeStatusFinished @ 0xa6438c", "ChallengesPage::claimItem @ 0xa6450c", "<???> @ 0xf0e20"], "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"}