//
// GravityEffectSprite::create from 0x402854 to 0x4028b6 (98 bytes)
//
// 1 xrefs:
// > PlayLayer::init @ 0x40af82
//
// 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:25 +0000
//
int *__fastcall GravityEffectSprite::create(GravityEffectSprite *this)
{
int *v1; // r4
int v2; // r3
int *v3; // r0
v1 = (int *)operator new(0x1FCu);
memset(v1, 0, 0x1FCu);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v1);
*v1 = (int)&off_C8E090;
v1[66] = (int)&off_C8E304;
v1[70] = (int)&off_C8E344;
if ( GravityEffectSprite::init((GravityEffectSprite *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v2 = *v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v2 + 8))(v3);
}
return v1;
}