//
// cocos2d::CCConfiguration::gatherGPUInfo from 0x7b42e8 to 0x7b4644 (860 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::setOpenGLView @ 0x7cafd2
//
// 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:00:10 +0000
//
int __fastcall cocos2d::CCConfiguration::gatherGPUInfo(cocos2d::CCConfiguration *this)
{
int v2; // r10
const char *String; // r5
size_t v4; // r0
int v5; // r0
cocos2d::CCObject *v6; // r8
int v7; // r10
const char *v8; // r0
const char *v9; // r8
size_t v10; // r0
int v11; // r0
cocos2d::CCObject *v12; // r8
int v13; // r10
const char *v14; // r0
const char *v15; // r8
size_t v16; // r0
int v17; // r0
cocos2d::CCObject *v18; // r8
int v19; // r10
int v20; // r11
cocos2d::CCObject *v21; // r7
int v22; // r10
int v23; // r11
cocos2d::CCObject *v24; // r7
int v25; // r8
bool v26; // r1
cocos2d::CCObject *v27; // r0
cocos2d::CCObject *v28; // r7
int v29; // r8
bool v30; // r1
cocos2d::CCObject *v31; // r0
cocos2d::CCObject *v32; // r7
int v33; // r8
bool v34; // r1
cocos2d::CCObject *v35; // r0
cocos2d::CCObject *v36; // r7
int v37; // r8
bool v38; // r1
cocos2d::CCObject *v39; // r0
cocos2d::CCObject *v40; // r7
int v41; // r7
bool v42; // r1
cocos2d::CCObject *v43; // r0
cocos2d::CCObject *v44; // r6
int v46; // [sp+4h] [bp+0h] BYREF
int v47; // [sp+8h] [bp+4h]
int v48; // [sp+Ch] [bp+8h]
int v49; // [sp+10h] [bp+Ch] BYREF
int v50; // [sp+14h] [bp+10h]
int v51; // [sp+18h] [bp+14h]
v2 = *((_DWORD *)this + 20);
v46 = 0;
v47 = 0;
v48 = 0;
String = (const char *)glGetString(0x1F00u);
v4 = strlen(String);
std::string::__init(&v46, String, v4);
v5 = cocos2d::CCString::create(&v46);
v49 = 0;
v50 = 0;
v51 = 0;
v6 = (cocos2d::CCObject *)v5;
std::string::__init(&v49, "gl.vendor", 9u);
cocos2d::CCDictionary::setObject(v2, v6);
std::string::~string((int)&v49);
std::string::~string((int)&v46);
v7 = *((_DWORD *)this + 20);
v8 = (const char *)glGetString(0x1F01u);
v46 = 0;
v47 = 0;
v48 = 0;
v9 = v8;
v10 = strlen(v8);
std::string::__init(&v46, v9, v10);
v11 = cocos2d::CCString::create(&v46);
v49 = 0;
v50 = 0;
v51 = 0;
v12 = (cocos2d::CCObject *)v11;
std::string::__init(&v49, "gl.renderer", 0xBu);
cocos2d::CCDictionary::setObject(v7, v12);
std::string::~string((int)&v49);
std::string::~string((int)&v46);
v13 = *((_DWORD *)this + 20);
v14 = (const char *)glGetString(0x1F02u);
v46 = 0;
v47 = 0;
v48 = 0;
v15 = v14;
v16 = strlen(v14);
std::string::__init(&v46, v15, v16);
v17 = cocos2d::CCString::create(&v46);
v49 = 0;
v50 = 0;
v51 = 0;
v18 = (cocos2d::CCObject *)v17;
std::string::__init(&v49, "gl.version", 0xAu);
cocos2d::CCDictionary::setObject(v13, v18);
std::string::~string((int)&v49);
std::string::~string((int)&v46);
*((_DWORD *)this + 19) = glGetString(0x1F03u);
glGetIntegerv(0xD33u, (GLint *)this + 13);
v19 = *((_DWORD *)this + 20);
v20 = *((_DWORD *)this + 13);
v21 = (cocos2d::CCObject *)operator new(0x38u);
cocos2d::CCObject::CCObject(v21);
*((_DWORD *)v21 + 13) = v20;
*(_DWORD *)v21 = &off_C8DBE0;
cocos2d::CCObject::autorelease(v21);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "gl.max_texture_size", 0x13u);
cocos2d::CCDictionary::setObject(v19, v21);
std::string::~string((int)&v49);
glGetIntegerv(0x8B4Du, (GLint *)this + 18);
v22 = *((_DWORD *)this + 20);
v23 = *((_DWORD *)this + 18);
v24 = (cocos2d::CCObject *)operator new(0x38u);
cocos2d::CCObject::CCObject(v24);
*(_DWORD *)v24 = &off_C8DBE0;
*((_DWORD *)v24 + 13) = v23;
cocos2d::CCObject::autorelease(v24);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "gl.max_texture_units", 0x14u);
cocos2d::CCDictionary::setObject(v22, v24);
std::string::~string((int)&v49);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "GL_IMG_texture_compression_pvrtc", 0x20u);
*((_BYTE *)this + 60) = (unsigned __int8)cocos2d::CCConfiguration::checkForGLExtension((int)this, (int)&v49);
std::string::~string((int)&v49);
v25 = *((_DWORD *)this + 20);
v27 = cocos2d::CCBool::create((cocos2d::CCBool *)*((unsigned __int8 *)this + 60), v26);
v49 = 0;
v50 = 0;
v51 = 0;
v28 = v27;
std::string::__init(&v49, "gl.supports_PVRTC", 0x11u);
cocos2d::CCDictionary::setObject(v25, v28);
std::string::~string((int)&v49);
*((_BYTE *)this + 61) = (unsigned __int8)&dword_0 + 1;
v29 = *((_DWORD *)this + 20);
v31 = cocos2d::CCBool::create((cocos2d::CCBool *)((char *)&dword_0 + 1), v30);
v49 = 0;
v50 = 0;
v51 = 0;
v32 = v31;
std::string::__init(&v49, "gl.supports_NPOT", 0x10u);
cocos2d::CCDictionary::setObject(v29, v32);
std::string::~string((int)&v49);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "GL_IMG_texture_format_BGRA888", 0x1Du);
*((_BYTE *)this + 62) = (unsigned __int8)cocos2d::CCConfiguration::checkForGLExtension((int)this, (int)&v49);
std::string::~string((int)&v49);
v33 = *((_DWORD *)this + 20);
v35 = cocos2d::CCBool::create((cocos2d::CCBool *)*((unsigned __int8 *)this + 62), v34);
v49 = 0;
v50 = 0;
v51 = 0;
v36 = v35;
std::string::__init(&v49, "gl.supports_BGRA8888", 0x14u);
cocos2d::CCDictionary::setObject(v33, v36);
std::string::~string((int)&v49);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "GL_EXT_discard_framebuffer", 0x1Au);
*((_BYTE *)this + 63) = (unsigned __int8)cocos2d::CCConfiguration::checkForGLExtension((int)this, (int)&v49);
std::string::~string((int)&v49);
v37 = *((_DWORD *)this + 20);
v39 = cocos2d::CCBool::create((cocos2d::CCBool *)*((unsigned __int8 *)this + 63), v38);
v49 = 0;
v50 = 0;
v51 = 0;
v40 = v39;
std::string::__init(&v49, "gl.supports_discard_framebuffer", 0x1Fu);
cocos2d::CCDictionary::setObject(v37, v40);
std::string::~string((int)&v49);
v49 = 0;
v50 = 0;
v51 = 0;
std::string::__init(&v49, "vertex_array_object", 0x13u);
*((_BYTE *)this + 64) = (unsigned __int8)cocos2d::CCConfiguration::checkForGLExtension((int)this, (int)&v49);
std::string::~string((int)&v49);
v41 = *((_DWORD *)this + 20);
v43 = cocos2d::CCBool::create((cocos2d::CCBool *)*((unsigned __int8 *)this + 64), v42);
v49 = 0;
v50 = 0;
v51 = 0;
v44 = v43;
std::string::__init(&v49, "gl.supports_vertex_array_object", 0x1Fu);
cocos2d::CCDictionary::setObject(v41, v44);
return std::string::~string((int)&v49);
}