//
// GJDifficultySprite::init from 0x5e022c to 0x5e027a (78 bytes)
//
// 1 xrefs:
// > GJDifficultySprite::create @ 0x5e02bc
//
// 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:15 +0000
//
int __fastcall GJDifficultySprite::init(cocos2d::CCSprite *a1, const char *a2, char *a3, int a4)
{
char *v5; // r1
int v6; // r6
int v8[2]; // [sp+0h] [bp-10h] BYREF
char *v9; // [sp+8h] [bp-8h]
int v10; // [sp+Ch] [bp-4h]
v8[0] = (int)a1;
v8[1] = (int)a2;
v9 = a3;
v10 = a4;
GJDifficultySprite::getDifficultyFrame(v8, a2, (int)a3);
if ( (v8[0] & 1) != 0 )
v5 = v9;
else
v5 = (char *)v8 + 1;
v6 = cocos2d::CCSprite::initWithSpriteFrameName(a1, v5);
std::string::~string((int)v8);
return v6;
}