//
// GJLevelList::frameForListDifficulty from 0x1000d7598 to 0x1000d7654 (188 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x100128bbc
// > LevelListLayer::init @ 0x1002e073c
// > LevelListLayer::updateStatsArt @ 0x1002e2430
// > sub_1002E4B74 @ 0x1002e4ddc
// > sub_1002E5208 @ 0x1002e5d98
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:58:57 +0000
//
_QWORD *__usercall GJLevelList::frameForListDifficulty@(unsigned int a1@, int a2@, _QWORD *a3@)
{
unsigned int v4; // w8
__int64 v5; // x0
char *CString; // x1
if ( a1 )
{
if ( a1 <= 0xA )
v4 = a1;
else
v4 = 0;
if ( a1 - 6 <= 2 )
v4 = dword_10075DB88[a1 - 6];
if ( a2 == 2 )
{
v5 = sub_1003065B0("diffIcon_%02d_btn_001.png");
}
else if ( a2 == 1 && v4 >= 6 )
{
v5 = sub_1003065B0("difficulty_%02d_btn2_001.png");
}
else
{
v5 = sub_1003065B0("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);
}