// // cocos2d::CCTextFieldTTF::setPlaceHolder from 0xda2104 to 0xda2238 (308 bytes) // // 2 xrefs: // > @ 0x8cae8 // > @ 0x1530068 // // 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::setPlaceHolder(cocos2d::CCTextFieldTTF *this, const char *a2) { void **v4; // x19 __int64 *v5; // x19 size_t v6; // x0 size_t v7; // x21 unsigned __int64 v8; // x0 __int64 v9; // x23 __int64 v10; // x0 void *v11; // x3 unsigned __int8 *v12; // x2 __int64 result; // x0 __int64 v14; // x1 const char *v15; // x1 v4 = *((void ***)this + 91); if ( v4 ) { if ( (*(_BYTE *)v4 & 1) != 0 ) operator delete(v4[2]); operator delete(v4); *((_QWORD *)this + 91) = 0; } if ( a2 ) { v5 = (__int64 *)operator new(0x18u); *v5 = 0; v5[1] = 0; v5[2] = 0; v6 = strlen(a2); v7 = v6; if ( v6 <= 0x16 ) { *(_BYTE *)v5 = 2 * v6; v11 = (char *)v5 + 1; if ( !v6 ) goto LABEL_9; } else { v8 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL; v9 = v8 | 1; v10 = operator new(v8); *v5 = v9; v11 = (void *)v10; v5[2] = v10; v5[1] = v7; } v11 = memcpy(v11, a2, v7); LABEL_9: *((_BYTE *)v11 + v7) = 0; goto LABEL_10; } v5 = (__int64 *)operator new(0x18u); *v5 = 0; v5[1] = 0; v5[2] = 0; LABEL_10: v12 = *((unsigned __int8 **)this + 90); *((_QWORD *)this + 91) = v5; result = *v12; v14 = (unsigned __int8)result >> 1; if ( (result & 1) != 0 ) v14 = *((_QWORD *)v12 + 1); if ( !v14 ) { v15 = (char *)v5 + 1; if ( (*(_BYTE *)v5 & 1) != 0 ) v15 = (const char *)v5[2]; return cocos2d::CCLabelTTF::setString(this, v15); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source