//
// WorldSelectLayer::scrollLayerMoved from 0x62ceac to 0x62cf5c (176 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'WorldSelectLayer::scrollLayerMoved @ 0x62cf64
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:14 +0000
//
int __fastcall WorldSelectLayer::scrollLayerMoved(cocos2d::CCDirector *a1, float *a2)
{
float v3; // s16
float i; // s16
float v5; // r0
int v6; // r1
int v7; // r2
int ColorValue; // r0
char v9; // r3
int v10; // r0
float v12[2]; // [sp+4h] [bp-Ch] BYREF
v3 = *a2;
cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12);
for ( i = (float)-v3 / v12[0]; i < 0.0; i = i + 23.0 )
;
v5 = floorf(i);
v6 = (int)v5 % 23;
v7 = v6 + 1;
if ( v6 == 22 )
v7 = 0;
ColorValue = WorldSelectLayer::getColorValue(a1, v6, v7, i - (float)(int)v5);
v9 = BYTE1(ColorValue);
LOBYTE(v12[0]) = ColorValue;
BYTE2(v12[0]) = BYTE2(ColorValue);
v10 = *((_DWORD *)a1 + 80);
BYTE1(v12[0]) = v9;
return (*(int (__fastcall **)(int, float *))(*(_DWORD *)v10 + 480))(v10, v12);
}