//
// GJLevelList::frameForListDifficulty from 0x4ace98 to 0x4acf1e (134 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x429514
// > SelectListIconLayer::init @ 0x6d5336
// > LevelListLayer::updateStatsArt @ 0x6d6080
// > ShareListLayer::init @ 0x6d7e02
// > LevelListLayer::init @ 0x6d88bc
//
// 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:49:59 +0000
//
int *__fastcall GJLevelList::frameForListDifficulty(int *a1, const char *a2, int a3)
{
int *v3; // r4
size_t v4; // r2
const char *v5; // r1
char *v6; // r0
cocos2d::CCString *v7; // r0
const char *CString; // r0
const char *v9; // r5
size_t v10; // 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 )
{
v6 = "difficulty_%02d_btn2_001.png";
goto LABEL_18;
}
goto LABEL_17;
}
LABEL_11:
if ( a3 == 2 )
{
LABEL_12:
v6 = "diffIcon_%02d_btn_001.png";
LABEL_18:
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v6, a2);
CString = (const char *)cocos2d::CCString::getCString(v7);
*v3 = 0;
v3[1] = 0;
v3[2] = 0;
v9 = CString;
v10 = strlen(CString);
v5 = v9;
v4 = v10;
a1 = v3;
goto LABEL_19;
}
if ( (int)a2 > 5 )
goto LABEL_14;
LABEL_17:
v6 = "difficulty_%02d_btn_001.png";
goto LABEL_18;
}
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
if ( a3 == 2 )
{
v4 = 25;
v5 = "diffIcon_auto_btn_001.png";
}
else
{
v4 = 27;
v5 = "difficulty_auto_btn_001.png";
}
LABEL_19:
std::string::__init(a1, v5, v4);
return v3;
}