// // cocos2d::CCTextFieldTTF::setString from 0xda1b74 to 0xda1db8 (580 bytes) // // 3 xrefs: // > `non-virtual thunk to'cocos2d::CCTextFieldTTF::setString @ 0xda1dbc // > @ 0xb3878 // > @ 0x1530038 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:30 +0000 // __int64 __fastcall cocos2d::CCTextFieldTTF::setString(cocos2d::CCTextFieldTTF *this, char *a2) { void **v4; // x20 __int64 *v5; // x20 size_t v6; // x0 const void *v7; // x1 size_t v8; // x2 unsigned __int8 *v9; // x1 int v10; // w20 __int64 *v11; // x0 __int64 v12; // x1 __int64 *v13; // x3 char *v14; // x1 _BYTE *v15; // x1 char v16; // t1 int v17; // w0 int v18; // w2 int v19; // w3 int v20; // t1 __int64 v21; // x0 unsigned __int8 *v23; // x0 int v24; // w20 int v25; // w20 size_t v26; // x0 unsigned __int8 *v27; // x0 __int64 v28[2]; // [xsp+40h] [xbp+40h] BYREF void *v29; // [xsp+50h] [xbp+50h] v28[0] = 0; v28[1] = 0; v4 = *((void ***)this + 90); v29 = nullptr; if ( v4 ) { if ( (*(_BYTE *)v4 & 1) != 0 ) operator delete(v4[2]); operator delete(v4); *((_QWORD *)this + 90) = 0; } if ( a2 ) { v5 = (__int64 *)operator new(0x18u); *v5 = 0; v5[1] = 0; v5[2] = 0; v6 = strlen(a2); std::string::__init(v5, a2, v6); *((_QWORD *)this + 90) = v5; if ( v5 != v28 ) { if ( (*(_BYTE *)v5 & 1) != 0 ) { v7 = (const void *)v5[2]; v8 = v5[1]; } else { v7 = (char *)v5 + 1; v8 = *(_BYTE *)v5 >> 1; } std::string::assign(v28, v7, v8); } if ( *((_BYTE *)this + 739) ) { std::string::assign(v28, &byte_11B8890, 0); v23 = *((unsigned __int8 **)this + 90); v24 = *v23; if ( (v24 & 1) != 0 ) { v12 = *((_QWORD *)v23 + 1); v25 = v12; if ( !(_DWORD)v12 ) { v11 = (__int64 *)((char *)this + 640); goto LABEL_14; } } else { v25 = v24 >> 1; if ( !v25 ) { v11 = (__int64 *)((char *)this + 640); v12 = 0; goto LABEL_14; } } do { v26 = strlen(byte_154A260); std::string::append((__int64)v28, byte_154A260, v26); --v25; } while ( v25 ); } v9 = *((unsigned __int8 **)this + 90); } else { v27 = (unsigned __int8 *)operator new(0x18u); *(_QWORD *)v27 = 0; *((_QWORD *)v27 + 1) = 0; v9 = v27; *((_QWORD *)v27 + 2) = 0; *((_QWORD *)this + 90) = v27; } v10 = *v9; v11 = (__int64 *)((char *)this + 640); if ( (v10 & 1) != 0 ) v12 = *((_QWORD *)v9 + 1); else v12 = v10 >> 1; LABEL_14: v13 = v28; if ( !v12 ) v13 = *((__int64 **)this + 91); if ( v13 != v11 ) { if ( (*(_BYTE *)v13 & 1) != 0 ) std::string::assign(v11, (const void *)v13[2], v13[1]); else std::string::assign(v11, (char *)v13 + 1, *(_BYTE *)v13 >> 1); } v14 = *((char **)this + 90); v16 = *v14; v15 = v14 + 1; if ( (v16 & 1) != 0 ) v15 = *(_BYTE **)(*((_QWORD *)this + 90) + 16LL); LOBYTE(v17) = *v15; v18 = 0; if ( *v15 ) { do { v19 = v17 & 0xC0; v20 = (unsigned __int8)*++v15; v17 = v20; if ( v19 != 128 ) ++v18; } while ( v17 ); } v21 = *((_QWORD *)this + 88); *((_DWORD *)this + 178) = v18; if ( v21 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 40LL))(v21); if ( (v28[0] & 1) != 0 ) operator delete(v29); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source