//
// cocos2d::CCDictMaker::textHandler from 0x7e7b58 to 0x7e7c0e (182 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:00:55 +0000
//
_DWORD *__fastcall cocos2d::CCDictMaker::textHandler(cocos2d::CCDictMaker *this, void *a2, const char *a3, size_t a4)
{
_DWORD *result; // r0
size_t v8; // r0
cocos2d::CCString *v9; // r5
int v10; // r4
char *v11; // r0
char *CString; // r4
size_t v13; // r0
int v14[3]; // [sp+Ch] [bp-20h] BYREF
int v15[3]; // [sp+18h] [bp-14h] BYREF
result = &_stack_chk_guard;
if ( *((_DWORD *)this + 17) )
{
memset(v15, 0, sizeof(v15));
v8 = strlen(a3);
std::string::__init(v15, a3, v8);
std::string::basic_string(v14, (unsigned __int8 *)v15, 0, a4);
v9 = (cocos2d::CCString *)operator new(0x40u);
cocos2d::CCString::CCString(v9, (int)v14);
std::string::~string((int)v14);
std::string::~string((int)v15);
v10 = *((_DWORD *)this + 17);
if ( v10 == 1 )
{
CString = cocos2d::CCString::getCString(v9);
v13 = strlen(CString);
std::string::assign((_DWORD *)this + 11, CString, v13);
}
else if ( v10 )
{
if ( (unsigned int)(v10 - 3) <= 2 )
{
v11 = cocos2d::CCString::getCString(v9);
std::string::append((_DWORD *)this + 14, v11);
}
}
return cocos2d::CCObject::release(v9);
}
return result;
}