// // cocos2d::extension::CCScrollView::beforeDraw from 0x180013600 to 0x180013797 (407 bytes) // // 5 xrefs: // > cocos2d::extension::CCScrollView::visit @ 0x180013867 // > @ 0x18002ea20 // > @ 0x18002ea60 // > @ 0x18002fdf8 // > @ 0x18004a4f4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::extension::CCScrollView::beforeDraw(cocos2d::extension::CCScrollView *this) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax int v7; // [rsp+30h] [rbp-68h] BYREF _BYTE v8[16]; // [rsp+40h] [rbp-58h] BYREF if ( *((_BYTE *)this + 477) ) { *((_BYTE *)this + 544) = 0; cocos2d::extension::CCScrollView::getViewRect(this, &v7); v2 = cocos2d::CCEGLView::sharedOpenGLView(); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 112LL))(v2) ) { *((_BYTE *)this + 544) = 1; v3 = cocos2d::CCEGLView::sharedOpenGLView(); v4 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 120LL))(v3, v8); cocos2d::CCRect::operator=((char *)this + 528, v4); if ( cocos2d::CCRect::intersectsRect( (cocos2d::CCRect *)&v7, (cocos2d::extension::CCScrollView *)((char *)this + 528)) ) { v5 = cocos2d::CCEGLView::sharedOpenGLView(); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5); } } else { glEnable(0xC11u); v6 = cocos2d::CCEGLView::sharedOpenGLView(); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6); } } }