{"type": "func", "start": 4298722640, "end": 4298722812, "name": "GauntletSprite::addNormalSprite", "pseudocode": "// \n// GauntletSprite::addNormalSprite from 0x100394d50 to 0x100394dfc (172 bytes)\n// \n// 4 xrefs:\n// > GauntletSprite::create @ 0x1003945b1\n// > GauntletLayer::unlockActiveItem @ 0x100394673\n// > GauntletSprite::toggleLockedSprite @ 0x100394c1b\n// > GauntletSprite::init @ 0x100394d2c\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\nvoid __fastcall GauntletSprite::addNormalSprite(GauntletSprite *a1)\n{\n  const char *v2; // rdi\n  cocos2d::CCSprite *v3; // rbx\n  __int64 v4; // rax\n  float v5; // [rsp+8h] [rbp-38h] BYREF\n  char v6; // [rsp+10h] [rbp-30h] BYREF\n  char v7; // [rsp+11h] [rbp-2Fh] BYREF\n  void *__p; // [rsp+20h] [rbp-20h]\n  float v9; // [rsp+2Ch] [rbp-14h]\n\n  GauntletNode::frameForType(&v6, (unsigned int)a1->m_gauntletType);\n  if ( (v6 & 1) != 0 )\n    v2 = (const char *)__p;\n  else\n    v2 = &v7;\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(v2);\n  ((void (__fastcall *)(GauntletSprite *, cocos2d::CCSprite *))a1->addChild)(a1, v3);\n  v9 = *(float *)((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1);\n  v4 = ((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1);\n  sub_10028CBE0(&v5, v9 * 0.5, 0.5 * *(float *)(v4 + 4));\n  ((void (__fastcall *)(cocos2d::CCSprite *, float *))v3->setPosition)(v3, &v5);\n  if ( (v6 & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GauntletSprite::addNormalSprite from 0x100394d50 to 0x100394dfc (172 bytes)\n; \n; 4 xrefs:\n; > GauntletSprite::create @ 0x1003945b1\n; > GauntletLayer::unlockActiveItem @ 0x100394673\n; > GauntletSprite::toggleLockedSprite @ 0x100394c1b\n; > GauntletSprite::init @ 0x100394d2c\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, 0x100394d50\nmov     rbp, rsp                                                       ; +0x1, 0x100394d51\npush    r14                                                            ; +0x4, 0x100394d54\npush    rbx                                                            ; +0x6, 0x100394d56\nsub     rsp, 30h                                                       ; +0x7, 0x100394d57\nmov     r14, rdi                                                       ; +0xb, 0x100394d5b\nmov     esi, [rdi+13Ch]                                                ; +0xe, 0x100394d5e\nlea     rdi, [rbp+var_30]                                              ; +0x14, 0x100394d64\ncall    GauntletNode__frameForType                                     ; +0x18, 0x100394d68\ntest    [rbp+var_30], 1                                                ; +0x1d, 0x100394d6d\njz      short loc_100394D79                                            ; +0x21, 0x100394d71\nmov     rdi, [rbp+__p]                                                 ; +0x23, 0x100394d73\njmp     short loc_100394D7D                                            ; +0x27, 0x100394d77\nlea     rdi, [rbp+var_2F]                                              ; +0x29, 0x100394d79\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x2d, 0x100394d7d\nmov     rbx, rax                                                       ; +0x32, 0x100394d82\nmov     rax, [r14]                                                     ; +0x35, 0x100394d85\nmov     rdi, r14                                                       ; +0x38, 0x100394d88\nmov     rsi, rbx                                                       ; +0x3b, 0x100394d8b\ncall    qword ptr [rax+1B8h]                                           ; +0x3e, 0x100394d8e\nmov     rax, [r14]                                                     ; +0x44, 0x100394d94\nmov     rdi, r14                                                       ; +0x47, 0x100394d97\ncall    qword ptr [rax+138h]                                           ; +0x4a, 0x100394d9a\nmovss   xmm0, dword ptr [rax]                                          ; +0x50, 0x100394da0\nmovss   [rbp+var_14], xmm0                                             ; +0x54, 0x100394da4\nmov     rax, [r14]                                                     ; +0x59, 0x100394da9\nmov     rdi, r14                                                       ; +0x5c, 0x100394dac\ncall    qword ptr [rax+138h]                                           ; +0x5f, 0x100394daf\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x65, 0x100394db5\nmovss   xmm0, [rbp+var_14]                                             ; +0x6d, 0x100394dbd\nmulss   xmm0, xmm1                                                     ; +0x72, 0x100394dc2\nmulss   xmm1, dword ptr [rax+4]                                        ; +0x76, 0x100394dc6\nlea     rdi, [rbp+var_38]                                              ; +0x7b, 0x100394dcb\ncall    sub_10028CBE0                                                  ; +0x7f, 0x100394dcf\nmov     rax, [rbx]                                                     ; +0x84, 0x100394dd4\nlea     rsi, [rbp+var_38]                                              ; +0x87, 0x100394dd7\nmov     rdi, rbx                                                       ; +0x8b, 0x100394ddb\ncall    qword ptr [rax+0B8h]                                           ; +0x8e, 0x100394dde\ntest    [rbp+var_30], 1                                                ; +0x94, 0x100394de4\njz      short loc_100394DF3                                            ; +0x98, 0x100394de8\nmov     rdi, [rbp+__p]; __p                                            ; +0x9a, 0x100394dea\ncall    __ZdlPv; operator delete(void *)                               ; +0x9e, 0x100394dee\nadd     rsp, 30h                                                       ; +0xa3, 0x100394df3\npop     rbx                                                            ; +0xa7, 0x100394df7\npop     r14                                                            ; +0xa8, 0x100394df8\npop     rbp                                                            ; +0xaa, 0x100394dfa\nretn                                                                   ; +0xab, 0x100394dfb", "xrefs": ["GauntletSprite::create @ 0x1003945b1", "GauntletLayer::unlockActiveItem @ 0x100394673", "GauntletSprite::toggleLockedSprite @ 0x100394c1b", "GauntletSprite::init @ 0x100394d2c"], "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"}