// // cocos2d::CCTextFieldTTF::setString from 0x10026380c to 0x10026398c (384 bytes) // // 2 xrefs: // > sub_1002639BC @ 0x1002639c0 // > @ 0x100911c28 // // 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 11:01:40 +0000 // void __fastcall cocos2d::CCTextFieldTTF::setString(__int64 a1, char *a2) { __int64 v4; // x21 std::string *v5; // x21 __int64 v6; // x8 __int64 v7; // x21 _QWORD *v8; // x0 __int64 v9; // x9 std::string *v10; // x1 __int64 *v11; // x9 char v12; // w10 int v13; // w8 unsigned __int8 *v14; // x9 int v15; // t1 __int64 v16; // x0 std::string v17; // [xsp+8h] [xbp-38h] BYREF memset(&v17, 0, sizeof(v17)); v4 = *(_QWORD *)(a1 + 720); if ( v4 ) { if ( *(char *)(v4 + 23) < 0 ) operator delete(*(void **)v4); operator delete((void *)v4); *(_QWORD *)(a1 + 720) = 0; } if ( !a2 ) { v8 = operator new(0x18u); *v8 = 0; v8[1] = 0; v8[2] = 0; *(_QWORD *)(a1 + 720) = v8; goto LABEL_13; } v5 = (std::string *)operator new(0x18u); sub_100009900(v5, a2); *(_QWORD *)(a1 + 720) = v5; std::string::operator=(&v17, v5); if ( *(_BYTE *)(a1 + 739) != 1 ) goto LABEL_13; std::string::assign(&v17, ""); v6 = *(_QWORD *)(a1 + 720); v7 = *(char *)(v6 + 23); if ( v7 < 0 ) { v7 = *(_QWORD *)(v6 + 8); if ( !(_DWORD)v7 ) goto LABEL_13; } else if ( !*(_BYTE *)(v6 + 23) ) { goto LABEL_13; } do { std::string::append(&v17, byte_1009D40E8); LODWORD(v7) = v7 - 1; } while ( (_DWORD)v7 ); LABEL_13: v9 = *(_QWORD *)(a1 + 720); if ( (*(char *)(v9 + 23) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(v9 + 8) ) goto LABEL_15; } else if ( *(_BYTE *)(v9 + 23) ) { LABEL_15: v10 = &v17; goto LABEL_18; } v10 = *(std::string **)(a1 + 728); LABEL_18: std::string::operator=((std::string *)(a1 + 640), v10); v11 = *(__int64 **)(a1 + 720); if ( *((char *)v11 + 23) < 0 ) v11 = (__int64 *)*v11; v12 = *(_BYTE *)v11; if ( *(_BYTE *)v11 ) { v13 = 0; v14 = (unsigned __int8 *)v11 + 1; do { if ( (v12 & 0xC0) != 0x80 ) ++v13; v15 = *v14++; v12 = v15; } while ( v15 ); } else { v13 = 0; } *(_DWORD *)(a1 + 712) = v13; v16 = *(_QWORD *)(a1 + 704); if ( v16 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 40LL))(v16); if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v17.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source