{"type": "func", "start": 5370772992, "end": 5370774530, "name": "GauntletLayer::unlockActiveItem", "pseudocode": "// \n// GauntletLayer::unlockActiveItem from 0x1401f7e00 to 0x1401f8402 (1538 bytes)\n// \n// 2 xrefs:\n// > GauntletLayer::setupGauntlet @ 0x1401f7806\n// > <???> @ 0x1406cc90c\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\n// Hidden C++ exception states: #wind=2\nvoid GauntletLayer::unlockActiveItem(GauntletLayer *a1)\n{\n  float v1; // xmm0_4\n  float v2; // xmm3_4\n  GauntletSprite *v4; // r12\n  float *v5; // rax\n  double v6; // xmm0_8\n  cocos2d::CCArray *v7; // rsi\n  unsigned int v8; // ebx\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCObject *v11; // rax\n  __int64 v12; // rdx\n  const char *v13; // rcx\n  CCLightFlash *v14; // rsi\n  struct cocos2d::CCSprite *v15; // r14\n  cocos2d::CCSprite_vtbl *v16; // rbx\n  float *v17; // rax\n  const cocos2d::CCPoint *v18; // rax\n  __int64 v19; // rdi\n  __int64 v20; // rbx\n  struct cocos2d::CCFadeOut *v21; // rax\n  cocos2d::ccColor3B *v22; // r8\n  __int64 v23; // rdx\n  struct cocos2d::CCFadeTo *v24; // rax\n  cocos2d::ccColor3B *v25; // r8\n  const char *v26; // rcx\n  CCLightFlash *v27; // r14\n  struct cocos2d::CCSprite *v28; // r15\n  cocos2d::CCSprite_vtbl *v29; // rsi\n  float *v30; // rax\n  const cocos2d::CCPoint *v31; // rax\n  struct cocos2d::CCFadeOut *v32; // rax\n  cocos2d::ccColor3B *v33; // r8\n  __int64 v34; // rdx\n  struct cocos2d::CCFadeTo *v35; // rax\n  cocos2d::ccColor3B *v36; // r8\n  const char *v37; // rcx\n  CCLightFlash *v38; // r14\n  struct cocos2d::CCSprite *v39; // r15\n  cocos2d::CCSprite_vtbl *v40; // rsi\n  float *v41; // rax\n  const cocos2d::CCPoint *v42; // rax\n  struct cocos2d::CCFadeOut *v43; // rax\n  cocos2d::ccColor3B *v44; // r8\n  __int64 v45; // rdx\n  struct cocos2d::CCFadeTo *v46; // rax\n  cocos2d::ccColor3B *v47; // r8\n  double v48; // xmm0_8\n  struct cocos2d::CCScaleTo *v49; // rax\n  struct cocos2d::CCEaseBounceOut *v50; // rax\n  cocos2d::ccColor3B *v51; // r8\n  _BOOL8 v52; // rdx\n  unsigned int v53; // eax\n  struct cocos2d::CCObject *v54; // rbx\n  GameLevelManager *v55; // rcx\n  GJGameLevel *SavedGauntletLevel; // rax\n  int v57; // edx\n  float v58; // [rsp+20h] [rbp-98h] BYREF\n  void *v59; // [rsp+28h] [rbp-90h] BYREF\n  __int64 v60; // [rsp+30h] [rbp-88h] BYREF\n  __int64 v61; // [rsp+38h] [rbp-80h]\n  _QWORD v62[3]; // [rsp+40h] [rbp-78h] BYREF\n  unsigned __int64 v63; // [rsp+58h] [rbp-60h]\n\n  if ( a1->m_activeItemButton )\n  {\n    GauntletNode::frameForType(v62, (unsigned int)a1->m_gauntletType);\n    v4 = (GauntletSprite *)a1->m_activeItemButton->getNormalImage(a1->m_activeItemButton);\n    GauntletSprite::toggleLockedSprite(v4, 0);\n    ((__int64 (__fastcall *)(GauntletSprite *, void **))v4->getScaledContentSize)(v4, &v59);\n    v5 = (float *)((__int64 (__fastcall *)(GauntletSprite *, __int64 *))v4->getScaledContentSize)(v4, &v60);\n    v6 = cocos2d::CCPoint::CCPoint(v1, *v5 * 0.5);\n    v7 = v4->getChildren(v4);\n    v8 = 0;\n    for ( i = 0; i < cocos2d::CCArray::count(v7); ++i )\n    {\n      v10 = cocos2d::CCArray::objectAtIndex(v7, i);\n      v10->__vftable[2].encodeWithCoder(v10, (DS_Dictionary *)&v58);\n    }\n    if ( cocos2d::CCArray::count(a1->m_activeObjects) )\n    {\n      do\n      {\n        v11 = cocos2d::CCArray::objectAtIndex(a1->m_activeObjects, v8);\n        LOBYTE(v12) = 1;\n        ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v11->__vftable[4].update)(v11, v12);\n        ++v8;\n      }\n      while ( v8 < cocos2d::CCArray::count(a1->m_activeObjects) );\n    }\n    v61 = 0x100000302LL;\n    v60 = 0x100000302LL;\n    v13 = (const char *)v62;\n    if ( v63 > 0xF )\n      v13 = (const char *)v62[0];\n    v14 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName(v13);\n    v15 = cocos2d::CCSprite::createWithSpriteFrameName(\"gauntletLock_001.png\");\n    v14->addChild_0(v14, v15, 1);\n    v16 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v14->getContentSize(v14);\n    v17 = (float *)v14->getContentSize(v14);\n    cocos2d::CCPoint::CCPoint(*(float *)&v6, *v17 * 0.5);\n    v16->setPosition_0(v15, v18);\n    v4->addChild_0(v4, v14, 2);\n    v14->setPosition_0(v14, (const cocos2d::CCPoint *)&v58);\n    ((void (__fastcall *)(cocos2d::CCArray **, void *))v14->m_lightStripArray->__vftable)(\n      &v14->m_lightStripArray,\n      &unk_140529A88);\n    v19 = v61;\n    ((void (__fastcall *)(cocos2d::CCNode **, __int64))v14->m_mainLayer->__vftable)(&v14->m_mainLayer, v61);\n    v20 = v60;\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v15->setBlendFunc)(\n      &v15->cocos2d::CCTextureProtocol,\n      v60);\n    v21 = cocos2d::CCFadeOut::create(0.5);\n    cocos2d::CCNode::runAction(v14, (cocos2d::CCPoint)v21, v22, v2, v58);\n    LOBYTE(v23) = -56;\n    v15->setOpacity(&v15->cocos2d::CCRGBAProtocol, v23);\n    v24 = cocos2d::CCFadeTo::create(0.5, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)v15, (cocos2d::CCPoint)v24, v25, v2, v58);\n    v26 = (const char *)v62;\n    if ( v63 > 0xF )\n      v26 = (const char *)v62[0];\n    v27 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName(v26);\n    v28 = cocos2d::CCSprite::createWithSpriteFrameName(\"gauntletLock_001.png\");\n    v27->addChild_0(v27, v28, 1);\n    v29 = v28->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v27->getContentSize(v27);\n    v30 = (float *)v27->getContentSize(v27);\n    cocos2d::CCPoint::CCPoint(0.5, *v30 * 0.5);\n    v29->setPosition_0(v28, v31);\n    v4->addChild_0(v4, v27, 2);\n    v27->setPosition_0(v27, (const cocos2d::CCPoint *)&v58);\n    ((void (__fastcall *)(cocos2d::CCArray **, void *))v27->m_lightStripArray->__vftable)(\n      &v27->m_lightStripArray,\n      &unk_140529A88);\n    ((void (__fastcall *)(cocos2d::CCNode **, __int64))v27->m_mainLayer->__vftable)(&v27->m_mainLayer, v19);\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v28->setBlendFunc)(\n      &v28->cocos2d::CCTextureProtocol,\n      v20);\n    v32 = cocos2d::CCFadeOut::create(0.5);\n    cocos2d::CCNode::runAction(v27, (cocos2d::CCPoint)v32, v33, v2, v58);\n    LOBYTE(v34) = -56;\n    v28->setOpacity(&v28->cocos2d::CCRGBAProtocol, v34);\n    v35 = cocos2d::CCFadeTo::create(0.5, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)v28, (cocos2d::CCPoint)v35, v36, v2, v58);\n    v37 = (const char *)v62;\n    if ( v63 > 0xF )\n      v37 = (const char *)v62[0];\n    v38 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName(v37);\n    v39 = cocos2d::CCSprite::createWithSpriteFrameName(\"gauntletLock_001.png\");\n    v38->addChild_0(v38, v39, 1);\n    v40 = v39->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v38->getContentSize(v38);\n    v41 = (float *)v38->getContentSize(v38);\n    cocos2d::CCPoint::CCPoint(0.5, *v41 * 0.5);\n    v40->setPosition_0(v39, v42);\n    v4->addChild_0(v4, v38, 2);\n    v38->setPosition_0(v38, (const cocos2d::CCPoint *)&v58);\n    ((void (__fastcall *)(cocos2d::CCArray **, void *))v38->m_lightStripArray->__vftable)(\n      &v38->m_lightStripArray,\n      &unk_140529A88);\n    ((void (__fastcall *)(cocos2d::CCNode **, __int64))v38->m_mainLayer->__vftable)(&v38->m_mainLayer, v19);\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v39->setBlendFunc)(\n      &v39->cocos2d::CCTextureProtocol,\n      v20);\n    v43 = cocos2d::CCFadeOut::create(0.5);\n    cocos2d::CCNode::runAction(v38, (cocos2d::CCPoint)v43, v44, v2, v58);\n    LOBYTE(v45) = -56;\n    v39->setOpacity(&v39->cocos2d::CCRGBAProtocol, v45);\n    v46 = cocos2d::CCFadeTo::create(0.5, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)v39, (cocos2d::CCPoint)v46, v47, v2, v58);\n    v48 = ((double (__fastcall *)(GauntletSprite *))v4->getScale)(v4);\n    ((void (__fastcall *)(GauntletSprite *))v4->setScale_0)(v4);\n    v49 = cocos2d::CCScaleTo::create(0.5, *(float *)&v48);\n    v50 = cocos2d::CCEaseBounceOut::create(v49);\n    cocos2d::CCNode::runAction((CCLightFlash *)v4, (cocos2d::CCPoint)v50, v51, v2, v58);\n    LOBYTE(v52) = 1;\n    a1->m_activeItemButton->setEnabled(a1->m_activeItemButton, v52);\n    v53 = a1->m_activeItemButton->getTag(a1->m_activeItemButton);\n    v54 = cocos2d::CCArray::objectAtIndex(a1->m_levels, v53);\n    BYTE2(v54[12].m_unknown2) = 1;\n    v55 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v59 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v59);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v55 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    if ( v54[15].m_uUnknown - v54[15].m_unknown2 <= 0 )\n    {\n      v57 = v54[5].m_uOrderOfArrival - v54[5].m_unknown5;\n      if ( BYTE1(v54[12].m_unknown2) )\n        SavedGauntletLevel = GameLevelManager::getSavedGauntletLevel(v55, v57);\n      else\n        SavedGauntletLevel = GameLevelManager::getSavedLevel(v55, v57);\n    }\n    else\n    {\n      SavedGauntletLevel = GameLevelManager::getSavedDailyLevel(v55, v54[15].m_uUnknown - v54[15].m_unknown2);\n    }\n    if ( SavedGauntletLevel )\n      SavedGauntletLevel->m_gauntletLevel2 = 1;\n    sub_14003A830((__int64)v62);\n  }\n}", "assembly": "; \n; GauntletLayer::unlockActiveItem from 0x1401f7e00 to 0x1401f8402 (1538 bytes)\n; \n; 2 xrefs:\n; > GauntletLayer::setupGauntlet @ 0x1401f7806\n; > <???> @ 0x1406cc90c\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\nmov     rax, rsp                                                       ; +0x0, 0x1401f7e00\nmov     [rax+10h], rbx                                                 ; +0x3, 0x1401f7e03\nmov     [rax+18h], rbp                                                 ; +0x7, 0x1401f7e07\npush    rsi                                                            ; +0xb, 0x1401f7e0b\npush    rdi                                                            ; +0xc, 0x1401f7e0c\npush    r12                                                            ; +0xd, 0x1401f7e0d\npush    r14                                                            ; +0xf, 0x1401f7e0f\npush    r15                                                            ; +0x11, 0x1401f7e11\nsub     rsp, 90h                                                       ; +0x13, 0x1401f7e13\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1a, 0x1401f7e1a\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x1e, 0x1401f7e1e\nmov     rax, cs:__security_cookie                                      ; +0x22, 0x1401f7e22\nxor     rax, rsp                                                       ; +0x29, 0x1401f7e29\nmov     [rsp+0B8h+var_58], rax                                         ; +0x2c, 0x1401f7e2c\nmov     rbp, rcx                                                       ; +0x31, 0x1401f7e31\ncmp     qword ptr [rcx+1C8h], 0                                        ; +0x34, 0x1401f7e34\njz      loc_1401F83CF                                                  ; +0x3c, 0x1401f7e3c\nmov     edx, [rcx+1B0h]                                                ; +0x42, 0x1401f7e42\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x48, 0x1401f7e48\ncall    GauntletNode__frameForType                                     ; +0x4d, 0x1401f7e4d\nnop                                                                    ; +0x52, 0x1401f7e52\nmov     rcx, [rbp+1C8h]                                                ; +0x53, 0x1401f7e53\nmov     rax, [rcx]                                                     ; +0x5a, 0x1401f7e5a\ncall    qword ptr [rax+3A8h]                                           ; +0x5d, 0x1401f7e5d\nmov     r12, rax                                                       ; +0x63, 0x1401f7e63\nxor     edx, edx                                                       ; +0x66, 0x1401f7e66\nmov     rcx, rax                                                       ; +0x68, 0x1401f7e68\ncall    GauntletSprite__toggleLockedSprite                             ; +0x6b, 0x1401f7e6b\nmov     r8, [r12]                                                      ; +0x70, 0x1401f7e70\nlea     rdx, [rsp+0B8h+var_90]                                         ; +0x74, 0x1401f7e74\nmov     rcx, r12                                                       ; +0x79, 0x1401f7e79\ncall    qword ptr [r8+138h]                                            ; +0x7c, 0x1401f7e7c\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x83, 0x1401f7e83\nmov     r8, [r12]                                                      ; +0x88, 0x1401f7e88\nlea     rdx, [rsp+0B8h+var_88]                                         ; +0x8c, 0x1401f7e8c\nmov     rcx, r12                                                       ; +0x91, 0x1401f7e91\ncall    qword ptr [r8+138h]                                            ; +0x94, 0x1401f7e94\nmovss   xmm7, cs:dword_140622B08                                       ; +0x9b, 0x1401f7e9b\nmulss   xmm6, xmm7                                                     ; +0xa3, 0x1401f7ea3\nmovss   xmm1, dword ptr [rax]                                          ; +0xa7, 0x1401f7ea7\nmulss   xmm1, xmm7                                                     ; +0xab, 0x1401f7eab\nmovaps  xmm2, xmm6                                                     ; +0xaf, 0x1401f7eaf\nlea     rcx, [rsp+0B8h+var_98]                                         ; +0xb2, 0x1401f7eb2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x1401f7eb7\nmov     rax, [r12]                                                     ; +0xbd, 0x1401f7ebd\nmov     rcx, r12                                                       ; +0xc1, 0x1401f7ec1\ncall    qword ptr [rax+1D0h]                                           ; +0xc4, 0x1401f7ec4\nmov     rsi, rax                                                       ; +0xca, 0x1401f7eca\nxor     ebx, ebx                                                       ; +0xcd, 0x1401f7ecd\nmov     edi, ebx                                                       ; +0xcf, 0x1401f7ecf\nmov     rcx, rax                                                       ; +0xd1, 0x1401f7ed1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd4, 0x1401f7ed4\ntest    eax, eax                                                       ; +0xda, 0x1401f7eda\njz      short loc_1401F7F0C                                            ; +0xdc, 0x1401f7edc\nxchg    ax, ax                                                         ; +0xde, 0x1401f7ede\nmov     edx, edi                                                       ; +0xe0, 0x1401f7ee0\nmov     rcx, rsi                                                       ; +0xe2, 0x1401f7ee2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe5, 0x1401f7ee5\nmov     r8, [rax]                                                      ; +0xeb, 0x1401f7eeb\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0xee, 0x1401f7eee\nmov     rcx, rax                                                       ; +0xf3, 0x1401f7ef3\ncall    qword ptr [r8+0B8h]                                            ; +0xf6, 0x1401f7ef6\ninc     edi                                                            ; +0xfd, 0x1401f7efd\nmov     rcx, rsi                                                       ; +0xff, 0x1401f7eff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x102, 0x1401f7f02\ncmp     edi, eax                                                       ; +0x108, 0x1401f7f08\njb      short loc_1401F7EE0                                            ; +0x10a, 0x1401f7f0a\nmov     rcx, [rbp+1D0h]                                                ; +0x10c, 0x1401f7f0c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x113, 0x1401f7f13\ntest    eax, eax                                                       ; +0x119, 0x1401f7f19\njz      short loc_1401F7F51                                            ; +0x11b, 0x1401f7f1b\nnop     dword ptr [rax]                                                ; +0x11d, 0x1401f7f1d\nmov     edx, ebx                                                       ; +0x120, 0x1401f7f20\nmov     rcx, [rbp+1D0h]                                                ; +0x122, 0x1401f7f22\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x129, 0x1401f7f29\nmov     r8, [rax]                                                      ; +0x12f, 0x1401f7f2f\nmov     dl, 1                                                          ; +0x132, 0x1401f7f32\nmov     rcx, rax                                                       ; +0x134, 0x1401f7f34\ncall    qword ptr [r8+140h]                                            ; +0x137, 0x1401f7f37\ninc     ebx                                                            ; +0x13e, 0x1401f7f3e\nmov     rcx, [rbp+1D0h]                                                ; +0x140, 0x1401f7f40\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x147, 0x1401f7f47\ncmp     ebx, eax                                                       ; +0x14d, 0x1401f7f4d\njb      short loc_1401F7F20                                            ; +0x14f, 0x1401f7f4f\nmov     dword ptr [rsp+0B8h+var_80], 302h                              ; +0x151, 0x1401f7f51\nmov     dword ptr [rsp+0B8h+var_80+4], 1                               ; +0x159, 0x1401f7f59\nmov     dword ptr [rsp+0B8h+var_88], 302h                              ; +0x161, 0x1401f7f61\nmov     dword ptr [rsp+0B8h+var_88+4], 1                               ; +0x169, 0x1401f7f69\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x171, 0x1401f7f71\ncmp     [rsp+0B8h+var_60], 0Fh                                         ; +0x176, 0x1401f7f76\ncmova   rcx, [rsp+0B8h+var_78]                                         ; +0x17c, 0x1401f7f7c\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x182, 0x1401f7f82\nmov     rsi, rax                                                       ; +0x188, 0x1401f7f88\nlea     rcx, aGauntletlock00; \"gauntletLock_001.png\"                   ; +0x18b, 0x1401f7f8b\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x192, 0x1401f7f92\nmov     r14, rax                                                       ; +0x198, 0x1401f7f98\nmov     r9, [rsi]                                                      ; +0x19b, 0x1401f7f9b\nmov     r8d, 1                                                         ; +0x19e, 0x1401f7f9e\nmov     rdx, rax                                                       ; +0x1a4, 0x1401f7fa4\nmov     rcx, rsi                                                       ; +0x1a7, 0x1401f7fa7\ncall    qword ptr [r9+1B8h]                                            ; +0x1aa, 0x1401f7faa\nmov     rbx, [r14]                                                     ; +0x1b1, 0x1401f7fb1\nmov     rdx, [rsi]                                                     ; +0x1b4, 0x1401f7fb4\nmov     rcx, rsi                                                       ; +0x1b7, 0x1401f7fb7\ncall    qword ptr [rdx+130h]                                           ; +0x1ba, 0x1401f7fba\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x1c0, 0x1401f7fc0\nmov     rdx, [rsi]                                                     ; +0x1c5, 0x1401f7fc5\nmov     rcx, rsi                                                       ; +0x1c8, 0x1401f7fc8\ncall    qword ptr [rdx+130h]                                           ; +0x1cb, 0x1401f7fcb\nmulss   xmm6, xmm7                                                     ; +0x1d1, 0x1401f7fd1\nmovss   xmm1, dword ptr [rax]                                          ; +0x1d5, 0x1401f7fd5\nmulss   xmm1, xmm7                                                     ; +0x1d9, 0x1401f7fd9\nmovaps  xmm2, xmm6                                                     ; +0x1dd, 0x1401f7fdd\nlea     rcx, [rsp+0B8h+var_90]                                         ; +0x1e0, 0x1401f7fe0\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e5, 0x1401f7fe5\nmov     rdx, rax                                                       ; +0x1eb, 0x1401f7feb\nmov     rcx, r14                                                       ; +0x1ee, 0x1401f7fee\ncall    qword ptr [rbx+0B8h]                                           ; +0x1f1, 0x1401f7ff1\nmov     rax, [r12]                                                     ; +0x1f7, 0x1401f7ff7\nmov     r8d, 2                                                         ; +0x1fb, 0x1401f7ffb\nmov     rdx, rsi                                                       ; +0x201, 0x1401f8001\nmov     rcx, r12                                                       ; +0x204, 0x1401f8004\ncall    qword ptr [rax+1B8h]                                           ; +0x207, 0x1401f8007\nmov     rax, [rsi]                                                     ; +0x20d, 0x1401f800d\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0x210, 0x1401f8010\nmov     rcx, rsi                                                       ; +0x215, 0x1401f8015\ncall    qword ptr [rax+0B8h]                                           ; +0x218, 0x1401f8018\nlea     rcx, [rsi+140h]                                                ; +0x21e, 0x1401f801e\nmov     rax, [rcx]                                                     ; +0x225, 0x1401f8025\nlea     rdx, unk_140529A88                                             ; +0x228, 0x1401f8028\ncall    qword ptr [rax]                                                ; +0x22f, 0x1401f802f\nlea     rcx, [rsi+158h]                                                ; +0x231, 0x1401f8031\nmov     rax, [rcx]                                                     ; +0x238, 0x1401f8038\nmov     rdi, [rsp+0B8h+var_80]                                         ; +0x23b, 0x1401f803b\nmov     rdx, rdi                                                       ; +0x240, 0x1401f8040\ncall    qword ptr [rax]                                                ; +0x243, 0x1401f8043\nlea     rcx, [r14+158h]                                                ; +0x245, 0x1401f8045\nmov     rax, [rcx]                                                     ; +0x24c, 0x1401f804c\nmov     rbx, [rsp+0B8h+var_88]                                         ; +0x24f, 0x1401f804f\nmov     rdx, rbx                                                       ; +0x254, 0x1401f8054\ncall    qword ptr [rax]                                                ; +0x257, 0x1401f8057\nmovaps  xmm0, xmm7                                                     ; +0x259, 0x1401f8059\ncall    cs:?create@CCFadeOut@cocos2d@@SAPEAV12@M@Z; cocos2d::CCFadeOut::create(float) ; +0x25c, 0x1401f805c\nmov     rdx, rax                                                       ; +0x262, 0x1401f8062\nmov     rcx, rsi                                                       ; +0x265, 0x1401f8065\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x268, 0x1401f8068\nlea     rcx, [r14+140h]                                                ; +0x26e, 0x1401f806e\nmov     rax, [rcx]                                                     ; +0x275, 0x1401f8075\nmov     dl, 0C8h                                                       ; +0x278, 0x1401f8078\ncall    qword ptr [rax+28h]                                            ; +0x27a, 0x1401f807a\nxor     edx, edx                                                       ; +0x27d, 0x1401f807d\nmovaps  xmm0, xmm7                                                     ; +0x27f, 0x1401f807f\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x282, 0x1401f8082\nmov     rdx, rax                                                       ; +0x288, 0x1401f8088\nmov     rcx, r14                                                       ; +0x28b, 0x1401f808b\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x28e, 0x1401f808e\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x294, 0x1401f8094\ncmp     [rsp+0B8h+var_60], 0Fh                                         ; +0x299, 0x1401f8099\ncmova   rcx, [rsp+0B8h+var_78]                                         ; +0x29f, 0x1401f809f\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x2a5, 0x1401f80a5\nmov     r14, rax                                                       ; +0x2ab, 0x1401f80ab\nlea     rcx, aGauntletlock00; \"gauntletLock_001.png\"                   ; +0x2ae, 0x1401f80ae\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x2b5, 0x1401f80b5\nmov     r15, rax                                                       ; +0x2bb, 0x1401f80bb\nmov     r9, [r14]                                                      ; +0x2be, 0x1401f80be\nmov     r8d, 1                                                         ; +0x2c1, 0x1401f80c1\nmov     rdx, rax                                                       ; +0x2c7, 0x1401f80c7\nmov     rcx, r14                                                       ; +0x2ca, 0x1401f80ca\ncall    qword ptr [r9+1B8h]                                            ; +0x2cd, 0x1401f80cd\nmov     rsi, [r15]                                                     ; +0x2d4, 0x1401f80d4\nmov     rdx, [r14]                                                     ; +0x2d7, 0x1401f80d7\nmov     rcx, r14                                                       ; +0x2da, 0x1401f80da\ncall    qword ptr [rdx+130h]                                           ; +0x2dd, 0x1401f80dd\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x2e3, 0x1401f80e3\nmov     rdx, [r14]                                                     ; +0x2e8, 0x1401f80e8\nmov     rcx, r14                                                       ; +0x2eb, 0x1401f80eb\ncall    qword ptr [rdx+130h]                                           ; +0x2ee, 0x1401f80ee\nmulss   xmm6, xmm7                                                     ; +0x2f4, 0x1401f80f4\nmovss   xmm1, dword ptr [rax]                                          ; +0x2f8, 0x1401f80f8\nmulss   xmm1, xmm7                                                     ; +0x2fc, 0x1401f80fc\nmovaps  xmm2, xmm6                                                     ; +0x300, 0x1401f8100\nlea     rcx, [rsp+0B8h+var_90]                                         ; +0x303, 0x1401f8103\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x308, 0x1401f8108\nmov     rdx, rax                                                       ; +0x30e, 0x1401f810e\nmov     rcx, r15                                                       ; +0x311, 0x1401f8111\ncall    qword ptr [rsi+0B8h]                                           ; +0x314, 0x1401f8114\nmov     rax, [r12]                                                     ; +0x31a, 0x1401f811a\nmov     r8d, 2                                                         ; +0x31e, 0x1401f811e\nmov     rdx, r14                                                       ; +0x324, 0x1401f8124\nmov     rcx, r12                                                       ; +0x327, 0x1401f8127\ncall    qword ptr [rax+1B8h]                                           ; +0x32a, 0x1401f812a\nmov     rax, [r14]                                                     ; +0x330, 0x1401f8130\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0x333, 0x1401f8133\nmov     rcx, r14                                                       ; +0x338, 0x1401f8138\ncall    qword ptr [rax+0B8h]                                           ; +0x33b, 0x1401f813b\nlea     rcx, [r14+140h]                                                ; +0x341, 0x1401f8141\nmov     rax, [rcx]                                                     ; +0x348, 0x1401f8148\nlea     rdx, unk_140529A88                                             ; +0x34b, 0x1401f814b\ncall    qword ptr [rax]                                                ; +0x352, 0x1401f8152\nlea     rcx, [r14+158h]                                                ; +0x354, 0x1401f8154\nmov     rax, [rcx]                                                     ; +0x35b, 0x1401f815b\nmov     rdx, rdi                                                       ; +0x35e, 0x1401f815e\ncall    qword ptr [rax]                                                ; +0x361, 0x1401f8161\nlea     rcx, [r15+158h]                                                ; +0x363, 0x1401f8163\nmov     rax, [rcx]                                                     ; +0x36a, 0x1401f816a\nmov     rdx, rbx                                                       ; +0x36d, 0x1401f816d\ncall    qword ptr [rax]                                                ; +0x370, 0x1401f8170\nmovaps  xmm0, xmm7                                                     ; +0x372, 0x1401f8172\ncall    cs:?create@CCFadeOut@cocos2d@@SAPEAV12@M@Z; cocos2d::CCFadeOut::create(float) ; +0x375, 0x1401f8175\nmov     rdx, rax                                                       ; +0x37b, 0x1401f817b\nmov     rcx, r14                                                       ; +0x37e, 0x1401f817e\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x381, 0x1401f8181\nlea     rcx, [r15+140h]                                                ; +0x387, 0x1401f8187\nmov     rax, [rcx]                                                     ; +0x38e, 0x1401f818e\nmov     dl, 0C8h                                                       ; +0x391, 0x1401f8191\ncall    qword ptr [rax+28h]                                            ; +0x393, 0x1401f8193\nxor     edx, edx                                                       ; +0x396, 0x1401f8196\nmovaps  xmm0, xmm7                                                     ; +0x398, 0x1401f8198\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x39b, 0x1401f819b\nmov     rdx, rax                                                       ; +0x3a1, 0x1401f81a1\nmov     rcx, r15                                                       ; +0x3a4, 0x1401f81a4\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x3a7, 0x1401f81a7\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x3ad, 0x1401f81ad\ncmp     [rsp+0B8h+var_60], 0Fh                                         ; +0x3b2, 0x1401f81b2\ncmova   rcx, [rsp+0B8h+var_78]                                         ; +0x3b8, 0x1401f81b8\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x3be, 0x1401f81be\nmov     r14, rax                                                       ; +0x3c4, 0x1401f81c4\nlea     rcx, aGauntletlock00; \"gauntletLock_001.png\"                   ; +0x3c7, 0x1401f81c7\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x3ce, 0x1401f81ce\nmov     r15, rax                                                       ; +0x3d4, 0x1401f81d4\nmov     r9, [r14]                                                      ; +0x3d7, 0x1401f81d7\nmov     r8d, 1                                                         ; +0x3da, 0x1401f81da\nmov     rdx, rax                                                       ; +0x3e0, 0x1401f81e0\nmov     rcx, r14                                                       ; +0x3e3, 0x1401f81e3\ncall    qword ptr [r9+1B8h]                                            ; +0x3e6, 0x1401f81e6\nmov     rsi, [r15]                                                     ; +0x3ed, 0x1401f81ed\nmov     rdx, [r14]                                                     ; +0x3f0, 0x1401f81f0\nmov     rcx, r14                                                       ; +0x3f3, 0x1401f81f3\ncall    qword ptr [rdx+130h]                                           ; +0x3f6, 0x1401f81f6\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x3fc, 0x1401f81fc\nmov     rdx, [r14]                                                     ; +0x401, 0x1401f8201\nmov     rcx, r14                                                       ; +0x404, 0x1401f8204\ncall    qword ptr [rdx+130h]                                           ; +0x407, 0x1401f8207\nmulss   xmm6, xmm7                                                     ; +0x40d, 0x1401f820d\nmovss   xmm1, dword ptr [rax]                                          ; +0x411, 0x1401f8211\nmulss   xmm1, xmm7                                                     ; +0x415, 0x1401f8215\nmovaps  xmm2, xmm6                                                     ; +0x419, 0x1401f8219\nlea     rcx, [rsp+0B8h+var_90]                                         ; +0x41c, 0x1401f821c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x421, 0x1401f8221\nmov     rdx, rax                                                       ; +0x427, 0x1401f8227\nmov     rcx, r15                                                       ; +0x42a, 0x1401f822a\ncall    qword ptr [rsi+0B8h]                                           ; +0x42d, 0x1401f822d\nmov     rax, [r12]                                                     ; +0x433, 0x1401f8233\nmov     r8d, 2                                                         ; +0x437, 0x1401f8237\nmov     rdx, r14                                                       ; +0x43d, 0x1401f823d\nmov     rcx, r12                                                       ; +0x440, 0x1401f8240\ncall    qword ptr [rax+1B8h]                                           ; +0x443, 0x1401f8243\nmov     rax, [r14]                                                     ; +0x449, 0x1401f8249\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0x44c, 0x1401f824c\nmov     rcx, r14                                                       ; +0x451, 0x1401f8251\ncall    qword ptr [rax+0B8h]                                           ; +0x454, 0x1401f8254\nlea     rcx, [r14+140h]                                                ; +0x45a, 0x1401f825a\nmov     rax, [rcx]                                                     ; +0x461, 0x1401f8261\nlea     rdx, unk_140529A88                                             ; +0x464, 0x1401f8264\ncall    qword ptr [rax]                                                ; +0x46b, 0x1401f826b\nlea     rcx, [r14+158h]                                                ; +0x46d, 0x1401f826d\nmov     rax, [rcx]                                                     ; +0x474, 0x1401f8274\nmov     rdx, rdi                                                       ; +0x477, 0x1401f8277\ncall    qword ptr [rax]                                                ; +0x47a, 0x1401f827a\nlea     rcx, [r15+158h]                                                ; +0x47c, 0x1401f827c\nmov     rax, [rcx]                                                     ; +0x483, 0x1401f8283\nmov     rdx, rbx                                                       ; +0x486, 0x1401f8286\ncall    qword ptr [rax]                                                ; +0x489, 0x1401f8289\nmovaps  xmm0, xmm7                                                     ; +0x48b, 0x1401f828b\ncall    cs:?create@CCFadeOut@cocos2d@@SAPEAV12@M@Z; cocos2d::CCFadeOut::create(float) ; +0x48e, 0x1401f828e\nmov     rdx, rax                                                       ; +0x494, 0x1401f8294\nmov     rcx, r14                                                       ; +0x497, 0x1401f8297\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x49a, 0x1401f829a\nlea     rcx, [r15+140h]                                                ; +0x4a0, 0x1401f82a0\nmov     rax, [rcx]                                                     ; +0x4a7, 0x1401f82a7\nmov     dl, 0C8h                                                       ; +0x4aa, 0x1401f82aa\ncall    qword ptr [rax+28h]                                            ; +0x4ac, 0x1401f82ac\nxor     edx, edx                                                       ; +0x4af, 0x1401f82af\nmovaps  xmm0, xmm7                                                     ; +0x4b1, 0x1401f82b1\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x4b4, 0x1401f82b4\nmov     rdx, rax                                                       ; +0x4ba, 0x1401f82ba\nmov     rcx, r15                                                       ; +0x4bd, 0x1401f82bd\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x4c0, 0x1401f82c0\nmov     rax, [r12]                                                     ; +0x4c6, 0x1401f82c6\nmov     rcx, r12                                                       ; +0x4ca, 0x1401f82ca\ncall    qword ptr [rax+0A8h]                                           ; +0x4cd, 0x1401f82cd\nmovaps  xmm6, xmm0                                                     ; +0x4d3, 0x1401f82d3\nmov     rax, [r12]                                                     ; +0x4d6, 0x1401f82d6\nmovss   xmm1, cs:dword_140622D24                                       ; +0x4da, 0x1401f82da\nmov     rcx, r12                                                       ; +0x4e2, 0x1401f82e2\ncall    qword ptr [rax+0A0h]                                           ; +0x4e5, 0x1401f82e5\nmovaps  xmm1, xmm6                                                     ; +0x4eb, 0x1401f82eb\nmovaps  xmm0, xmm7                                                     ; +0x4ee, 0x1401f82ee\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x4f1, 0x1401f82f1\nmov     rcx, rax                                                       ; +0x4f7, 0x1401f82f7\ncall    cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x4fa, 0x1401f82fa\nmov     rdx, rax                                                       ; +0x500, 0x1401f8300\nmov     rcx, r12                                                       ; +0x503, 0x1401f8303\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x506, 0x1401f8306\nmov     rcx, [rbp+1C8h]                                                ; +0x50c, 0x1401f830c\nmov     rax, [rcx]                                                     ; +0x513, 0x1401f8313\nmov     dl, 1                                                          ; +0x516, 0x1401f8316\ncall    qword ptr [rax+398h]                                           ; +0x518, 0x1401f8318\nmov     rcx, [rbp+1C8h]                                                ; +0x51e, 0x1401f831e\nmov     rax, [rcx]                                                     ; +0x525, 0x1401f8325\ncall    qword ptr [rax+38h]                                            ; +0x528, 0x1401f8328\nmov     edx, eax                                                       ; +0x52b, 0x1401f832b\nmov     rcx, [rbp+1A0h]                                                ; +0x52d, 0x1401f832d\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x534, 0x1401f8334\nmov     rbx, rax                                                       ; +0x53a, 0x1401f833a\nmov     byte ptr [rax+2CAh], 1                                         ; +0x53d, 0x1401f833d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x544, 0x1401f8344\ntest    rcx, rcx                                                       ; +0x54b, 0x1401f834b\njnz     short loc_1401F837F                                            ; +0x54e, 0x1401f834e\nmov     ecx, 3D0h; Size                                                ; +0x550, 0x1401f8350\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x555, 0x1401f8355\nmov     [rsp+0B8h+var_90], rax                                         ; +0x55a, 0x1401f835a\nmov     rcx, rax                                                       ; +0x55f, 0x1401f835f\ncall    sub_140141280                                                  ; +0x562, 0x1401f8362\nnop                                                                    ; +0x567, 0x1401f8367\nmov     cs:qword_1406C2EC0, rax                                        ; +0x568, 0x1401f8368\nmov     rdx, [rax]                                                     ; +0x56f, 0x1401f836f\nmov     rcx, rax                                                       ; +0x572, 0x1401f8372\ncall    qword ptr [rdx+48h]                                            ; +0x575, 0x1401f8375\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x578, 0x1401f8378\nmov     edx, [rbx+36Ch]                                                ; +0x57f, 0x1401f837f\nsub     edx, [rbx+370h]                                                ; +0x585, 0x1401f8385\ntest    edx, edx                                                       ; +0x58b, 0x1401f838b\njle     short loc_1401F8396                                            ; +0x58d, 0x1401f838d\ncall    GameLevelManager__getSavedDailyLevel                           ; +0x58f, 0x1401f838f\njmp     short loc_1401F83B9                                            ; +0x594, 0x1401f8394\nmov     edx, [rbx+148h]                                                ; +0x596, 0x1401f8396\nmov     eax, [rbx+14Ch]                                                ; +0x59c, 0x1401f839c\nsub     edx, eax                                                       ; +0x5a2, 0x1401f83a2\ncmp     byte ptr [rbx+2C9h], 0                                         ; +0x5a4, 0x1401f83a4\njz      short loc_1401F83B4                                            ; +0x5ab, 0x1401f83ab\ncall    GameLevelManager__getSavedGauntletLevel                        ; +0x5ad, 0x1401f83ad\njmp     short loc_1401F83B9                                            ; +0x5b2, 0x1401f83b2\ncall    GameLevelManager__getSavedLevel                                ; +0x5b4, 0x1401f83b4\ntest    rax, rax                                                       ; +0x5b9, 0x1401f83b9\njz      short loc_1401F83C5                                            ; +0x5bc, 0x1401f83bc\nmov     byte ptr [rax+2CAh], 1                                         ; +0x5be, 0x1401f83be\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x5c5, 0x1401f83c5\ncall    sub_14003A830                                                  ; +0x5ca, 0x1401f83ca\nmov     rcx, [rsp+0B8h+var_58]                                         ; +0x5cf, 0x1401f83cf\nxor     rcx, rsp; StackCookie                                          ; +0x5d4, 0x1401f83d4\ncall    __security_check_cookie                                        ; +0x5d7, 0x1401f83d7\nlea     r11, [rsp+0B8h+var_28]                                         ; +0x5dc, 0x1401f83dc\nmov     rbx, [r11+38h]                                                 ; +0x5e4, 0x1401f83e4\nmov     rbp, [r11+40h]                                                 ; +0x5e8, 0x1401f83e8\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x5ec, 0x1401f83ec\nmovaps  xmm7, [rsp+0B8h+var_48]                                        ; +0x5f1, 0x1401f83f1\nmov     rsp, r11                                                       ; +0x5f6, 0x1401f83f6\npop     r15                                                            ; +0x5f9, 0x1401f83f9\npop     r14                                                            ; +0x5fb, 0x1401f83fb\npop     r12                                                            ; +0x5fd, 0x1401f83fd\npop     rdi                                                            ; +0x5ff, 0x1401f83ff\npop     rsi                                                            ; +0x600, 0x1401f8400\nretn                                                                   ; +0x601, 0x1401f8401", "xrefs": ["GauntletLayer::setupGauntlet @ 0x1401f7806", "<???> @ 0x1406cc90c"], "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"}