{"type": "func", "start": 4298720528, "end": 4298720716, "name": "GauntletSprite::create", "pseudocode": "// \n// GauntletSprite::create from 0x100394510 to 0x1003945cc (188 bytes)\n// \n// 1 xrefs:\n// > GauntletLayer::setupGauntlet @ 0x1003935a0\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\nGauntletSprite *__fastcall GauntletSprite::create(GauntletType a1, bool a2)\n{\n  __int64 v2; // rax\n  GauntletSprite *v3; // rbx\n  float v5[8]; // [rsp+0h] [rbp-20h] BYREF\n\n  *(_QWORD *)v5 = v2;\n  v3 = (GauntletSprite *)operator new(0x140u);\n  __bzero(v3, 320);\n  cocos2d::CCNode::CCNode((__int64)v3);\n  v3->__vftable = (GauntletSprite_vtbl *)off_100920278;\n  if ( cocos2d::CCNode::init(v3) )\n  {\n    v3->m_gauntletType = a1;\n    sub_10028CBF0(v5, 60.0, 60.0);\n    ((void (__fastcall *)(GauntletSprite *, float *))v3->setContentSize)(v3, v5);\n    ((void (__fastcall *)(GauntletSprite *))v3->removeAllChildren)(v3);\n    if ( a2 )\n      GauntletSprite::addLockedSprite(v3);\n    else\n      GauntletSprite::addNormalSprite(v3);\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(GauntletSprite *))v3->~GauntletSprite_0)(v3);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; GauntletSprite::create from 0x100394510 to 0x1003945cc (188 bytes)\n; \n; 1 xrefs:\n; > GauntletLayer::setupGauntlet @ 0x1003935a0\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, 0x100394510\nmov     rbp, rsp                                                       ; +0x1, 0x100394511\npush    r15                                                            ; +0x4, 0x100394514\npush    r14                                                            ; +0x6, 0x100394516\npush    rbx                                                            ; +0x8, 0x100394518\npush    rax                                                            ; +0x9, 0x100394519\nmov     r14d, esi                                                      ; +0xa, 0x10039451a\nmov     r15d, edi                                                      ; +0xd, 0x10039451d\nmov     edi, 140h; __sz                                                ; +0x10, 0x100394520\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x100394525\nmov     rbx, rax                                                       ; +0x1a, 0x10039452a\nmov     esi, 140h                                                      ; +0x1d, 0x10039452d\nmov     rdi, rax                                                       ; +0x22, 0x100394532\ncall    ___bzero                                                       ; +0x25, 0x100394535\nmov     rdi, rbx                                                       ; +0x2a, 0x10039453a\ncall    cocos2d__CCNode__CCNode                                        ; +0x2d, 0x10039453d\nlea     rax, _ZTV14GauntletSprite; `vtable for'GauntletSprite          ; +0x32, 0x100394542\nadd     rax, 10h                                                       ; +0x39, 0x100394549\nmov     [rbx], rax                                                     ; +0x3d, 0x10039454d\nmov     rdi, rbx                                                       ; +0x40, 0x100394550\ncall    cocos2d__CCNode__init                                          ; +0x43, 0x100394553\ntest    al, al                                                         ; +0x48, 0x100394558\njz      short loc_1003945A4                                            ; +0x4a, 0x10039455a\nmov     [rbx+13Ch], r15d                                               ; +0x4c, 0x10039455c\nlea     r15, [rbp+var_20]                                              ; +0x53, 0x100394563\nmovss   xmm0, cs:dword_100815028                                       ; +0x57, 0x100394567\nmov     rdi, r15                                                       ; +0x5f, 0x10039456f\nmovaps  xmm1, xmm0                                                     ; +0x62, 0x100394572\ncall    sub_10028CBF0                                                  ; +0x65, 0x100394575\nmov     rax, [rbx]                                                     ; +0x6a, 0x10039457a\nmov     rdi, rbx                                                       ; +0x6d, 0x10039457d\nmov     rsi, r15                                                       ; +0x70, 0x100394580\ncall    qword ptr [rax+130h]                                           ; +0x73, 0x100394583\nmov     rax, [rbx]                                                     ; +0x79, 0x100394589\nmov     rdi, rbx                                                       ; +0x7c, 0x10039458c\ncall    qword ptr [rax+230h]                                           ; +0x7f, 0x10039458f\nmov     rdi, rbx                                                       ; +0x85, 0x100394595\ntest    r14b, r14b                                                     ; +0x88, 0x100394598\njz      short loc_1003945B1                                            ; +0x8b, 0x10039459b\ncall    GauntletSprite__addLockedSprite                                ; +0x8d, 0x10039459d\njmp     short loc_1003945B6                                            ; +0x92, 0x1003945a2\nmov     rax, [rbx]                                                     ; +0x94, 0x1003945a4\nmov     rdi, rbx                                                       ; +0x97, 0x1003945a7\ncall    qword ptr [rax+10h]                                            ; +0x9a, 0x1003945aa\nxor     ebx, ebx                                                       ; +0x9d, 0x1003945ad\njmp     short loc_1003945BE                                            ; +0x9f, 0x1003945af\ncall    GauntletSprite__addNormalSprite                                ; +0xa1, 0x1003945b1\nmov     rdi, rbx                                                       ; +0xa6, 0x1003945b6\ncall    cocos2d__CCObject__autorelease                                 ; +0xa9, 0x1003945b9\nmov     rax, rbx                                                       ; +0xae, 0x1003945be\nadd     rsp, 8                                                         ; +0xb1, 0x1003945c1\npop     rbx                                                            ; +0xb5, 0x1003945c5\npop     r14                                                            ; +0xb6, 0x1003945c6\npop     r15                                                            ; +0xb8, 0x1003945c8\npop     rbp                                                            ; +0xba, 0x1003945ca\nretn                                                                   ; +0xbb, 0x1003945cb", "xrefs": ["GauntletLayer::setupGauntlet @ 0x1003935a0"], "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"}