// // GJBaseGameLayer::playExitDualEffect from 0x99e9b8 to 0x99ee84 (1228 bytes) // // 3 xrefs: // > PlayLayer::destroyPlayer @ 0x6ff830 // > GJBaseGameLayer::toggleDualMode @ 0x9e6cdc // > @ 0xc6c10 // // 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:58:06 +0000 // __int64 __fastcall GJBaseGameLayer::playExitDualEffect(GJBaseGameLayer *this, PlayerObject *a2) { __int64 v4; // x0 SimplePlayer *v5; // x19 __int64 v6; // x0 __int64 v7; // x0 void (__fastcall *v8)(SimplePlayer *, float); // x22 float v9; // s0 void (__fastcall *v10)(SimplePlayer *, float); // x22 float v11; // s0 const cocos2d::CCPoint *v12; // x0 float v13; // s0 float v14; // s8 int v15; // w25 void (__fastcall *v16)(SimplePlayer *, __int64); // x28 __int64 v17; // x0 __int64 SecondColor; // x0 long double v19; // q0 void (__fastcall *v20)(SimplePlayer *, __int64 *, long double); // x27 long double v21; // q0 cocos2d::CCFadeOut *v22; // x0 cocos2d::CCAction *v23; // x27 __int64 v24; // x28 const cocos2d::CCPoint *v25; // x1 cocos2d::CCAction *v26; // x26 int v27; // s1 cocos2d::CCScaleTo *v28; // x0 float v29; // s2 cocos2d::CCRotateBy *v30; // x28 cocos2d::CCAction *v31; // x25 cocos2d::CCFiniteTimeAction *v32; // x0 cocos2d::CCAction *v33; // x28 char v34; // w27 char v35; // w26 __int64 v36; // x0 __int64 v37; // x2 CCCircleWave *v38; // x20 void (__fastcall *v40)(SimplePlayer *, float); // x24 float v41; // s0 __int64 v42; // x0 __int64 v43; // x0 __int64 v44; // x0 __int64 v45; // x0 float v46; // [xsp+70h] [xbp+70h] _BYTE v47[8]; // [xsp+88h] [xbp+88h] BYREF __int64 v48; // [xsp+90h] [xbp+90h] BYREF _BYTE v49[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v50; // [xsp+A0h] [xbp+A0h] BYREF v4 = GameManager::sharedState(_stack_chk_guard); v5 = (SimplePlayer *)SimplePlayer::create((SimplePlayer *)(unsigned int)(*(_DWORD *)(v4 + 716) - *(_DWORD *)(v4 + 720))); if ( *((_BYTE *)a2 + 2419) ) { v7 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2419)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v7 + 740) - *(_DWORD *)(v7 + 744), 2); } else if ( *((_BYTE *)a2 + 2417) ) { v42 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2417)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v42 + 728) - *(_DWORD *)(v42 + 732), 1); } else if ( *((_BYTE *)a2 + 2418) ) { v43 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2418)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v43 + 752) - *(_DWORD *)(v43 + 756), 3); } else if ( *((_BYTE *)a2 + 2420) ) { v45 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2420)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v45 + 764) - *(_DWORD *)(v45 + 768), 4); } else if ( *((_BYTE *)a2 + 2421) ) { v44 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2421)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v44 + 776) - *(_DWORD *)(v44 + 780), 5); } else if ( *((_BYTE *)a2 + 2422) ) { v6 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)a2 + 2422)); SimplePlayer::updatePlayerFrame((__int64)v5, *(_DWORD *)(v6 + 788) - *(_DWORD *)(v6 + 792), 6); } v8 = *(void (__fastcall **)(SimplePlayer *, float))(*(_QWORD *)v5 + 128LL); v9 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 136LL))(a2); v8(v5, v9 * *((float *)this + 106)); v10 = *(void (__fastcall **)(SimplePlayer *, float))(*(_QWORD *)v5 + 144LL); v11 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 152LL))(a2); v10(v5, v11 * *((float *)this + 106)); v12 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 192LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v12); v13 = (*(float (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 368LL))(a2); v14 = v13; if ( *((_BYTE *)this + 1000) ) { v14 = -v13; v15 = -1; v40 = *(void (__fastcall **)(SimplePlayer *, float))(*(_QWORD *)v5 + 128LL); v41 = (*(float (__fastcall **)(SimplePlayer *))(*(_QWORD *)v5 + 136LL))(v5); v40(v5, -v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 150.0, 0.0); cocos2d::CCPoint::operator+(&v50, v47); cocos2d::CCPoint::operator=(v47, &v50); } else { v15 = 1; } (*(void (__fastcall **)(GJBaseGameLayer *, SimplePlayer *, __int64))(*(_QWORD *)this + 464LL))(this, v5, 100); v16 = *(void (__fastcall **)(SimplePlayer *, __int64))(*(_QWORD *)v5 + 960LL); v17 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)a2 + 944LL))(a2); v16(v5, v17); SecondColor = PlayerObject::getSecondColor(a2); LOWORD(v50) = SecondColor; BYTE2(v50) = BYTE2(SecondColor); SimplePlayer::setSecondColor(v5); SimplePlayer::updateColors(v5); cocos2d::CCPoint::operator-(&v48, v47, (char *)this + 992, v19); v20 = *(void (__fastcall **)(SimplePlayer *, __int64 *, long double))(*(_QWORD *)v5 + 184LL); *(__n128 *)&v21 = cocos2d::CCPoint::operator*(&v48, *((float *)this + 106)); v20(v5, &v50, v21); v22 = (cocos2d::CCFadeOut *)(*(__int64 (__fastcall **)(SimplePlayer *, float))(*(_QWORD *)v5 + 360LL))(v5, v14); v23 = (cocos2d::CCAction *)cocos2d::CCFadeOut::create(v22, 0.4); v24 = (*(__int64 (__fastcall **)(SimplePlayer *))(*(_QWORD *)v5 + 192LL))(v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (float)v15 * -124.63, 0.0); cocos2d::CCPoint::operator+(&v50, v24); v26 = (cocos2d::CCAction *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)&v50, 0.4, v25); if ( (*(float (__fastcall **)(SimplePlayer *))(*(_QWORD *)v5 + 136LL))(v5) <= 0.0 ) v27 = -1110651699; else v27 = 1036831949; v46 = *(float *)&v27; if ( (*(float (__fastcall **)(SimplePlayer *))(*(_QWORD *)v5 + 152LL))(v5) <= 0.0 ) v29 = -0.1; else v29 = 0.1; v30 = (cocos2d::CCRotateBy *)cocos2d::CCScaleTo::create(v28, 0.4, v46, v29); v31 = (cocos2d::CCAction *)cocos2d::CCRotateBy::create(v30, 0.4, 180.0); v32 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v5, 536, 1); v33 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v30, v32, 0); cocos2d::CCNode::runAction(v5, v23); cocos2d::CCNode::runAction(v5, v26); cocos2d::CCNode::runAction(v5, v33); cocos2d::CCNode::runAction(v5, v31); v34 = *((_BYTE *)a2 + 2602); v35 = *((_BYTE *)a2 + 2603); LOBYTE(v31) = *((_BYTE *)a2 + 2604); v36 = CCCircleWave::create(nullptr, 10.0, 30.0, 0.4); v37 = *(_QWORD *)v36; *(_BYTE *)(v36 + 340) = v34; *(_BYTE *)(v36 + 341) = v35; v38 = (CCCircleWave *)v36; *(_BYTE *)(v36 + 342) = (_BYTE)v31; (*(void (__fastcall **)(__int64, __int64 *))(v37 + 184))(v36, &v48); (*(void (__fastcall **)(GJBaseGameLayer *, CCCircleWave *, _QWORD))(*(_QWORD *)this + 464LL))(this, v38, 0); *((_DWORD *)v38 + 88) = 1; CCCircleWave::followObject(v38, v5, 0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source