//
// MapSelectLayer::scrollWheel from 0x63ec2c to 0x63edd4 (424 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MapSelectLayer::scrollWheel @ 0x63edec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:27 +0000
//
int __fastcall MapSelectLayer::scrollWheel(const cocos2d::CCPoint **this, float a2, float a3)
{
float v5; // s16
const cocos2d::CCPoint *v6; // r7
float v7; // r0
float v8; // s18
float v9; // s16
float v10; // r0
float v11; // s15
float v12; // r0
float v13; // s15
float v14; // r0
const cocos2d::CCPoint *v15; // r7
int v16; // r4
void (__fastcall *v17)(int, _BYTE *); // r8
int v18; // r0
float v20; // [sp+4h] [bp-30h] BYREF
float v21; // [sp+8h] [bp-2Ch]
_BYTE v22[8]; // [sp+Ch] [bp-28h] BYREF
_BYTE v23[8]; // [sp+14h] [bp-20h] BYREF
_BYTE v24[8]; // [sp+1Ch] [bp-18h] BYREF
_BYTE v25[8]; // [sp+24h] [bp-10h] BYREF
v5 = -0.01;
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v20);
v6 = *(this + 79);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v20 * 0.5, v21 * 0.5);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v22, v6);
v7 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 79) + 84))(*(this + 79)));
if ( a2 > 0.0 )
v8 = -0.01;
else
v8 = 0.01;
if ( (float)(v7 + v8) > 1.2 )
goto LABEL_5;
v14 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 79) + 84))(*(this + 79)));
if ( a2 <= 0.0 )
v5 = 0.01;
v13 = 0.7;
if ( (float)(v14 + v5) > 0.7 )
{
LABEL_5:
v9 = -0.01;
v10 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 79) + 84))(*(this + 79)));
if ( a2 > 0.0 )
v11 = -0.01;
else
v11 = 0.01;
if ( (float)(v10 + v11) > 1.2 )
{
v13 = 1.2;
}
else
{
v12 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 79) + 84))(*(this + 79)));
if ( a2 <= 0.0 )
v9 = 0.01;
v13 = v12 + v9;
}
}
(*(void (__fastcall **)(_DWORD, float))(*(_DWORD *)*(this + 79) + 80))(*(this + 79), COERCE_FLOAT(LODWORD(v13)));
v15 = *(this + 79);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v20 * 0.5, v21 * 0.5);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v23, v15);
cocos2d::CCPoint::operator-(v24, v23, v22);
v16 = (int)*(this + 79);
v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92);
v18 = (*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16);
cocos2d::CCPoint::operator+(v25, v18, v24);
v17(v16, v25);
return 1;
}