//
// GJLevelList::frameForListDifficulty from 0x719a50 to 0x719b64 (276 bytes)
//
// 6 xrefs:
// > LevelListCell::loadFromList @ 0x61e570
// > LevelListLayer::updateStatsArt @ 0xa74894
// > LevelListLayer::init @ 0xa75f70
// > SelectListIconLayer::init @ 0xa78ed4
// > ShareListLayer::init @ 0xa79f9c
// > ??> @ 0x55638
//
// 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
//
__int64 __usercall GJLevelList::frameForListDifficulty@(int a1@, int a2@, __int64 a3@)
{
cocos2d::CCString *v5; // x0
char *CString; // x0
if ( a1 )
{
if ( (unsigned int)a1 <= 0xA )
{
if ( a1 >= 6 )
{
if ( a1 > 7 )
{
if ( a1 == 8 )
a1 = 6;
}
else
{
++a1;
}
}
if ( a2 != 2 )
{
if ( a1 > 5 && a2 == 1 )
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"difficulty_%02d_btn2_001.png",
(const char *)(unsigned int)a1);
goto LABEL_8;
}
LABEL_7:
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"difficulty_%02d_btn_001.png",
(const char *)(unsigned int)a1);
LABEL_8:
CString = (char *)cocos2d::CCString::getCString(v5);
sub_D153B8(a3, CString);
return a3;
}
}
else
{
a1 = 0;
if ( a2 != 2 )
goto LABEL_7;
}
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"diffIcon_%02d_btn_001.png",
(const char *)(unsigned int)a1);
goto LABEL_8;
}
if ( a2 == 2 )
sub_D153B8(a3, "diffIcon_auto_btn_001.png");
else
sub_D153B8(a3, "difficulty_auto_btn_001.png");
return a3;
}