//
// RateStarsModLayer::updateDSprite from 0xcfcb4c to 0xcfcbec (160 bytes)
//
// 3 xrefs:
// > RateStarsModLayer::selectRating @ 0xcfce4c
// > RateStarsModLayer::selectDemon @ 0xcfced0
// > ??> @ 0x4bad8
//
// 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 13:06:52 +0000
//
__int64 __fastcall RateStarsModLayer::updateDSprite(RateStarsModLayer *this)
{
int v1; // w2
unsigned int v2; // w1
unsigned int v3; // w2
cocos2d::CCArray **v4; // x0
v1 = *((_DWORD *)this + 179);
if ( v1 <= 1 )
{
v4 = *((cocos2d::CCArray ***)this + 93);
if ( v1 == 1 )
v2 = -1;
else
v2 = 0;
}
else if ( v1 == 2 )
{
v2 = 1;
v4 = *((cocos2d::CCArray ***)this + 93);
}
else if ( v1 == 3 )
{
v2 = 2;
v4 = *((cocos2d::CCArray ***)this + 93);
}
else
{
v2 = 3;
if ( v1 > 5 )
{
v2 = 4;
if ( v1 > 7 )
{
v2 = 5;
if ( v1 > 9 )
{
v2 = 0;
if ( v1 == 10 )
{
v2 = 6;
v3 = *((_DWORD *)this + 189) - 1;
if ( v3 <= 4 )
v2 = *(_DWORD *)&asc_11A5850[4 * v3];
}
}
}
}
v4 = *((cocos2d::CCArray ***)this + 93);
}
return GJDifficultySprite::updateDifficultyFrame(v4, v2, 0);
}