//
// GJChestSprite::init from 0x6195ec to 0x61961c (48 bytes)
//
// 1 xrefs:
// > GJChestSprite::create @ 0x619660
//
// 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:54:58 +0000
//
int __fastcall GJChestSprite::init(GJChestSprite *this, int a2)
{
int v4; // r5
int v5; // r3
v4 = cocos2d::CCSprite::init(this);
if ( v4 )
{
v5 = *(_DWORD *)this;
*((_DWORD *)this + 127) = a2;
(*(void (__fastcall **)(GJChestSprite *, void *))(v5 + 160))(this, &unk_D2CA58);
GJChestSprite::switchToState(this, 2, 0);
}
return v4;
}