//
// MapSelectLayer::scrollWheel from 0x100268c50 to 0x100268df0 (416 bytes)
//
// 2 xrefs:
// > sub_100268DF0 @ 0x100268dfc
// > ??> @ 0x1008eb4c8
//
// 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 MapSelectLayer::scrollWheel(MapSelectLayer *a1, float a2, float a3)
{
_BOOL8 v3; // r12
GJBigSprite *m_bigSprite; // r14
double v5; // xmm0_8
double v6; // xmm0_8
GJBigSprite *v7; // r14
GJBigSprite *v8; // rbx
__int64 v9; // rax
_BYTE v10[8]; // [rsp+4h] [rbp-4Ch] BYREF
char v11; // [rsp+Ch] [rbp-44h] BYREF
char v12; // [rsp+14h] [rbp-3Ch] BYREF
_BYTE v13[8]; // [rsp+1Ch] [rbp-34h] BYREF
float v14; // [rsp+24h] [rbp-2Ch] BYREF
float v15; // [rsp+28h] [rbp-28h]
float v16; // [rsp+2Ch] [rbp-24h]
double v17; // 0:xmm0_8.8
double v18; // 0:xmm0_8.8
v3 = a2 > 0.0;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v14);
m_bigSprite = a1->m_bigSprite;
sub_10028CBE0(&v12, v14 * 0.5, v15 * 0.5);
*(cocos2d::CCPoint *)&v17 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v11,
(const cocos2d::CCPoint *)m_bigSprite);
*(float *)&v17 = ((float (__fastcall *)(GJBigSprite *, double))a1->m_bigSprite->getScale)(a1->m_bigSprite, v17);
v16 = flt_100818410[v3];
if ( (float)(*(float *)&v17 + v16) > 1.2
|| (v5 = ((double (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite),
(float)(*(float *)&v5 + v16) > 0.69999999) )
{
v6 = ((double (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite);
if ( (float)(*(float *)&v6 + v16) <= 1.2 )
((void (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite);
}
((void (__fastcall *)(GJBigSprite *))a1->m_bigSprite->setScale)(a1->m_bigSprite);
v7 = a1->m_bigSprite;
sub_10028CBE0(v13, v14 * 0.5, 0.5 * v15);
*(cocos2d::CCPoint *)&v18 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v12, (const cocos2d::CCPoint *)v7);
sub_10028CD00(v13, &v12, &v11);
v8 = a1->m_bigSprite;
v9 = ((__int64 (__fastcall *)(GJBigSprite *, double))v8->getPosition)(v8, v18);
sub_10028CCE0(v10, v9);
((void (__fastcall *)(GJBigSprite *, _BYTE *))v8->setPosition)(v8, v10);
}