// // cocos2d::extension::CCScrollView::beforeDraw from 0x7ae920 to 0x7aea56 (310 bytes) // // 1 xrefs: // > cocos2d::extension::CCScrollView::visit @ 0x7aea86 // // 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:00:05 +0000 // cocos2d::CCEGLView *__fastcall cocos2d::extension::CCScrollView::beforeDraw(cocos2d::CCEGLView *this) { cocos2d::CCEGLView *v1; // r4 cocos2d::extension::CCScrollView *ViewRect; // r0 int v3; // r0 cocos2d::CCEGLView *v4; // r0 int v5; // r0 int v6; // r0 cocos2d::CCEGLView *v7; // r0 int v8; // r0 float v9; // [sp+14h] [bp-24h] BYREF _BYTE v10[16]; // [sp+24h] [bp-14h] BYREF v1 = this; if ( *((_BYTE *)this + 373) ) { *((_BYTE *)this + 432) = 0; ViewRect = cocos2d::extension::CCScrollView::getViewRect((cocos2d::extension::CCScrollView *)&v9, (int)this); v3 = cocos2d::CCEGLView::sharedOpenGLView(ViewRect); v4 = (cocos2d::CCEGLView *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 60))(v3); if ( v4 ) { *((_BYTE *)v1 + 432) = 1; v5 = cocos2d::CCEGLView::sharedOpenGLView(v4); (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v5 + 64))(v10, v5); cocos2d::CCRect::operator=((char *)v1 + 416, v10); this = (cocos2d::CCEGLView *)cocos2d::CCRect::intersectsRect( (cocos2d::CCRect *)&v9, (cocos2d::CCEGLView *)((char *)v1 + 416)); if ( this ) { v6 = cocos2d::CCEGLView::sharedOpenGLView(this); return (cocos2d::CCEGLView *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 56))(v6); } } else { glEnable(0xC11u); v8 = cocos2d::CCEGLView::sharedOpenGLView(v7); return (cocos2d::CCEGLView *)(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 56))(v8); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source