// // cocos2d::CCTextFieldTTF::initWithPlaceHolder from 0xda1688 to 0xda179c (276 bytes) // // 1 xrefs: // > @ 0x8e750 // // 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:29 +0000 // __int64 __fastcall cocos2d::CCTextFieldTTF::initWithPlaceHolder( cocos2d::CCTextFieldTTF *this, const char *a2, char *a3, float a4) { void **v8; // x19 __int64 *v9; // x19 size_t v10; // x0 size_t v11; // x20 unsigned __int64 v12; // x0 __int64 v13; // x23 __int64 v14; // x0 void *v15; // x3 __int64 *v16; // x0 const char *v17; // x1 if ( a2 ) { v8 = *((void ***)this + 91); if ( v8 ) { if ( (*(_BYTE *)v8 & 1) != 0 ) operator delete(v8[2]); operator delete(v8); *((_QWORD *)this + 91) = 0; } v9 = (__int64 *)operator new(0x18u); *v9 = 0; v9[1] = 0; v9[2] = 0; v10 = strlen(a2); v11 = v10; if ( v10 <= 0x16 ) { *(_BYTE *)v9 = 2 * v10; v15 = (char *)v9 + 1; if ( !v10 ) goto LABEL_9; } else { v12 = (v10 + 16) & 0xFFFFFFFFFFFFFFF0LL; v13 = v12 | 1; v14 = operator new(v12); *v9 = v13; v15 = (void *)v14; v9[2] = v14; v9[1] = v11; } v15 = memcpy(v15, a2, v11); LABEL_9: *((_BYTE *)v15 + v11) = 0; v16 = v9; *((_QWORD *)this + 91) = v9; goto LABEL_10; } v16 = *((__int64 **)this + 91); LABEL_10: v17 = (char *)v16 + 1; if ( (*(_BYTE *)v16 & 1) != 0 ) v17 = (const char *)v16[2]; return cocos2d::CCLabelTTF::initWithString(this, v17, a3, a4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source