//
// cocos2d::CCConfiguration::init from 0x7b3d6c to 0x7b3e4e (226 bytes)
//
// 1 xrefs:
// > cocos2d::CCConfiguration::sharedConfiguration @ 0x7b3e7e
//
// 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:09 +0000
//
int __fastcall cocos2d::CCConfiguration::init(cocos2d::CCConfiguration *this)
{
cocos2d::CCObject *v2; // r0
cocos2d *v3; // r0
int v4; // r10
const char *v5; // r5
size_t v6; // r0
int v7; // r0
cocos2d::CCObject *v8; // r9
int v9; // r9
bool v10; // r1
cocos2d::CCObject *v11; // r0
cocos2d::CCObject *v12; // r8
int v13; // r8
bool v14; // r1
cocos2d::CCObject *v15; // r0
cocos2d::CCObject *v16; // r7
int v18[3]; // [sp+4h] [bp-1Ch] BYREF
int v19; // [sp+10h] [bp-10h] BYREF
int v20; // [sp+14h] [bp-Ch]
int v21; // [sp+18h] [bp-8h]
v2 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(this);
*((_DWORD *)this + 20) = v2;
v3 = (cocos2d *)cocos2d::CCObject::retain(v2);
v4 = *((_DWORD *)this + 20);
memset(v18, 0, sizeof(v18));
v5 = (const char *)cocos2d::cocos2dVersion(v3);
v6 = strlen(v5);
std::string::__init(v18, v5, v6);
v7 = cocos2d::CCString::create(v18);
v19 = 0;
v20 = 0;
v21 = 0;
v8 = (cocos2d::CCObject *)v7;
std::string::__init(&v19, "cocos2d.x.version", 0x11u);
cocos2d::CCDictionary::setObject(v4, v8);
std::string::~string((int)&v19);
std::string::~string((int)v18);
v9 = *((_DWORD *)this + 20);
v11 = cocos2d::CCBool::create(nullptr, v10);
v19 = 0;
v20 = 0;
v21 = 0;
v12 = v11;
std::string::__init(&v19, "cocos2d.x.compiled_with_profiler", 0x20u);
cocos2d::CCDictionary::setObject(v9, v12);
std::string::~string((int)&v19);
v13 = *((_DWORD *)this + 20);
v15 = cocos2d::CCBool::create((cocos2d::CCBool *)((char *)&dword_0 + 1), v14);
v19 = 0;
v20 = 0;
v21 = 0;
v16 = v15;
std::string::__init(&v19, "cocos2d.x.compiled_with_gl_state_cache", 0x26u);
cocos2d::CCDictionary::setObject(v13, v16);
std::string::~string((int)&v19);
return 1;
}