//
// GameObject::getBallFrame from 0x647674 to 0x6476a4 (48 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x5ccb0c
// > ??> @ 0x5a738
//
// 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
//
const char *GameObject::getBallFrame(GameObject *a1, int a2)
{
const char *v2; // x1
cocos2d::CCString *v3; // x0
v2 = (_BYTE *)(&dword_0 + 3);
if ( (int)a1 > 2 )
goto LABEL_5;
if ( (int)a1 < 0 )
{
v2 = nullptr;
LABEL_5:
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"rod_ball_%02d_001.png", v2);
return cocos2d::CCString::getCString(v3);
}
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"rod_ball_%02d_001.png",
(const char *)(unsigned int)a1);
return cocos2d::CCString::getCString(v3);
}