// // GhostTrailEffect::trailSnapshot from 0x3e4c28 to 0x3e4fa2 (890 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:04 +0000 // int __fastcall GhostTrailEffect::trailSnapshot(GhostTrailEffect *this, float a2) { cocos2d::CCSprite *v3; // r6 cocos2d::CCSprite *v4; // r0 __int64 v5; // r0 cocos2d::CCSprite *v6; // r5 void (__fastcall *v7)(cocos2d::CCSprite *, int); // r8 int v8; // r0 const cocos2d::CCPoint *v9; // r0 float v10; // s17 float v11; // s15 int v12; // r0 float v13; // s16 char isFlipX; // r0 char isFlipY; // r0 void (__fastcall *v16)(cocos2d::CCSprite *, int); // r8 int v17; // r0 int v18; // r8 void (__fastcall *v19)(int, cocos2d::CCSprite *, int); // r9 int v20; // r0 float v21; // r6 int v22; // r3 unsigned __int8 v23; // r2 cocos2d::CCSequence *v24; // r8 cocos2d::CCFiniteTimeAction *v25; // r0 cocos2d::CCAction *v26; // r0 int result; // r0 cocos2d::CCScaleTo *v28; // r6 float v29; // s16 float v30; // r0 float v31; // r3 cocos2d::CCAction *v32; // r0 unsigned __int8 v33; // r2 cocos2d::CCSequence *v34; // r8 unsigned __int8 v35; // r2 cocos2d::CCFiniteTimeAction *v36; // r6 int v37; // r0 cocos2d::CCAction *v38; // r0 float v39; // r2 cocos2d::CCSequence *v40; // r6 float v41; // r2 cocos2d::CCFiniteTimeAction *v42; // r0 _BYTE v43[8]; // [sp+Ch] [bp-30h] BYREF _BYTE v44[8]; // [sp+14h] [bp-28h] BYREF _BYTE v45[8]; // [sp+1Ch] [bp-20h] BYREF _DWORD v46[2]; // [sp+24h] [bp-18h] BYREF _DWORD v47[2]; // [sp+2Ch] [bp-10h] BYREF v3 = *((cocos2d::CCSprite **)this + 74); v4 = *((cocos2d::CCSprite **)this + 73); if ( !v3 ) v3 = v4; v5 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, _DWORD))*(_DWORD *)(*(_DWORD *)v4 + 536))(v4, LODWORD(a2)); v6 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithTexture( (cocos2d::CCSprite *)v5, (cocos2d::CCTexture2D *)HIDWORD(v5)); if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 588))(*((_DWORD *)this + 73)) ) { v7 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v6 + 580); v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 588))(*((_DWORD *)this + 73)); v7(v6, v8); } (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD, _DWORD))(*(_DWORD *)v6 + 540))( v6, *((_DWORD *)this + 71), *((_DWORD *)this + 72)); v9 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 96))(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, v9); if ( *((float *)this + 79) != flt_D2B394 || *((float *)this + 80) != flt_D2B398 ) { cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v44, *((const cocos2d::CCPoint **)this + 73)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v45, *((const cocos2d::CCPoint **)this + 73)); cocos2d::CCPoint::operator-(v46, v44, v45); cocos2d::CCPoint::operator+(v47, v43, v46); cocos2d::CCPoint::operator=(v43, v47); } v10 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 68))(*((_DWORD *)this + 73))) * *((float *)this + 70); v11 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 76))(*((_DWORD *)this + 73))); v12 = *((_DWORD *)this + 74); v13 = v11 * *((float *)this + 70); if ( v12 && (*(float (__fastcall **)(int))(*(_DWORD *)v12 + 76))(v12) < 0.0 ) v13 = -v13; (*(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v6 + 92))(v6, v43); isFlipX = cocos2d::CCSprite::isFlipX(v3); cocos2d::CCSprite::setFlipX(v6, isFlipX); isFlipY = cocos2d::CCSprite::isFlipY(v3); cocos2d::CCSprite::setFlipY(v6, isFlipY); v16 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v6 + 180); v17 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 184))(v3); v16(v6, v17); (*(void (__fastcall **)(cocos2d::CCSprite *, char *))(*(_DWORD *)v6 + 480))(v6, (char *)this + 312); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_DWORD *)v6 + 64))(v6, COERCE_FLOAT(LODWORD(v10))); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_DWORD *)v6 + 72))(v6, COERCE_FLOAT(LODWORD(v13))); v18 = *((_DWORD *)this + 75); if ( !v18 ) v18 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 256))(v3); v19 = *(void (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)v18 + 232); v20 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v3 + 52))(v3); v19(v18, v6, v20 - 1); LODWORD(v21) = *((unsigned __int8 *)this + 276); v22 = *(_DWORD *)v6; if ( *((_BYTE *)this + 276) ) { (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(v22 + 456))(v6, 0); (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)v6 + 80))( v6, *((float *)this + 68) * *((float *)this + 70)); v34 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create( COERCE_COCOS2D_CCFADETO_(*((float *)this + 67) * 0.5), COERCE_FLOAT((unsigned __int8)(unsigned int)*((float *)this + 76)), v33); v36 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create( COERCE_COCOS2D_CCFADETO_(*((float *)this + 67) * 0.5), 0.0, v35); v47[0] = 268; v47[1] = 1; v37 = cocos2d::CCCallFunc::create(v6, 268, 1); v38 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v34, v36, v37, 0); result = cocos2d::CCNode::runAction(v6, v38); if ( *((float *)this + 68) == 1.0 ) return result; v40 = (cocos2d::CCSequence *)cocos2d::CCScaleTo::create( COERCE_COCOS2D_CCSCALETO_(*((float *)this + 67) * 0.5), 1.0, v39); v42 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCScaleTo::create( COERCE_COCOS2D_CCSCALETO_(*((float *)this + 67) * 0.5), *((float *)this + 68) * *((float *)this + 70), v41); v32 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v40, v42, 0); } else { (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(v22 + 456))( v6, (unsigned __int8)(unsigned int)*((float *)this + 76)); v24 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create(*((cocos2d::CCFadeTo **)this + 67), v21, v23); v46[0] = 268; v46[1] = 1; v25 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v6, 268, 1); v26 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v24, v25, v21); result = cocos2d::CCNode::runAction(v6, v26); if ( *((float *)this + 68) == 1.0 ) return result; v28 = *((cocos2d::CCScaleTo **)this + 67); v29 = (float)(COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v6 + 68))(v6)) * *((float *)this + 68)) * *((float *)this + 70); v30 = (*(float (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v6 + 76))(v6); v32 = (cocos2d::CCAction *)cocos2d::CCScaleTo::create( v28, v29, (float)(v30 * *((float *)this + 68)) * *((float *)this + 70), v31); } return cocos2d::CCNode::runAction(v6, v32); }
GD Web Decomp Icon

GD Web Decomp

Raw Source