//
// ScrollableContentLayer::scrollWheel from 0x10096cb10 to 0x10096cc64 (340 bytes)
//
// 2 xrefs:
// > sub_10096CC70 @ 0x10096cc7c
// > ??> @ 0x100bcdd88
//
// This function is hookable on this platform (idp: pc, 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 12:38:51 +0000
//
__int64 __fastcall ScrollableContentLayer::scrollWheel(__int64 a1, float a2)
{
__int64 v2; // rax
__int64 v3; // r14
__int64 v4; // rax
__int64 v5; // r14
__int64 v6; // r15
unsigned int v7; // eax
unsigned int v8; // r14d
unsigned int v10; // [rsp+Ch] [rbp-44h] BYREF
double v11; // [rsp+14h] [rbp-3Ch] BYREF
unsigned __int64 v12[2]; // [rsp+1Ch] [rbp-34h] BYREF
float v13; // [rsp+2Ch] [rbp-24h]
v13 = a2;
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
return 0;
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
if ( v2 )
{
v3 = v2;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 352LL))(v3) )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
if ( !v3 )
goto LABEL_6;
}
return 0;
}
LABEL_6:
if ( *(float *)(a1 + 4LL * (*(unsigned __int8 *)(a1 + 584) ^ 1u) + 424) >= *(float *)(a1 + 432) )
return 0;
v4 = cocos2d::CCEGLView::sharedOpenGLView();
if ( !v4 )
return 0;
v5 = v4;
v6 = cocos2d::CCDirector::sharedDirector();
(*(void (__fastcall **)(unsigned __int64 *, __int64))(*(_QWORD *)v5 + 184LL))(v12, v5);
cocos2d::CCDirector::convertToGL((float *)&v10, v6, v12);
cocos2d::CCNode::convertToNodeSpace(&v11, a1, &v10);
sub_100278270((__int64)v12, 0.0, 0.0, (__m128)*(unsigned int *)(a1 + 424), (__m128)*(unsigned int *)(a1 + 428));
LOBYTE(v7) = sub_100278940((float *)v12, (float *)&v11);
v8 = v7;
if ( (_BYTE)v7 )
{
cocos2d::CCNode::unscheduleUpdate(a1);
*(_DWORD *)(a1 + 472) = 0;
*(float *)(a1 + 476) = (float)(v13 + v13) + *(float *)(a1 + 476);
cocos2d::CCNode::scheduleUpdate(a1);
}
return v8;
}