{"type": "func", "start": 6291696, "end": 6292062, "name": "ChallengesPage::createChallengeNode", "pseudocode": "// \n// ChallengesPage::createChallengeNode from 0x6000f0 to 0x60025e (366 bytes)\n// \n// 3 xrefs:\n// > ChallengesPage::init @ 0x60057a\n// > ChallengesPage::challengeStatusFinished @ 0x600a3e\n// > ChallengesPage::claimItem @ 0x600b88\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:40 +0000\n// \n\nint *__fastcall ChallengesPage::createChallengeNode(\n        cocos2d::CCDictionary **this,\n        const char *a2,\n        int a3,\n        cocos2d::CCDelayTime *a4,\n        bool a5)\n{\n  int v9; // r6\n  GameStatsManager *v10; // r0\n  GameStatsManager *v11; // r0\n  GameStatsManager *Challenge; // r0\n  GameStatsManager *v13; // r0\n  GameStatsManager *v14; // r0\n  cocos2d::CCLabelBMFont **v15; // r0\n  bool v16; // r3\n  int *v17; // r4\n  const cocos2d::CCPoint *v18; // r0\n  cocos2d::CCDirector *v19; // r0\n  void (__fastcall *v20)(int *, _BYTE *); // r5\n  cocos2d::CCDirector *v21; // r0\n  float v22; // r0\n  float v23; // r1\n  cocos2d::CCSequence *v24; // r5\n  const cocos2d::CCPoint *v25; // r2\n  cocos2d::CCEaseElasticOut *v26; // r0\n  float v27; // r2\n  cocos2d::CCFiniteTimeAction *v28; // r0\n  cocos2d::CCAction *v29; // r0\n  void (__fastcall *v31)(int *, _BYTE *); // [sp+4h] [bp-30h]\n  float v32[2]; // [sp+Ch] [bp-28h] BYREF\n  _BYTE v33[8]; // [sp+14h] [bp-20h] BYREF\n  _BYTE v34[4]; // [sp+1Ch] [bp-18h] BYREF\n  float v35; // [sp+20h] [bp-14h]\n  _BYTE v36[8]; // [sp+24h] [bp-10h] BYREF\n\n  v9 = a5;\n  if ( cocos2d::CCDictionary::objectForKey(*(this + 138), (int)a2) )\n    return nullptr;\n  cocos2d::CCDirector::sharedDirector(nullptr);\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v32);\n  v10 = (GameStatsManager *)cocos2d::CCPoint::CCPoint(\n                              (cocos2d::CCPoint *)v33,\n                              v32[0] * 0.5,\n                              (float)((float)(v32[1] * 0.5) + 80.0) + 5.0);\n  v11 = (GameStatsManager *)GameStatsManager::sharedState(v10);\n  Challenge = (GameStatsManager *)GameStatsManager::getChallenge(v11, a2);\n  if ( !Challenge )\n  {\n    v13 = (GameStatsManager *)GameStatsManager::sharedState(nullptr);\n    Challenge = (GameStatsManager *)GameStatsManager::processChallengeQueue(v13, a2);\n    v9 = 1;\n  }\n  v14 = (GameStatsManager *)GameStatsManager::sharedState(Challenge);\n  v15 = (cocos2d::CCLabelBMFont **)GameStatsManager::getChallenge(v14, a2);\n  v17 = ChallengeNode::create(v15, (GJChallengeItem *)this, (ChallengesPage *)v9, v16);\n  (*(void (__fastcall **)(_DWORD, int *))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v17);\n  v31 = *(void (__fastcall **)(int *, _BYTE *))(*v17 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 0.0, (float)(int)(a2 - 1) * -80.0);\n  cocos2d::CCPoint::operator+(v34, v33, v36);\n  v31(v17, v34);\n  cocos2d::CCDictionary::setObject(*(this + 138), (cocos2d::CCObject *)v17, (int)a2);\n  if ( !a3 )\n  {\n    v18 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int *))(*v17 + 96))(v17);\n    v19 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v18);\n    v20 = *(void (__fastcall **)(int *, _BYTE *))(*v17 + 92);\n    v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19);\n    v22 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v21));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v22 + 160.0, v35);\n    v20(v17, v36);\n    v24 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a4, v23);\n    v26 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(\n                                         (cocos2d::CCMoveTo *)0x3F000000,\n                                         COERCE_FLOAT(v34),\n                                         v25);\n    v28 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseElasticOut::create(\n                                           v26,\n                                           (cocos2d::CCActionInterval *)0x3F19999A,\n                                           v27);\n    v29 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v24, v28, 0);\n    cocos2d::CCNode::runAction((cocos2d::CCNode *)v17, v29);\n  }\n  return v17;\n}", "assembly": "; \n; ChallengesPage::createChallengeNode from 0x6000f0 to 0x60025e (366 bytes)\n; \n; 3 xrefs:\n; > ChallengesPage::init @ 0x60057a\n; > ChallengesPage::challengeStatusFinished @ 0x600a3e\n; > ChallengesPage::claimItem @ 0x600b88\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:40 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x6000f0\nMOV             R11, R3                                                ; +0x4, 0x6000f4\nLDR             R4, =(__stack_chk_guard_ptr - 0x600104)                ; +0x6, 0x6000f6\nSUB             SP, SP, #0x34                                          ; +0x8, 0x6000f8\nMOV             R8, R0                                                 ; +0xa, 0x6000fa\nLDR.W           R0, [R0,#0x228]; this                                  ; +0xc, 0x6000fc\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x10, 0x600100\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x12, 0x600102\nMOV             R5, R1                                                 ; +0x14, 0x600104\nMOV             R9, R2                                                 ; +0x16, 0x600106\nLDRB.W          R6, [SP,#0x34+arg_0]                                   ; +0x18, 0x600108\nLDR             R3, [R4]                                               ; +0x1c, 0x60010c\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1e, 0x60010e\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x20, 0x600110\nSTR             R4, [SP,#0x34+var_34]                                  ; +0x24, 0x600114\nCMP             R0, #0                                                 ; +0x26, 0x600116\nBNE.W           loc_600248                                             ; +0x28, 0x600118\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x60011c\nADD.W           R10, SP, #0x34+var_20                                  ; +0x30, 0x600120\nMOV             R1, R0                                                 ; +0x34, 0x600124\nADD             R0, SP, #0x34+var_28; this                             ; +0x36, 0x600126\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x38, 0x600128\nVMOV.F32        S14, #0.5                                              ; +0x3c, 0x60012c\nVLDR            S13, [SP,#0x34+var_24]                                 ; +0x40, 0x600130\nMOV             R0, R10; this                                          ; +0x44, 0x600134\nVLDR            S15, =80.0                                             ; +0x46, 0x600136\nVMLA.F32        S15, S13, S14                                          ; +0x4a, 0x60013a\nVLDR            S13, [SP,#0x34+var_28]                                 ; +0x4e, 0x60013e\nVMUL.F32        S14, S13, S14                                          ; +0x52, 0x600142\nVMOV            R1, S14; float                                         ; +0x56, 0x600146\nVMOV.F32        S14, #5.0                                              ; +0x5a, 0x60014a\nVADD.F32        S15, S15, S14                                          ; +0x5e, 0x60014e\nVMOV            R2, S15; float                                         ; +0x62, 0x600152\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x66, 0x600156\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x6a, 0x60015a\nMOV             R1, R5; int                                            ; +0x6e, 0x60015e\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0x70, 0x600160\nCBNZ            R0, loc_600172                                         ; +0x74, 0x600164\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x76, 0x600166\nMOV             R1, R5; int                                            ; +0x7a, 0x60016a\nBL              _ZN16GameStatsManager21processChallengeQueueEi; GameStatsManager::processChallengeQueue(int) ; +0x7c, 0x60016c\nMOVS            R6, #1                                                 ; +0x80, 0x600170\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x82, 0x600172\nMOV             R1, R5; int                                            ; +0x86, 0x600176\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0x88, 0x600178\nMOV             R2, R6; ChallengesPage *                               ; +0x8c, 0x60017c\nMOV             R1, R8; GJChallengeItem *                              ; +0x8e, 0x60017e\nADD             R7, SP, #0x34+var_10                                   ; +0x90, 0x600180\nBL              _ZN13ChallengeNode6createEP15GJChallengeItemP14ChallengesPageb; ChallengeNode::create(GJChallengeItem *,ChallengesPage *,bool) ; +0x92, 0x600182\nADD             R6, SP, #0x34+var_18                                   ; +0x96, 0x600186\nMOV             R4, R0                                                 ; +0x98, 0x600188\nLDR.W           R0, [R8,#0x1CC]                                        ; +0x9a, 0x60018a\nMOV             R1, R4                                                 ; +0x9e, 0x60018e\nLDR             R3, [R0]                                               ; +0xa0, 0x600190\nLDR.W           R3, [R3,#0xE4]                                         ; +0xa2, 0x600192\nBLX             R3                                                     ; +0xa6, 0x600196\nLDR             R3, [R4]                                               ; +0xa8, 0x600198\nVLDR            S14, =-80.0                                            ; +0xaa, 0x60019a\nMOVS            R1, #0; float                                          ; +0xae, 0x60019e\nMOV             R0, R7; this                                           ; +0xb0, 0x6001a0\nLDR             R3, [R3,#0x5C]                                         ; +0xb2, 0x6001a2\nSTR             R3, [SP,#0x34+var_30]                                  ; +0xb4, 0x6001a4\nSUBS            R3, R5, #1                                             ; +0xb6, 0x6001a6\nVMOV            S15, R3                                                ; +0xb8, 0x6001a8\nVCVT.F32.S32    S15, S15                                               ; +0xbc, 0x6001ac\nVMUL.F32        S15, S15, S14                                          ; +0xc0, 0x6001b0\nVMOV            R2, S15; float                                         ; +0xc4, 0x6001b4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0x6001b8\nMOV             R2, R7                                                 ; +0xcc, 0x6001bc\nMOV             R0, R6                                                 ; +0xce, 0x6001be\nMOV             R1, R10                                                ; +0xd0, 0x6001c0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xd2, 0x6001c2\nMOV             R0, R4                                                 ; +0xd6, 0x6001c6\nMOV             R1, R6                                                 ; +0xd8, 0x6001c8\nLDR             R3, [SP,#0x34+var_30]                                  ; +0xda, 0x6001ca\nBLX             R3                                                     ; +0xdc, 0x6001cc\nLDR.W           R0, [R8,#0x228]; this                                  ; +0xde, 0x6001ce\nMOV             R1, R4; cocos2d::CCObject *                            ; +0xe2, 0x6001d2\nMOV             R2, R5; int                                            ; +0xe4, 0x6001d4\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0xe6, 0x6001d6\nCMP.W           R9, #0                                                 ; +0xea, 0x6001da\nBNE             loc_600244                                             ; +0xee, 0x6001de\nLDR             R3, [R4]                                               ; +0xf0, 0x6001e0\nMOV             R0, R4                                                 ; +0xf2, 0x6001e2\nLDR             R3, [R3,#0x60]                                         ; +0xf4, 0x6001e4\nBLX             R3                                                     ; +0xf6, 0x6001e6\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xf8, 0x6001e8\nMOV             R0, R6; this                                           ; +0xfa, 0x6001ea\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xfc, 0x6001ec\nLDR             R3, [R4]                                               ; +0x100, 0x6001f0\nLDR             R5, [R3,#0x5C]                                         ; +0x102, 0x6001f2\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x104, 0x6001f4\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x108, 0x6001f8\nVLDR            S15, =160.0                                            ; +0x10c, 0x6001fc\nLDR             R2, [SP,#0x34+var_14]; float                           ; +0x110, 0x600200\nVMOV            S14, R0                                                ; +0x112, 0x600202\nMOV             R0, R7; this                                           ; +0x116, 0x600206\nVADD.F32        S15, S14, S15                                          ; +0x118, 0x600208\nVMOV            R1, S15; float                                         ; +0x11c, 0x60020c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x120, 0x600210\nMOV             R1, R7                                                 ; +0x124, 0x600214\nMOV             R0, R4                                                 ; +0x126, 0x600216\nBLX             R5                                                     ; +0x128, 0x600218\nMOV             R0, R11; this                                          ; +0x12a, 0x60021a\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x12c, 0x60021c\nMOV             R1, R6; float                                          ; +0x130, 0x600220\nMOV             R5, R0                                                 ; +0x132, 0x600222\nMOV.W           R0, #0x3F000000; this                                  ; +0x134, 0x600224\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x138, 0x600228\nLDR             R1, =0x3F19999A; cocos2d::CCActionInterval *           ; +0x13c, 0x60022c\nBL              _ZN7cocos2d16CCEaseElasticOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x13e, 0x60022e\nMOV             R2, R9                                                 ; +0x142, 0x600232\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x144, 0x600234\nMOV             R0, R5; this                                           ; +0x146, 0x600236\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x148, 0x600238\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x14c, 0x60023c\nMOV             R0, R4; this                                           ; +0x14e, 0x60023e\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x150, 0x600240\nMOV             R0, R4                                                 ; +0x154, 0x600244\nB               loc_60024A                                             ; +0x156, 0x600246\nMOVS            R0, #0                                                 ; +0x158, 0x600248\nLDR             R3, [SP,#0x34+var_34]                                  ; +0x15a, 0x60024a\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x15c, 0x60024c\nLDR             R3, [R3]                                               ; +0x15e, 0x60024e\nCMP             R2, R3                                                 ; +0x160, 0x600250\nBEQ             loc_600258                                             ; +0x162, 0x600252\nBLX             __stack_chk_fail                                       ; +0x164, 0x600254\nADD             SP, SP, #0x34 ; '4'                                    ; +0x168, 0x600258\nPOP.W           {R4-R11,PC}                                            ; +0x16a, 0x60025a", "xrefs": ["ChallengesPage::init @ 0x60057a", "ChallengesPage::challengeStatusFinished @ 0x600a3e", "ChallengesPage::claimItem @ 0x600b88"], "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"}