{"type": "func", "start": 4298761264, "end": 4298761414, "name": "ChallengeNode::create", "pseudocode": "// \n// ChallengeNode::create from 0x10039e430 to 0x10039e4c6 (150 bytes)\n// \n// 1 xrefs:\n// > ChallengesPage::createChallengeNode @ 0x10039de45\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\nChallengeNode *__fastcall ChallengeNode::create(GJChallengeItem *a1, ChallengesPage *a2, bool a3)\n{\n  ChallengeNode *v4; // rbx\n\n  v4 = (ChallengeNode *)operator new(0x168u);\n  cocos2d::CCNode::CCNode((__int64)v4);\n  v4->__vftable = (ChallengeNode_vtbl *)off_100924240;\n  v4->m_challengeItem = nullptr;\n  sub_10028CC30(&v4->m_unkPoint);\n  v4->m_countdownLabel = nullptr;\n  v4->m_unloaded = 0;\n  if ( ChallengeNode::init(v4, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(ChallengeNode *))v4->~ChallengeNode_0)(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; ChallengeNode::create from 0x10039e430 to 0x10039e4c6 (150 bytes)\n; \n; 1 xrefs:\n; > ChallengesPage::createChallengeNode @ 0x10039de45\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    rbp                                                            ; +0x0, 0x10039e430\nmov     rbp, rsp                                                       ; +0x1, 0x10039e431\npush    r15                                                            ; +0x4, 0x10039e434\npush    r14                                                            ; +0x6, 0x10039e436\npush    r12                                                            ; +0x8, 0x10039e438\npush    rbx                                                            ; +0xa, 0x10039e43a\nmov     r12d, edx                                                      ; +0xb, 0x10039e43b\nmov     r14, rsi                                                       ; +0xe, 0x10039e43e\nmov     r15, rdi                                                       ; +0x11, 0x10039e441\nmov     edi, 168h; __sz                                                ; +0x14, 0x10039e444\ncall    __Znwm; operator new(ulong)                                    ; +0x19, 0x10039e449\nmov     rbx, rax                                                       ; +0x1e, 0x10039e44e\nmov     rdi, rax                                                       ; +0x21, 0x10039e451\ncall    cocos2d__CCNode__CCNode                                        ; +0x24, 0x10039e454\nlea     rax, off_100924240                                             ; +0x29, 0x10039e459\nmov     [rbx], rax                                                     ; +0x30, 0x10039e460\nmov     qword ptr [rbx+148h], 0                                        ; +0x33, 0x10039e463\nmov     rdi, rbx                                                       ; +0x3e, 0x10039e46e\nadd     rdi, 150h                                                      ; +0x41, 0x10039e471\ncall    sub_10028CC30                                                  ; +0x48, 0x10039e478\nmov     qword ptr [rbx+158h], 0                                        ; +0x4d, 0x10039e47d\nmov     byte ptr [rbx+160h], 0                                         ; +0x58, 0x10039e488\nmovzx   ecx, r12b                                                      ; +0x5f, 0x10039e48f\nmov     rdi, rbx                                                       ; +0x63, 0x10039e493\nmov     rsi, r15                                                       ; +0x66, 0x10039e496\nmov     rdx, r14                                                       ; +0x69, 0x10039e499\ncall    ChallengeNode__init                                            ; +0x6c, 0x10039e49c\ntest    al, al                                                         ; +0x71, 0x10039e4a1\njz      short loc_10039E4AF                                            ; +0x73, 0x10039e4a3\nmov     rdi, rbx                                                       ; +0x75, 0x10039e4a5\ncall    cocos2d__CCObject__autorelease                                 ; +0x78, 0x10039e4a8\njmp     short loc_10039E4BA                                            ; +0x7d, 0x10039e4ad\nmov     rax, [rbx]                                                     ; +0x7f, 0x10039e4af\nmov     rdi, rbx                                                       ; +0x82, 0x10039e4b2\ncall    qword ptr [rax+10h]                                            ; +0x85, 0x10039e4b5\nxor     ebx, ebx                                                       ; +0x88, 0x10039e4b8\nmov     rax, rbx                                                       ; +0x8a, 0x10039e4ba\npop     rbx                                                            ; +0x8d, 0x10039e4bd\npop     r12                                                            ; +0x8e, 0x10039e4be\npop     r14                                                            ; +0x90, 0x10039e4c0\npop     r15                                                            ; +0x92, 0x10039e4c2\npop     rbp                                                            ; +0x94, 0x10039e4c4\nretn                                                                   ; +0x95, 0x10039e4c5", "xrefs": ["ChallengesPage::createChallengeNode @ 0x10039de45"], "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"}