//
// cocos2d::CCMouseDispatcher::dispatchScrollMSG from 0x809ec8 to 0x809f32 (106 bytes)
//
// 1 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeScroll @ 0x7ee128
//
// 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 12:01:28 +0000
//
int __fastcall cocos2d::CCMouseDispatcher::dispatchScrollMSG(cocos2d::CCArray **this, float a2, float a3)
{
cocos2d::CCDirector *v6; // r0
cocos2d::CCArray *v7; // r0
unsigned int v8; // r5
int i; // r6
cocos2d::CCArray *v10; // r7
int v11; // r0
cocos2d::CCMouseHandler *v12; // r0
int Delegate; // r0
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::noteInput(v6);
v7 = *(this + 13);
*((_BYTE *)this + 56) = 1;
if ( cocos2d::CCArray::count(v7) )
{
v8 = 0;
for ( i = 0;
v8 < cocos2d::CCArray::count(*(this + 13));
i = (*(int (__fastcall **)(int, _DWORD, _DWORD))(*(_DWORD *)Delegate + 8))(Delegate, LODWORD(a2), LODWORD(a3)) )
{
v10 = *(this + 13);
v11 = cocos2d::CCArray::count(v10);
v12 = (cocos2d::CCMouseHandler *)cocos2d::CCArray::objectAtIndex(v10, ~v8 + v11);
if ( !v12 || i )
break;
Delegate = cocos2d::CCMouseHandler::getDelegate(v12);
++v8;
}
}
*((_BYTE *)this + 56) = 0;
cocos2d::CCMouseDispatcher::flushPendingDelegates((cocos2d::CCMouseDelegate *)this);
return 1;
}