//
// GJDifficultySprite::init from 0xa313fc to 0xa314ac (176 bytes)
//
// 2 xrefs:
// > GJDifficultySprite::create @ 0xa31504
// > ??> @ 0xb23c0
//
// 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 12:59:47 +0000
//
__int64 __fastcall GJDifficultySprite::init(cocos2d::CCSprite *a1, char *a2, int a3)
{
char *v4; // x1
unsigned int v5; // w19
__int64 v7[2]; // [xsp+30h] [xbp+30h] BYREF
char *v8; // [xsp+40h] [xbp+40h]
GJDifficultySprite::getDifficultyFrame((char *)(unsigned int)a2, a3, v7);
v4 = (char *)v7 + 1;
if ( (v7[0] & 1) != 0 )
v4 = v8;
v5 = cocos2d::CCSprite::initWithSpriteFrameName(a1, v4);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
return v5;
}