//
// WorldSelectLayer::scrollLayerMoved from 0x95f6bc to 0x95f7c4 (264 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'WorldSelectLayer::scrollLayerMoved @ 0x95f7c8
// > ??> @ 0xba0f0
// > ??> @ 0x11bc080
//
// 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
//
void WorldSelectLayer::scrollLayerMoved(WorldSelectLayer *a1, cocos2d::CCPoint a2)
{
float *v2; // x1
float v4; // s8
cocos2d::CCDirector *v5; // x0
float i; // s0
int v7; // w3
int v8; // w2
float v9; // s0
cocos2d::CCSprite *m_background; // x2
float v11; // [xsp+30h] [xbp+30h] BYREF
cocos2d::ccColor3B ColorValue; // 0:w0.3
v4 = -*v2;
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
for ( i = v4 / v11; i < 0.0; i = i + 23.0 )
;
v7 = vcvtms_s32_f32(i);
v8 = v7 % 23 + 1;
v9 = i - (float)v7;
if ( v7 % 23 == 22 )
v8 = 0;
ColorValue = WorldSelectLayer::getColorValue(a1, v7 % 23, v8, v9);
m_background = a1->m_background;
*(cocos2d::ccColor3B *)&v11 = ColorValue;
m_background->setColor(m_background, (const cocos2d::ccColor3B *)&v11);
}