//
// GJDifficultySprite::getDifficultyFrame from 0x4b3b4c to 0x4b3bbe (114 bytes)
//
// 2 xrefs:
// > GJDifficultySprite::init @ 0x4b3be6
// > GJDifficultySprite::updateDifficultyFrame @ 0x4b3cb2
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GJDifficultySprite::getDifficultyFrame(int a1, const char *a2, int a3)
{
cocos2d::CCString *v6; // r0
char *CString; // r0
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"difficulty_%02d_", a2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584(a1, CString);
if ( a3 == 1 && (unsigned int)(a2 - 6) <= 4 )
{
sub_774544(a1, "btn2_001.png");
}
else
{
sub_774544(a1, "btn_001.png");
if ( a2 == (const char *)-1 )
sub_7753D4(a1, "difficulty_auto_btn_001.png");
}
return a1;
}