//
// WorldSelectLayer::scrollLayerMoved from 0xaa62e4 to 0xaa63ec (264 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'WorldSelectLayer::scrollLayerMoved @ 0xaa63f0
// > ??> @ 0xf2b60
// > ??> @ 0x14a32b0
//
// 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:00:51 +0000
//
__int64 __fastcall WorldSelectLayer::scrollLayerMoved(WorldSelectLayer *a1, float *a2)
{
float v3; // s8
cocos2d::CCDirector *v4; // x0
float i; // s0
int v6; // w3
int v7; // w2
float v8; // s0
unsigned __int64 ColorValue; // x0
__int64 v10; // x2
__int64 v12; // [xsp+30h] [xbp+30h] BYREF
v3 = -*a2;
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v12, v4);
for ( i = v3 / *(float *)&v12; i < 0.0; i = i + 23.0 )
;
v6 = vcvtms_s32_f32(i);
v7 = v6 % 23 + 1;
v8 = i - (float)v6;
if ( v6 % 23 == 22 )
v7 = 0;
ColorValue = WorldSelectLayer::getColorValue(a1, v6 % 23, v7, v8);
v10 = *((_QWORD *)a1 + 52);
LOWORD(v12) = ColorValue;
BYTE2(v12) = BYTE2(ColorValue);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 960LL))(v10, &v12);
return _stack_chk_guard;
}