//
// MapSelectLayer::scrollWheel from 0xac13b8 to 0xac15e8 (560 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MapSelectLayer::scrollWheel @ 0xac15fc
// > ??> @ 0x74848
// > ??> @ 0x14ab1f0
//
// 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:01:05 +0000
//
__int64 __fastcall MapSelectLayer::scrollWheel(MapSelectLayer *this, float a2, float a3)
{
cocos2d::CCDirector *v5; // x0
cocos2d::CCNode *v6; // x23
float v7; // s0
float v8; // s0
float v9; // s1
cocos2d::CCNode *v10; // x25
long double v11; // q0
__int64 v12; // x19
void (__fastcall *v13)(__int64, __int64 *); // x22
__int64 v14; // x0
float v16; // s0
float v17; // s1
__int64 v18; // [xsp+60h] [xbp+60h] BYREF
__int64 v19; // [xsp+68h] [xbp+68h] BYREF
__int64 v20; // [xsp+70h] [xbp+70h] BYREF
__int64 v21; // [xsp+78h] [xbp+78h] BYREF
__int64 v22; // [xsp+80h] [xbp+80h] BYREF
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v18, v5);
v6 = *((cocos2d::CCNode **)this + 51);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, *(float *)&v18 * 0.5, *((float *)&v18 + 1) * 0.5);
cocos2d::CCNode::convertToNodeSpace(&v19, v6, (const cocos2d::CCPoint *)&v22);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 168LL))(*((_QWORD *)this + 51));
if ( a2 <= 0.0 )
{
if ( (float)(v7 + 0.01) > 1.2 )
goto LABEL_3;
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 168LL))(*((_QWORD *)this + 51));
v17 = 0.01;
if ( a2 > 0.0 )
v17 = -0.01;
LABEL_11:
if ( (float)(v17 + v16) <= 0.7 )
goto LABEL_7;
goto LABEL_3;
}
if ( (float)(v7 - 0.01) <= 1.2 )
{
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 168LL))(*((_QWORD *)this + 51));
v17 = -0.01;
goto LABEL_11;
}
LABEL_3:
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 168LL))(*((_QWORD *)this + 51));
v9 = 0.01;
if ( a2 > 0.0 )
v9 = -0.01;
if ( (float)(v9 + v8) <= 1.2 )
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 51) + 168LL))(*((_QWORD *)this + 51), 1.2);
LABEL_7:
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 160LL))(*((_QWORD *)this + 51));
v10 = *((cocos2d::CCNode **)this + 51);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, *(float *)&v18 * 0.5, *((float *)&v18 + 1) * 0.5);
cocos2d::CCNode::convertToNodeSpace(&v20, v10, (const cocos2d::CCPoint *)&v22);
cocos2d::CCPoint::operator-(&v21, &v20, &v19, v11);
v12 = *((_QWORD *)this + 51);
v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL);
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
cocos2d::CCPoint::operator+(&v22, v14);
v13(v12, &v22);
return 1;
}