//
// GJLevelList::frameForListDifficulty from 0x3cdf10 to 0x3cdf9a (138 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x33a784
// > LevelListLayer::updateStatsArt @ 0x58fc5c
// > LevelListLayer::init @ 0x590b00
// > SelectListIconLayer::init @ 0x5925ea
// > ShareListLayer::init @ 0x593210
//
// 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 GJLevelList::frameForListDifficulty(int a1, const char *a2, int a3)
{
int v3; // r6
char *CString; // r1
char *v5; // r0
cocos2d::CCString *v6; // r0
v3 = a1;
if ( a2 )
{
if ( (unsigned int)a2 > 0xA )
{
a2 = nullptr;
if ( a3 == 2 )
goto LABEL_12;
goto LABEL_17;
}
if ( (int)a2 >= 6 )
{
if ( (int)a2 <= 7 )
{
++a2;
}
else
{
if ( a2 != byte_8 )
goto LABEL_11;
a2 = &byte_6;
}
if ( a3 == 2 )
goto LABEL_12;
LABEL_14:
if ( a3 == 1 )
{
v5 = "difficulty_%02d_btn2_001.png";
goto LABEL_18;
}
goto LABEL_17;
}
LABEL_11:
if ( a3 == 2 )
{
LABEL_12:
v5 = "diffIcon_%02d_btn_001.png";
LABEL_18:
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v5, a2);
CString = (char *)cocos2d::CCString::getCString(v6);
a1 = v3;
goto LABEL_19;
}
if ( (int)a2 > 5 )
goto LABEL_14;
LABEL_17:
v5 = "difficulty_%02d_btn_001.png";
goto LABEL_18;
}
if ( a3 == 2 )
CString = "diffIcon_auto_btn_001.png";
else
CString = "difficulty_auto_btn_001.png";
LABEL_19:
sub_776584(a1, CString);
return v3;
}