{"type": "func", "start": 6291576, "end": 6291690, "name": "ChallengeNode::create", "pseudocode": "// \n// ChallengeNode::create from 0x600078 to 0x6000ea (114 bytes)\n// \n// 1 xrefs:\n// > ChallengesPage::createChallengeNode @ 0x600182\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 ChallengeNode::create(cocos2d::CCLabelBMFont **this, GJChallengeItem *a2, ChallengesPage *a3, bool a4)\n{\n  int *v7; // r4\n  int v8; // r3\n  int *v9; // r0\n\n  v7 = (int *)operator new(0x120u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v7);\n  v7[67] = 0;\n  *v7 = (int)&off_CC1888;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v7 + 68));\n  v7[70] = 0;\n  *((_BYTE *)v7 + 284) = 0;\n  if ( ChallengeNode::init((ChallengeNode *)v7, this, a2, (int)a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n  }\n  else\n  {\n    v8 = *v7;\n    v9 = v7;\n    v7 = nullptr;\n    (*(void (__fastcall **)(int *))(v8 + 8))(v9);\n  }\n  return v7;\n}", "assembly": "; \n; ChallengeNode::create from 0x600078 to 0x6000ea (114 bytes)\n; \n; 1 xrefs:\n; > ChallengesPage::createChallengeNode @ 0x600182\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-R8,LR}                                             ; +0x0, 0x600078\nMOV             R8, R0                                                 ; +0x4, 0x60007c\nMOV.W           R0, #0x120; unsigned int                               ; +0x6, 0x60007e\nMOV             R7, R1                                                 ; +0xa, 0x600082\nMOV             R6, R2                                                 ; +0xc, 0x600084\nBL              _Znwj; operator new(uint)                              ; +0xe, 0x600086\nMOV             R4, R0                                                 ; +0x12, 0x60008a\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x14, 0x60008c\nLDR             R3, =(_ZTV13ChallengeNode_ptr - 0x6000A0)              ; +0x18, 0x600090\nMOVS            R5, #0                                                 ; +0x1a, 0x600092\nADD.W           R0, R4, #0x110; this                                   ; +0x1c, 0x600094\nSTR.W           R5, [R4,#0x10C]                                        ; +0x20, 0x600098\nADD             R3, PC; _ZTV13ChallengeNode_ptr                        ; +0x24, 0x60009c\nLDR             R3, [R3]; `vtable for'ChallengeNode ...                ; +0x26, 0x60009e\nADDS            R3, #8                                                 ; +0x28, 0x6000a0\nSTR             R3, [R4]                                               ; +0x2a, 0x6000a2\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x2c, 0x6000a4\nSTR.W           R5, [R4,#0x118]                                        ; +0x30, 0x6000a8\nMOV             R0, R4; this                                           ; +0x34, 0x6000ac\nSTRB.W          R5, [R4,#0x11C]                                        ; +0x36, 0x6000ae\nMOV             R1, R8; GJChallengeItem *                              ; +0x3a, 0x6000b2\nMOV             R2, R7; ChallengesPage *                               ; +0x3c, 0x6000b4\nMOV             R3, R6; bool                                           ; +0x3e, 0x6000b6\nBL              _ZN13ChallengeNode4initEP15GJChallengeItemP14ChallengesPageb; ChallengeNode::init(GJChallengeItem *,ChallengesPage *,bool) ; +0x40, 0x6000b8\nMOV             R5, R0                                                 ; +0x44, 0x6000bc\nCBZ             R0, loc_6000DA                                         ; +0x46, 0x6000be\nMOV             R0, R4; this                                           ; +0x48, 0x6000c0\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x4a, 0x6000c2\nB               loc_6000E4                                             ; +0x4e, 0x6000c6\nMOV             R0, R4; this                                           ; +0x50, 0x6000c8\nBL              _ZN7cocos2d6CCNodeD2Ev; cocos2d::CCNode::~CCNode()     ; +0x52, 0x6000ca\nB               loc_6000D0                                             ; +0x56, 0x6000ce\nMOV             R0, R4; void *                                         ; +0x58, 0x6000d0\nBL              _ZdlPv; operator delete(void *)                        ; +0x5a, 0x6000d2\nBL              __cxa_end_cleanup                                      ; +0x5e, 0x6000d6\nLDR             R3, [R4]                                               ; +0x62, 0x6000da\nMOV             R0, R4                                                 ; +0x64, 0x6000dc\nMOV             R4, R5                                                 ; +0x66, 0x6000de\nLDR             R3, [R3,#8]                                            ; +0x68, 0x6000e0\nBLX             R3                                                     ; +0x6a, 0x6000e2\nMOV             R0, R4                                                 ; +0x6c, 0x6000e4\nPOP.W           {R4-R8,PC}                                             ; +0x6e, 0x6000e6", "xrefs": ["ChallengesPage::createChallengeNode @ 0x600182"], "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"}