{"type": "func", "start": 4300679344, "end": 4300679489, "name": "GauntletNode::create", "pseudocode": "// \n// GauntletNode::create from 0x1005728b0 to 0x100572941 (145 bytes)\n// \n// 1 xrefs:\n// > GauntletSelectLayer::setupGauntlets @ 0x1005721ab\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\nGauntletNode *__fastcall GauntletNode::create(GJMapPack *a1)\n{\n  GauntletNode *v1; // rbx\n\n  v1 = (GauntletNode *)operator new(0x168u);\n  cocos2d::CCNode::CCNode((__int64)v1);\n  v1->__vftable = (GauntletNode_vtbl *)off_100965010;\n  v1->m_gauntlet = nullptr;\n  v1->m_locked = 0;\n  *(_OWORD *)&v1->m_gauntletInfoNode = 0;\n  if ( cocos2d::CCNode::init(v1) )\n  {\n    if ( a1 )\n    {\n      v1->m_gauntlet = a1;\n      cocos2d::CCObject::retain(a1);\n    }\n    v1->m_locked = 0;\n    GauntletNode::generateNode(v1);\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    ((void (__fastcall *)(GauntletNode *))v1->~GauntletNode_0)(v1);\n    return nullptr;\n  }\n  return v1;\n}", "assembly": "; \n; GauntletNode::create from 0x1005728b0 to 0x100572941 (145 bytes)\n; \n; 1 xrefs:\n; > GauntletSelectLayer::setupGauntlets @ 0x1005721ab\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, 0x1005728b0\nmov     rbp, rsp                                                       ; +0x1, 0x1005728b1\npush    r14                                                            ; +0x4, 0x1005728b4\npush    rbx                                                            ; +0x6, 0x1005728b6\nmov     r14, rdi                                                       ; +0x7, 0x1005728b7\nmov     edi, 168h; __sz                                                ; +0xa, 0x1005728ba\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1005728bf\nmov     rbx, rax                                                       ; +0x14, 0x1005728c4\nmov     rdi, rax                                                       ; +0x17, 0x1005728c7\ncall    cocos2d__CCNode__CCNode                                        ; +0x1a, 0x1005728ca\nlea     rax, off_100965010                                             ; +0x1f, 0x1005728cf\nmov     [rbx], rax                                                     ; +0x26, 0x1005728d6\nmov     qword ptr [rbx+158h], 0                                        ; +0x29, 0x1005728d9\nmov     byte ptr [rbx+160h], 0                                         ; +0x34, 0x1005728e4\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1005728eb\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x3e, 0x1005728ee\nmov     rdi, rbx                                                       ; +0x45, 0x1005728f5\ncall    cocos2d__CCNode__init                                          ; +0x48, 0x1005728f8\ntest    al, al                                                         ; +0x4d, 0x1005728fd\njz      short loc_10057292E                                            ; +0x4f, 0x1005728ff\ntest    r14, r14                                                       ; +0x51, 0x100572901\njz      short loc_100572915                                            ; +0x54, 0x100572904\nmov     [rbx+158h], r14                                                ; +0x56, 0x100572906\nmov     rdi, r14                                                       ; +0x5d, 0x10057290d\ncall    cocos2d__CCObject__retain                                      ; +0x60, 0x100572910\nmov     byte ptr [rbx+160h], 0                                         ; +0x65, 0x100572915\nmov     rdi, rbx                                                       ; +0x6c, 0x10057291c\ncall    GauntletNode__generateNode                                     ; +0x6f, 0x10057291f\nmov     rdi, rbx                                                       ; +0x74, 0x100572924\ncall    cocos2d__CCObject__autorelease                                 ; +0x77, 0x100572927\njmp     short loc_100572939                                            ; +0x7c, 0x10057292c\nmov     rax, [rbx]                                                     ; +0x7e, 0x10057292e\nmov     rdi, rbx                                                       ; +0x81, 0x100572931\ncall    qword ptr [rax+10h]                                            ; +0x84, 0x100572934\nxor     ebx, ebx                                                       ; +0x87, 0x100572937\nmov     rax, rbx                                                       ; +0x89, 0x100572939\npop     rbx                                                            ; +0x8c, 0x10057293c\npop     r14                                                            ; +0x8d, 0x10057293d\npop     rbp                                                            ; +0x8f, 0x10057293f\nretn                                                                   ; +0x90, 0x100572940", "xrefs": ["GauntletSelectLayer::setupGauntlets @ 0x1005721ab"], "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"}