//
// cocos2d::CCGrabber::grab from 0x1006d1030 to 0x1006d1095 (101 bytes)
//
// 1 xrefs:
// > cocos2d::CCGridBase::initWithSize @ 0x1004de7e9
//
// 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 12:35:38 +0000
//
void __fastcall cocos2d::CCGrabber::grab(__int64 a1, __int64 a2)
{
GLuint v2; // eax
glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));
glBindFramebuffer(0x8D40u, *(_DWORD *)(a1 + 56));
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 104LL))(a2);
glFramebufferTexture2D(0x8D40u, 0x8CE0u, 0xDE1u, v2, 0);
glCheckFramebufferStatus(0x8D40u);
glBindFramebuffer(0x8D40u, *(_DWORD *)(a1 + 60));
}