// // PlayLayer::showCompleteEffect from 0x6f7e80 to 0x6f8250 (976 bytes) // // 2 xrefs: // > PlayLayer::levelComplete @ 0x703b14 // > @ 0x96298 // // 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 12:51:51 +0000 // __int64 __fastcall PlayLayer::showCompleteEffect(PlayLayer *this) { FMODAudioEngine *v2; // x0 int v3; // w21 int v4; // w1 int v5; // w22 __int64 v6; // x0 float v7; // s9 float v8; // s10 cocos2d::CCDirector *v9; // x0 float v10; // s11 float v11; // w27 float v12; // s8 cocos2d::CCSequence *v13; // x21 cocos2d::CCFiniteTimeAction *v14; // x0 cocos2d::CCAction *v15; // x0 FMODAudioEngine *v16; // x0 FMODAudioEngine *v17; // x0 FMOD::Channel *ActiveMusicChannel; // x0 unsigned __int64 v19; // x0 FMODAudioEngine *v21; // x0 __int64 v22; // x23 cocos2d::CCDirector *v23; // x0 CCLightFlash *WinSize; // x0 float v25; // s12 __int64 v26; // x24 _BYTE *v27; // x2 char v28; // w23 int v29; // [xsp+D8h] [xbp+98h] __int64 v30; // [xsp+E0h] [xbp+A0h] BYREF _BYTE v31[8]; // [xsp+E8h] [xbp+A8h] BYREF _BYTE v32[8]; // [xsp+F0h] [xbp+B0h] BYREF __int64 v33; // [xsp+F8h] [xbp+B8h] BYREF __int64 v34[2]; // [xsp+100h] [xbp+C0h] BYREF void *v35; // [xsp+110h] [xbp+D0h] v2 = *((FMODAudioEngine **)this + 1862); if ( v2 ) { v3 = *((unsigned __int8 *)v2 + 1840); v4 = *((unsigned __int8 *)v2 + 1841); if ( (v4 & v3) != 0 ) { v2 = (FMODAudioEngine *)*((unsigned __int8 *)v2 + 1842); v5 = 1; if ( (_DWORD)v2 ) goto LABEL_4; } v5 = 0; if ( v4 ) goto LABEL_4; } else { v3 = 0; } v22 = FMODAudioEngine::sharedEngine(v2); v34[0] = 0; v34[1] = 0; v35 = nullptr; std::string::__init(v34, "endStart_02.ogg", 0xFu); FMODAudioEngine::playEffect(v22, (char *)v34); v5 = 0; if ( (v34[0] & 1) != 0 ) operator delete(v35); LABEL_4: v6 = *((_QWORD *)this + 1576); if ( v6 && *(_BYTE *)(v6 + 1360) ) { v7 = 90.0; v8 = -30.0; } else { v7 = -90.0; v8 = 30.0; } v9 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 12238); if ( *((_BYTE *)this + 12238) || (v9 = *((cocos2d::CCDirector **)this + 1862)) != nullptr ) { v7 = 0.0; v10 = 0.5; v11 = 180.0; v12 = 16.0; v8 = 0.0; if ( v3 ) goto LABEL_10; goto LABEL_23; } v11 = 45.0; v10 = 1.0; v12 = 8.0; if ( !v3 ) { LABEL_23: v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); WinSize = (CCLightFlash *)cocos2d::CCDirector::getWinSize(&v30, v23); v25 = sqrtf( (float)((float)((float)(*((float *)&v30 + 1) / *((float *)this + 106)) * 0.5) * (float)((float)(*((float *)&v30 + 1) / *((float *)this + 106)) * 0.5)) + (float)((float)(*(float *)&v30 / *((float *)this + 106)) * (float)(*(float *)&v30 / *((float *)this + 106)))); v26 = CCLightFlash::create(WinSize); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 490) + 464LL))( *((_QWORD *)this + 490), v26, 0); *(_QWORD *)(v26 + 344) = (*(__int64 (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 512LL))(this); *(_DWORD *)(v26 + 352) = 100; PlayLayer::getEndPosition(this, (cocos2d::CCPoint *)v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v8, 0.0); cocos2d::CCPoint::operator+(&v33, v31); v27 = *((_BYTE **)this + 407); BYTE1(v29) = v27[2603]; BYTE2(v29) = v27[2604]; LOBYTE(v29) = v27[2602]; CCLightFlash::playEffect( v26, (__int64)&v33, v29, (int)v12, 1u, 0, 1.0, 0.0, 30.0, 20.0, (float)(v8 + v25) + 10.0, v10 * 0.18, v10 * 0.04, v10 * 0.195, v10 * 0.04, v10 * 0.04, v7, v11, 155.0, 100.0, 0.4); v28 = *((_BYTE *)this + 12649); *((_BYTE *)this + 12649) = 0; v9 = (cocos2d::CCDirector *)GJBaseGameLayer::shakeCamera(this, (float)((float)(v12 + 2.0) * 0.195) * v10, 3.0, 0.0); *((_BYTE *)this + 12649) = v28; } LABEL_10: if ( v5 ) { v16 = (FMODAudioEngine *)PlayLayer::showCompleteText(this); } else { v13 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v9, (float)((float)(v12 + 2.0) * 0.195) * v10); v14 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, PlayLayer::showCompleteText, 0); v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v13, v14, 0); v16 = (FMODAudioEngine *)cocos2d::CCNode::runAction(this, v15); } v17 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v16); ActiveMusicChannel = (FMOD::Channel *)FMODAudioEngine::getActiveMusicChannel(v17, 0); if ( ActiveMusicChannel ) FMOD::Channel::setLoopCount(ActiveMusicChannel, 0); v19 = *(unsigned __int8 *)(*((_QWORD *)this + 409) + 349LL); if ( *(_BYTE *)(*((_QWORD *)this + 409) + 349LL) || (v19 = (unsigned int)(*(_DWORD *)(*((_QWORD *)this + 242) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 242) + 332LL)), (_DWORD)v19 == 3001) ) { v21 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v19); FMODAudioEngine::fadeOutMusic(v21, 2.0, 0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source