// // GauntletLayer::unlockActiveItem from 0x10037f590 to 0x10037fb1d (1421 bytes) // // 1 xrefs: // > GauntletLayer::setupGauntlet @ 0x10037ebce // // This function is hookable on this platform (idp: pc, 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 12:29:08 +0000 // void __fastcall GauntletLayer::unlockActiveItem(__int64 a1) { __int64 v2; // r14 double v3; // xmm0_8 __int64 v4; // r15 unsigned int i; // r12d __int64 v6; // rax unsigned int j; // r15d __int64 v8; // rax _BYTE *v9; // r15 _BYTE *v10; // rdi char *v11; // r13 char *v12; // r12 __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax _BYTE *v16; // rdi char *v17; // r13 char *v18; // r12 __int64 v19; // rax __int64 v20; // rax __int64 v21; // rax char *v22; // r12 char *v23; // r15 __int64 v24; // rax __int64 v25; // rax __int64 v26; // rsi __int64 v27; // rax __int64 v28; // rax __int64 v29; // r14 unsigned int v30; // eax __int64 v31; // rbx __int64 v32; // rax __int64 SavedLevel_1; // rax _BYTE v34[4]; // [rsp+0h] [rbp-60h] BYREF float v35; // [rsp+4h] [rbp-5Ch] char v36; // [rsp+8h] [rbp-58h] BYREF _BYTE v37[15]; // [rsp+9h] [rbp-57h] BYREF void *__p; // [rsp+18h] [rbp-48h] float v39[2]; // [rsp+24h] [rbp-3Ch] BYREF float v40[2]; // [rsp+2Ch] [rbp-34h] BYREF float v41; // [rsp+34h] [rbp-2Ch] if ( *(_QWORD *)(a1 + 456) ) { GauntletNode::frameForType(&v36, *(unsigned int *)(a1 + 432)); v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 1072LL))(*(_QWORD *)(a1 + 456)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 576LL))(v2); GauntletSprite::addNormalSprite(v2); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v2 + 336LL))(v40, v2); v41 = v40[0]; (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v2 + 336LL))(v34, v2); *(_QWORD *)&v3 = LODWORD(v41); *(float *)&v3 = v41 * 0.5; sub_100278250(v39, v41 * 0.5, v35 * 0.5); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 488LL))(v2); for ( i = 0; i < (unsigned int)sub_1007FEF90(v4); ++i ) { v6 = sub_1007FEFE0(v4, i); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v39); } for ( j = 0; j < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 464)); ++j ) { v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 464), j); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 344LL))(v8, 1); } v9 = v37; v10 = v37; if ( (v36 & 1) != 0 ) v10 = __p; v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v10, v3); v12 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gauntletLock_001.png", v3); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v12, 1); v41 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v11 + 328LL))(v11); v13 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v11 + 328LL))(v11); sub_100278250(v40, v41 * 0.5, 0.5 * *(float *)(v13 + 4)); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v12 + 184LL))(v12, v40); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v11, 2); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v11 + 184LL))(v11, v39); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v11 + 960LL))(v11, &unk_100A08783); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v11 + 1080LL))(v11, 0x100000302LL); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v12 + 1080LL))(v12, 0x100000302LL); v14 = cocos2d::CCFadeOut::create(0.5); cocos2d::CCNode::runAction((__int64)v11, v14); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v12 + 912LL))(v12, 200); v15 = cocos2d::CCFadeTo::create(0, 0.5); cocos2d::CCNode::runAction((__int64)v12, v15); v16 = v37; if ( (v36 & 1) != 0 ) v16 = __p; v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v16, COERCE_DOUBLE(1056964608)); v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gauntletLock_001.png", COERCE_DOUBLE(1056964608)); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v17 + 464LL))(v17, v18, 1); v41 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v17 + 328LL))(v17); v19 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v17 + 328LL))(v17); sub_100278250(v40, v41 * 0.5, 0.5 * *(float *)(v19 + 4)); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v18 + 184LL))(v18, v40); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v17, 2); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v17 + 184LL))(v17, v39); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v17 + 960LL))(v17, &unk_100A08783); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v17 + 1080LL))(v17, 0x100000302LL); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v18 + 1080LL))(v18, 0x100000302LL); v20 = cocos2d::CCFadeOut::create(0.5); cocos2d::CCNode::runAction((__int64)v17, v20); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v18 + 912LL))(v18, 200); v21 = cocos2d::CCFadeTo::create(0, 0.5); cocos2d::CCNode::runAction((__int64)v18, v21); if ( (v36 & 1) != 0 ) v9 = __p; v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v9, COERCE_DOUBLE(1056964608)); v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gauntletLock_001.png", COERCE_DOUBLE(1056964608)); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v22 + 464LL))(v22, v23, 1); v41 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v22 + 328LL))(v22); v24 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v22 + 328LL))(v22); sub_100278250(v40, v41 * 0.5, 0.5 * *(float *)(v24 + 4)); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v23 + 184LL))(v23, v40); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v22, 2); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v22 + 184LL))(v22, v39); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v22 + 960LL))(v22, &unk_100A08783); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v22 + 1080LL))(v22, 0x100000302LL); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v23 + 1080LL))(v23, 0x100000302LL); v25 = cocos2d::CCFadeOut::create(0.5); cocos2d::CCNode::runAction((__int64)v22, v25); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v23 + 912LL))(v23, 200); v26 = cocos2d::CCFadeTo::create(0, 0.5); cocos2d::CCNode::runAction((__int64)v23, v26); v41 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 1.6); v27 = cocos2d::CCScaleTo::create_1(0.5, v41); v28 = cocos2d::CCEaseBounceOut::create(v27); cocos2d::CCNode::runAction(v2, v28); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 1056LL))(*(_QWORD *)(a1 + 456), 1); v29 = *(_QWORD *)(a1 + 416); v30 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 64LL))(*(_QWORD *)(a1 + 456)); v31 = sub_1007FEFE0(v29, v30); *(_BYTE *)(v31 + 650) = 1; v32 = GameLevelManager::sharedState(COERCE_DOUBLE(1056964608)); SavedLevel_1 = GameLevelManager::getSavedLevel_1(v32, v31); if ( SavedLevel_1 ) *(_BYTE *)(SavedLevel_1 + 650) = 1; if ( (v36 & 1) != 0 ) operator delete(__p); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source