//
// GJLevelList::frameForListDifficulty from 0x1000b2388 to 0x1000b2444 (188 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x1001039e4
// > LevelListLayer::init @ 0x100243690
// > LevelListLayer::updateStatsArt @ 0x1002452f4
// > SelectListIconLayer::init @ 0x100247b94
// > ShareListLayer::init @ 0x100248bcc
//
// 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
//
_QWORD *__usercall GJLevelList::frameForListDifficulty@(unsigned int a1@, int a2@, _QWORD *a3@)
{
unsigned int v4; // w8
cocos2d::CCString *v5; // x0
char *CString; // x1
if ( a1 )
{
if ( a1 <= 0xA )
v4 = a1;
else
v4 = 0;
if ( a1 - 6 <= 2 )
v4 = dword_1006369D8[a1 - 6];
if ( a2 == 2 )
{
v5 = (cocos2d::CCString *)sub_100268F4C("diffIcon_%02d_btn_001.png");
}
else if ( a2 == 1 && v4 >= 6 )
{
v5 = (cocos2d::CCString *)sub_100268F4C("difficulty_%02d_btn2_001.png");
}
else
{
v5 = (cocos2d::CCString *)sub_100268F4C("difficulty_%02d_btn_001.png");
}
CString = (char *)cocos2d::CCString::getCString(v5);
}
else if ( a2 == 2 )
{
CString = "diffIcon_auto_btn_001.png";
}
else
{
CString = "difficulty_auto_btn_001.png";
}
return sub_100009900(a3, CString);
}