//
// LevelSelectLayer::scrollLayerMoved from 0x100434240 to 0x1004343a9 (361 bytes)
//
// 2 xrefs:
// > sub_1004345F0 @ 0x1004345fc
// > ??> @ 0x1009376b0
//
// 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 __fastcall LevelSelectLayer::scrollLayerMoved(LevelSelectLayer *a1, cocos2d::CCPoint a2)
{
__int64 v2; // rax
unsigned int *v3; // rsi
__m128 v4; // xmm0
__m128 v5; // xmm1
float v6; // xmm0_4
int v7; // esi
int v8; // edx
int v9; // [rsp+0h] [rbp-Ch] BYREF
v9 = HIDWORD(v2);
v4 = _mm_xor_ps((__m128)*v3, (__m128)xmmword_1008150B0);
for ( v4.f32[0] = v4.f32[0] / a1->m_width; v4.f32[0] < 0.0; v4.f32[0] = v4.f32[0] + 24.0 )
;
v5 = _mm_round_ss((__m128)0LL, v4, 9);
v6 = v4.f32[0] - _mm_cvtepi32_ps(_mm_cvttps_epi32(v5)).f32[0];
a1->m_scrolls = (int)v5.f32[0];
v7 = (int)v5.f32[0] % 24;
v8 = 0;
if ( v7 != 23 )
v8 = v7 + 1;
*(cocos2d::ccColor3B *)&v9 = LevelSelectLayer::getColorValue(a1, v7, v8, v6);
((void (__fastcall *)(cocos2d::CCSprite *, int *))a1->m_backgroundSprite->setColor)(a1->m_backgroundSprite, &v9);
GJGroundLayer::updateGround01Color(
a1->m_groundLayer,
(cocos2d::ccColor3B)(((int)(float)((float)BYTE2(v9) * 0.80000001) << 16)
| ((unsigned __int8)(int)(float)((float)BYTE1(v9) * 0.80000001) << 8)
| (unsigned __int8)(int)(float)((float)(unsigned __int8)v9 * 0.80000001)));
GJGroundLayer::updateGround02Color(
a1->m_groundLayer,
(cocos2d::ccColor3B)(((int)(float)((float)BYTE2(v9) * 0.89999998) << 16)
| ((unsigned __int8)(int)(float)((float)BYTE1(v9) * 0.89999998) << 8)
| (unsigned __int8)(int)(float)((float)(unsigned __int8)v9 * 0.89999998)));
}