//
// cocos2d::CCTexture2D::generateMipmap from 0x7ff524 to 0x7ff550 (44 bytes)
//
// 0 xrefs:
//
// 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:01:18 +0000
//
int __fastcall cocos2d::CCTexture2D::generateMipmap(cocos2d::CCTexture2D *this, unsigned int a2)
{
cocos2d *v3; // r5
unsigned int v4; // r1
unsigned int v5; // r2
int result; // r0
v3 = *((cocos2d **)this + 15);
if ( v3 == (cocos2d *)cocos2d::ccNextPOT(v3, a2) )
cocos2d::ccNextPOT(*((cocos2d **)this + 16), v4);
cocos2d::ccGLBindTexture2D(*((cocos2d **)this + 17), v4, v5);
result = glGenerateMipmap();
*((_BYTE *)this + 89) = 1;
return result;
}