//
// MapSelectLayer::scrollWheel from 0x97d510 to 0x97d73c (556 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MapSelectLayer::scrollWheel @ 0x97d750
// > ??> @ 0x54090
// > ??> @ 0x11c3b80
//
// 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 MapSelectLayer::scrollWheel(MapSelectLayer *a1, float a2, float a3)
{
cocos2d::CCDirector *v5; // x0
GJBigSprite *m_bigSprite; // x23
float v7; // s0
float v8; // s0
float v9; // s1
GJBigSprite *v10; // x25
GJBigSprite *v11; // x19
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
__int64 v13; // x0
float v14; // s0
float v15; // s1
float v16; // [xsp+60h] [xbp+60h]
float v17; // [xsp+64h] [xbp+64h]
_BYTE v18[8]; // [xsp+68h] [xbp+68h] BYREF
_BYTE v19[8]; // [xsp+70h] [xbp+70h] BYREF
__int64 v20; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCPoint v21; // [xsp+80h] [xbp+80h] BYREF
cocos2d::CCPoint v22; // 0:kr08_8.8
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
m_bigSprite = a1->m_bigSprite;
cocos2d::CCPoint::CCPoint(&v21, v16 * 0.5, v17 * 0.5);
v22 = cocos2d::CCNode::convertToNodeSpace(m_bigSprite, &v21);
((void (__fastcall *)(GJBigSprite *, float, float))a1->m_bigSprite->getScale)(a1->m_bigSprite, v22.x, v22.y);
if ( a2 <= 0.0 )
{
if ( (float)(v7 + 0.01) > 1.2 )
goto LABEL_3;
a1->m_bigSprite->getScale(a1->m_bigSprite);
v15 = 0.01;
if ( a2 > 0.0 )
v15 = -0.01;
LABEL_11:
if ( (float)(v15 + v14) <= 0.7 )
goto LABEL_7;
goto LABEL_3;
}
if ( (float)(v7 - 0.01) <= 1.2 )
{
a1->m_bigSprite->getScale(a1->m_bigSprite);
v15 = -0.01;
goto LABEL_11;
}
LABEL_3:
a1->m_bigSprite->getScale(a1->m_bigSprite);
v9 = 0.01;
if ( a2 > 0.0 )
v9 = -0.01;
if ( (float)(v9 + v8) <= 1.2 )
((void (__fastcall *)(GJBigSprite *, float))a1->m_bigSprite->getScale)(a1->m_bigSprite, 1.2);
LABEL_7:
((void (__fastcall *)(GJBigSprite *))a1->m_bigSprite->setScale)(a1->m_bigSprite);
v10 = a1->m_bigSprite;
cocos2d::CCPoint::CCPoint(&v21, v16 * 0.5, v17 * 0.5);
cocos2d::CCNode::convertToNodeSpace(v10, &v21);
cocos2d::CCPoint::operator-(&v20, v19, v18);
v11 = a1->m_bigSprite;
setPosition = v11->setPosition;
v13 = (__int64)v11->getPosition(v11);
cocos2d::CCPoint::operator+(&v21, v13, &v20);
setPosition(v11, &v21);
}