//
// cocos2d::CCGrabber::grab from 0x1800225b0 to 0x180022651 (161 bytes)
//
// 2 xrefs:
// > cocos2d::CCGridBase::initWithSize @ 0x180023be5
// > ??> @ 0x1801b8fc8
//
// 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 11:21:28 +0000
//
__int64 __fastcall cocos2d::CCGrabber::grab(__int64 a1, __int64 a2)
{
unsigned int *v2; // rsi
unsigned int v5; // eax
v2 = (unsigned int *)(a1 + 60);
glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));
_glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 96LL))(a2);
_glewFramebufferTexture2D(36160, 36064, 3553, v5, 0);
_glewCheckFramebufferStatus(36160);
return _glewBindFramebuffer(36160, *v2);
}