// // PlayLayer::playEndAnimationToPos from 0x6f3dc8 to 0x6f4150 (904 bytes) // // 2 xrefs: // > EndPortalObject::triggerObject @ 0x8b50c8 // > @ 0x4df68 // // 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:49 +0000 // __int64 __fastcall PlayLayer::playEndAnimationToPos(float *a1, const cocos2d::CCPoint *a2) { cocos2d::CCDirector *v4; // x0 __int64 v5; // x1 int v6; // w22 int v7; // w0 PlayerObject *v8; // x19 __int64 v9; // x0 float v10; // s8 const cocos2d::CCPoint *v11; // x0 cocos2d::CCEaseIn *v12; // x0 cocos2d::CCActionInterval *v13; // x1 cocos2d::CCAction *v14; // x0 cocos2d::CCRotateBy *v15; // x0 cocos2d::CCEaseIn *v16; // x0 cocos2d::CCActionInterval *v17; // x1 cocos2d::CCAction *v18; // x0 cocos2d::CCDirector *v20; // x0 long double v21; // q0 cocos2d::CCFiniteTimeAction *v22; // x0 cocos2d::CCSequence *v23; // [xsp+A0h] [xbp+A0h] int v24; // [xsp+ACh] [xbp+ACh] float v25[2]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v26; // [xsp+C0h] [xbp+C0h] BYREF __int64 v27; // [xsp+C8h] [xbp+C8h] BYREF __int64 v28; // [xsp+D0h] [xbp+D0h] BYREF __int64 v29; // [xsp+D8h] [xbp+D8h] BYREF __int64 v30; // [xsp+E0h] [xbp+E0h] BYREF v4 = (cocos2d::CCDirector *)(a1 + 3072); if ( !*((_BYTE *)v4 + 1048) ) { *((_BYTE *)v4 + 1048) = 1; if ( a1[121] != 0.0 ) { v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v26, v20); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v28, (float)(*(float *)&v26 * 0.5) / a1[106], (float)(*((float *)&v26 + 1) * 0.5) / a1[106]); cocos2d::CCPoint::operator+(&v27, a1 + 301); cocos2d::CCPoint::operator-(&v28, &v27, a1 + 108, v21); cocos2d::CCPoint::operator=(&v27, &v28); *((_DWORD *)a2 + 1) = HIDWORD(v27); } v5 = *(_QWORD *)a1; *((_BYTE *)a1 + 1982) = 1; v6 = 0; (*(void (__fastcall **)(float *, float))(v5 + 1464))(a1, 1.0); GJBaseGameLayer::updateCameraOffsetX((GJBaseGameLayer *)a1, a1[108], 0.0, 0, 0.0, -1, -1); GJBaseGameLayer::updateCameraOffsetY((GJBaseGameLayer *)a1, a1[109], 0.0, 0, 0.0, -1, -1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, a2); GJBaseGameLayer::updateStaticCameraPos(a1, &v28, 0, 1, 0, 1, 1.2, 1.8); if ( *((_BYTE *)a1 + 1010) ) v7 = 2; else v7 = 1; v24 = v7; do { if ( v6 ) v8 = *((PlayerObject **)a1 + 408); else v8 = *((PlayerObject **)a1 + 407); PlayerObject::lockPlayer(v8); PlayerObject::playingEndEffect(v8); PlayerObject::toggleGhostEffect(v8, 1); v9 = *((_QWORD *)a1 + 1576); if ( v9 && *(_BYTE *)(v9 + 1360) ) v10 = -1.0; else v10 = 1.0; v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)v8 + 192LL))(v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, v10 * 50.0, 0.0); cocos2d::CCPoint::operator+(&v26, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v25[0], v25[1]); cocos2d::CCPoint::operator=(&v29, &v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v25[0] + (float)(v10 * 40.0), *((float *)&v26 + 1) + 150.0); cocos2d::CCPoint::operator=(&v30, &v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, *(float *)&v26, *((float *)&v26 + 1) - 20.0); cocos2d::CCPoint::operator=(&v28, &v27); v12 = (cocos2d::CCEaseIn *)cocos2d::CCBezierTo::create(&v28, 1.0); v14 = (cocos2d::CCAction *)cocos2d::CCEaseIn::create(v12, v13, 1.2); if ( !v6 ) { v23 = v14; v22 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, PlayLayer::levelComplete, 0); v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v23, v22, 0); } v15 = (cocos2d::CCRotateBy *)cocos2d::CCNode::runAction(v8, v14); ++v6; v16 = (cocos2d::CCEaseIn *)cocos2d::CCRotateBy::create(v15, 1.0, 360.0); v18 = (cocos2d::CCAction *)cocos2d::CCEaseIn::create(v16, v17, 1.5); cocos2d::CCNode::runAction(v8, v18); } while ( v6 != v24 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source