// // ScrollableContentLayer::scrollWheel from 0x3f4754 to 0x3f4856 (258 bytes) // // 1 xrefs: // > `non-virtual thunk to'ScrollableContentLayer::scrollWheel @ 0x3f4860 // // 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:47:16 +0000 // int __fastcall ScrollableContentLayer::scrollWheel(ScrollableContentLayer *this, float a2, float a3) { int v5; // r5 int i; // r0 int v7; // r5 float v8; // s15 cocos2d::CCDirector *v9; // r0 cocos2d::CCDirector *v10; // r7 const cocos2d::CCPoint *v11; // r8 float v12; // s15 _BYTE v14[8]; // [sp+Ch] [bp-24h] BYREF _BYTE v15[8]; // [sp+14h] [bp-1Ch] BYREF _BYTE v16[16]; // [sp+1Ch] [bp-14h] BYREF if ( !(*(int (__fastcall **)(ScrollableContentLayer *, _DWORD, _DWORD))(*(_DWORD *)this + 176))( this, LODWORD(a2), LODWORD(a3)) ) return 0; for ( i = (*(int (__fastcall **)(ScrollableContentLayer *))(*(_DWORD *)this + 256))(this); ; i = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 256))(v7) ) { v7 = i; if ( !i ) break; if ( !(*(int (__fastcall **)(int))(*(_DWORD *)i + 176))(i) ) return 0; } v8 = *((float *)this + 81); if ( !*((_BYTE *)this + 444) ) v8 = *((float *)this + 82); if ( *((float *)this + 83) <= v8 ) return 0; v9 = (cocos2d::CCDirector *)cocos2d::CCEGLView::sharedOpenGLView(nullptr); v10 = v9; if ( !v9 ) return 0; v11 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(v9); (*(void (__fastcall **)(_BYTE *, cocos2d::CCDirector *))(*(_DWORD *)v10 + 92))(v16, v10); cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v14, v11); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, 0.0, 0.0, *((float *)this + 81), *((float *)this + 82)); v5 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v16, (const cocos2d::CCPoint *)v15); if ( !v5 ) return 0; cocos2d::CCNode::unscheduleUpdate(this); v12 = *((float *)this + 93); *((_DWORD *)this + 92) = 0; *((float *)this + 93) = v12 + (float)(a2 + a2); cocos2d::CCNode::scheduleUpdate(this); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source