//
// GJChestSprite::init from 0x100202f60 to 0x100202faa (74 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:26:52 +0000
//
__int64 __fastcall GJChestSprite::init(_DWORD *a1, int a2, double a3, double a4, __m128 a5)
{
__int64 result; // rax
unsigned int v6; // r14d
double v7; // xmm0_8
result = cocos2d::CCSprite::init(a1);
if ( (_BYTE)result )
{
a1[149] = a2;
v6 = result;
v7 = (*(double (__fastcall **)(_DWORD *, void *))(*(_QWORD *)a1 + 320LL))(a1, &unk_100BE1670);
GJChestSprite::switchToState(a1, 2, 0, v7, a4, a5);
return v6;
}
return result;
}