//
// GJDifficultySprite::init from 0x1002a4b90 to 0x1002a4bd7 (71 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:27:55 +0000
//
__int64 __fastcall GJDifficultySprite::init(__int64 a1, double a2)
{
std::string::pointer data; // rsi
__int64 result; // rax
unsigned int v4; // ebx
std::string v5; // [rsp+0h] [rbp-20h] BYREF
GJDifficultySprite::getDifficultyFrame(&v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
data = v5.__r_.__value_.__l.__data_;
else
data = v5.__r_.__value_.__s.__data_;
result = cocos2d::CCSprite::initWithSpriteFrameName(a1, (__int64)data, a2);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
{
v4 = result;
operator delete(v5.__r_.__value_.__l.__data_);
return v4;
}
return result;
}