//
// GJChestSprite::init from 0xa88f90 to 0xa88ff8 (104 bytes)
//
// 2 xrefs:
// > GJChestSprite::create @ 0xa8904c
// > ??> @ 0xb3a28
//
// 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 13:00:36 +0000
//
__int64 __fastcall GJChestSprite::init(GJChestSprite *this, int a2)
{
unsigned __int8 v3; // w0
unsigned int v4; // w19
__int64 v5; // x2
v3 = cocos2d::CCSprite::init(this);
v4 = v3;
if ( v3 )
{
v5 = *(_QWORD *)this;
*((_DWORD *)this + 149) = a2;
(*(void (__fastcall **)(GJChestSprite *, void *))(v5 + 320))(this, &unk_155D920);
GJChestSprite::switchToState((unsigned int *)this, 2u, 0);
}
return v4;
}