//
// sub_1800220A0 from 0x1800220a0 to 0x18002212f (143 bytes)
//
// 2 xrefs:
// > cocos2d::CCGridBase::initWithSize @ 0x180023695
// > ??> @ 0x1801aeee4
//
// 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
//
__int64 __fastcall sub_1800220A0(__int64 a1, __int64 a2)
{
unsigned int v4; // eax
glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));
_glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 96LL))(a2);
_glewFramebufferTexture2D(36160, 36064, 3553, v4, 0);
_glewCheckFramebufferStatus(36160);
return _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 60));
}