// // GauntletLayer::unlockActiveItem from 0xa78058 to 0xa78434 (988 bytes) // // 3 xrefs: // > @ 0x101998 // > GauntletLayer::setupGauntlet @ 0xa793d4 // > @ 0x1547de8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:00:27 +0000 // __int64 __fastcall GauntletLayer::unlockActiveItem(GauntletLayer *this) { GauntletSprite *v2; // x23 float v3; // s8 cocos2d::CCArray *v4; // x22 unsigned int i; // w21 __int64 v6; // x0 unsigned int j; // w21 __int64 v8; // x0 int v9; // w24 cocos2d::CCSprite *v10; // x0 cocos2d::CCNode *v11; // x21 const char *v12; // x1 cocos2d::CCNode *v13; // x22 float v14; // s8 __int64 v15; // x0 cocos2d::CCFadeOut *v16; // x0 cocos2d::CCAction *v17; // x0 unsigned __int8 v18; // w1 cocos2d::CCAction *v19; // x0 float v20; // s8 cocos2d::CCScaleTo *v21; // x0 cocos2d::CCEaseBounceOut *v22; // x0 cocos2d::CCActionInterval *v23; // x1 cocos2d::CCAction *v24; // x0 __int64 v25; // x1 cocos2d::CCArray *v26; // x19 unsigned int v27; // w0 GJGameLevel *v28; // x19 GameLevelManager *v29; // x0 __int64 SavedLevel; // x0 void (__fastcall *v32)(cocos2d::CCNode *, __int64 *); // [xsp+88h] [xbp+88h] _BYTE v33[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v34; // [xsp+A0h] [xbp+A0h] BYREF __int64 v35; // [xsp+A8h] [xbp+A8h] BYREF __int64 v36[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v37; // [xsp+C0h] [xbp+C0h] if ( *((_QWORD *)this + 57) ) { GauntletNode::frameForType(*((_DWORD *)this + 108), v36); v2 = (GauntletSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 57) + 1072LL))(*((_QWORD *)this + 57)); GauntletSprite::toggleLockedSprite(v2, 0); (*(void (__fastcall **)(__int64 *__return_ptr, GauntletSprite *))(*(_QWORD *)v2 + 336LL))(&v34, v2); v3 = *(float *)&v34 * 0.5; (*(void (__fastcall **)(__int64 *__return_ptr, GauntletSprite *))(*(_QWORD *)v2 + 336LL))(&v35, v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v3, *((float *)&v35 + 1) * 0.5); v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(GauntletSprite *))(*(_QWORD *)v2 + 488LL))(v2); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v4); ++i ) { v6 = cocos2d::CCArray::objectAtIndex(v4, i); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL))(v6, v33); } for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 58)); ++j ) { v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 58), j); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 344LL))(v8, 1); } v9 = 3; do { v10 = (cocos2d::CCSprite *)((char *)v36 + 1); if ( (v36[0] & 1) != 0 ) v10 = (cocos2d::CCSprite *)v37; v11 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(v10, (const char *)LOBYTE(v36[0])); v13 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"gauntletLock_001.png", v12); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v13, 1); v32 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v13 + 184LL); v14 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v11 + 328LL))(v11); v15 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v11 + 328LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, v14 * 0.5, *(float *)(v15 + 4) * 0.5); v32(v13, &v35); (*(void (__fastcall **)(GauntletSprite *, cocos2d::CCNode *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v11, 2); (*(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v11 + 184LL))(v11, v33); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v11 + 960LL))(v11, &unk_1175918); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v11 + 1080LL))(v11, 0x100000302LL); v16 = (cocos2d::CCFadeOut *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v13 + 1080LL))( v13, 0x100000302LL); v17 = (cocos2d::CCAction *)cocos2d::CCFadeOut::create(v16, 0.5); cocos2d::CCNode::runAction(v11, v17); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v13 + 912LL))(v13, 4294967240LL); v19 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(nullptr, 0.5, v18); cocos2d::CCNode::runAction(v13, v19); --v9; } while ( v9 ); v20 = (*(float (__fastcall **)(GauntletSprite *))(*(_QWORD *)v2 + 168LL))(v2); v21 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(GauntletSprite *, float))(*(_QWORD *)v2 + 160LL))(v2, 1.6); v22 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(v21, 0.5, v20); v24 = (cocos2d::CCAction *)cocos2d::CCEaseBounceOut::create(v22, v23); cocos2d::CCNode::runAction(v2, v24); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 57) + 1056LL))(*((_QWORD *)this + 57), 1); v25 = *((_QWORD *)this + 57); v26 = *((cocos2d::CCArray **)this + 52); v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 64LL))(v25); v28 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(v26, v27); *((_BYTE *)v28 + 650) = (unsigned __int8)&dword_0 + 1; v29 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1)); SavedLevel = GameLevelManager::getSavedLevel(v29, v28); if ( SavedLevel ) *(_BYTE *)(SavedLevel + 650) = 1; if ( (v36[0] & 1) != 0 ) operator delete(v37); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source