// // cocos2d::CCTextFieldTTF::setString from 0x7fecac to 0x7fedd2 (294 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::CCTextFieldTTF::setString @ 0x7fede4 // // 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::CCTextFieldTTF::setString(cocos2d::CCTextFieldTTF *this, const char *a2) { void *v2; // r8 int *v5; // r7 size_t v6; // r0 unsigned __int8 *v7; // r3 int v8; // r5 int v9; // r5 size_t v10; // r0 _DWORD *v11; // r0 unsigned __int8 *v12; // r2 int v13; // r3 int v14; // r3 unsigned __int8 *v15; // r1 int v16; // r3 int v17; // r3 int v18; // r3 int v19; // r1 char v20; // r2 int v21; // t1 int v22; // r0 _DWORD v24[3]; // [sp+0h] [bp-14h] BYREF v2 = *((void **)this + 148); memset(v24, 0, sizeof(v24)); if ( v2 ) { std::string::~string((int)v2); operator delete(v2); *((_DWORD *)this + 148) = 0; } if ( a2 ) { v5 = (int *)operator new(0xCu); *v5 = 0; v5[1] = 0; v5[2] = 0; v6 = strlen(a2); std::string::__init(v5, a2, v6); *((_DWORD *)this + 148) = v5; std::string::operator=((unsigned __int8 *)v24, (unsigned __int8 *)v5); if ( *((_BYTE *)this + 603) ) { std::string::assign(v24, &unk_B6B226, 0); v7 = *((unsigned __int8 **)this + 148); v8 = *v7; if ( (v8 & 1) != 0 ) v9 = *((_DWORD *)v7 + 1); else v9 = v8 >> 1; while ( v9 ) { --v9; v10 = strlen(byte_D1FF80); std::string::append(v24, byte_D1FF80, v10); } } } else { v11 = (_DWORD *)operator new(0xCu); *v11 = 0; v11[1] = 0; v11[2] = 0; *((_DWORD *)this + 148) = v11; } v12 = *((unsigned __int8 **)this + 148); v13 = *v12; if ( (v13 & 1) != 0 ) v14 = *((_DWORD *)v12 + 1); else v14 = v13 >> 1; if ( v14 ) v15 = (unsigned __int8 *)v24; else v15 = *((unsigned __int8 **)this + 149); std::string::operator=((unsigned __int8 *)this + 536, v15); v16 = *((_DWORD *)this + 148); if ( (*(_BYTE *)v16 & 1) != 0 ) v17 = *(_DWORD *)(v16 + 8); else v17 = v16 + 1; v18 = v17 - 1; v19 = 0; while ( 1 ) { v21 = *(unsigned __int8 *)++v18; v20 = v21; if ( !v21 ) break; if ( (v20 & 0xC0) != 0x80 ) ++v19; } v22 = *((_DWORD *)this + 146); *((_DWORD *)this + 147) = v19; if ( v22 ) (*(void (__fastcall **)(int))(*(_DWORD *)v22 + 20))(v22); return std::string::~string((int)v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source