//
// GJDifficultySprite::getDifficultyFrame from 0x1403ab000 to 0x1403ab0dc (220 bytes)
//
// 3 xrefs:
// > GJDifficultySprite::create @ 0x1403aaf87
// > GJDifficultySprite::updateDifficultyFrame @ 0x1403ab0ff
// > ??> @ 0x140923a20
//
// This function is hookable on this platform (idp: pc, 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 11:31:20 +0000
//
// Hidden C++ exception states: #wind=1
void **__fastcall GJDifficultySprite::getDifficultyFrame(void **Src, int a2, int a3)
{
cocos2d::CCString *v6; // rax
const char *CString; // rax
size_t v8; // r8
size_t v9; // r8
char *v10; // rdx
v6 = cocos2d::CCString::createWithFormat("difficulty_%02d_", a2);
CString = cocos2d::CCString::getCString(v6);
*(_OWORD *)Src = 0;
Src[2] = nullptr;
Src[3] = nullptr;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(Src, CString, v8);
if ( a3 == 1 && (unsigned int)(a2 - 6) <= 4 )
{
v9 = 12;
v10 = "btn2_001.png";
}
else
{
v9 = 11;
v10 = "btn_001.png";
}
sub_140044D80(Src, v10, v9);
if ( a2 == -1 )
sub_1400405A0(Src, "difficulty_auto_btn_001.png", 0x1Bu);
return Src;
}