// // cocos2d::CCLabelTTF::_prepareTextDefinition from 0x1003a76a0 to 0x1003a7991 (753 bytes) // // 1 xrefs: // > cocos2d::CCLabelTTF::getTextDefinition @ 0x1003a75d3 // // This function is hookable on this platform (idp: pc, 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 12:29:22 +0000 // std::string *__fastcall cocos2d::CCLabelTTF::_prepareTextDefinition(std::string *this, __int64 a2, char a3) { std::string *v6; // r13 __int64 v7; // rax float v8; // xmm0_4 float v9; // xmm1_4 const std::string *v10; // rsi __int64 v11; // rdi __int64 v12; // rax float v13; // xmm0_4 __int64 *v14; // rsi char *v15; // rdi float v16; // xmm0_4 __int64 v17; // rdi __int64 v18; // rax float v19; // xmm0_4 __int64 v21; // [rsp+4h] [rbp-3Ch] BYREF float v22; // [rsp+Ch] [rbp-34h] float v23; // [rsp+10h] [rbp-30h] float v24; // [rsp+14h] [rbp-2Ch] *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; *(_QWORD *)((char *)this + 28) = 1; v6 = (std::string *)((char *)this + 36); sub_100278600((std::string *)((char *)this + 36)); *((_BYTE *)this + 46) = -1; *((_WORD *)this + 22) = -1; *((_BYTE *)this + 48) = 0; sub_100278600((std::string *)((char *)this + 52)); *((_BYTE *)this + 68) = 0; sub_100278260((float *)&v21, 0.0, 0.0); sub_100278660((std::string *)((char *)this + 36), &v21); v24 = *(float *)(a2 + 632); if ( a3 ) { v7 = cocos2d::CCDirector::sharedDirector(v6, &v21); v8 = sub_100479350(v7); v9 = v24 * v8; } else { v9 = v24; } *((_DWORD *)this + 6) = (int)v9; v10 = *(const std::string **)(a2 + 624); std::string::operator=(this, v10); *(_QWORD *)((char *)this + 28) = *(_QWORD *)(a2 + 616); if ( !a3 ) { v14 = (__int64 *)(a2 + 608); v15 = (char *)this + 36; sub_100278660(v6, (_QWORD *)(a2 + 608)); if ( *(_BYTE *)(a2 + 684) ) { *((_BYTE *)this + 68) = 1; *(_WORD *)((char *)this + 69) = *(_WORD *)(a2 + 685); *((_BYTE *)this + 71) = *(_BYTE *)(a2 + 687); *((_DWORD *)this + 18) = *(_DWORD *)(a2 + 688); if ( *(_BYTE *)(a2 + 664) != 1 ) goto LABEL_14; *((_BYTE *)this + 48) = 1; _mm_storel_ps( (double *)((char *)this + 60), _mm_shuffle_ps((__m128)*(unsigned __int64 *)(a2 + 676), (__m128)*(unsigned __int64 *)(a2 + 676), 225)); LABEL_15: sub_100278660((std::string *)((char *)this + 52), (_QWORD *)(a2 + 668)); goto LABEL_16; } LABEL_11: *((_BYTE *)this + 68) = 0; if ( !*(_BYTE *)(a2 + 664) ) goto LABEL_14; *((_BYTE *)this + 48) = 1; _mm_storel_ps( (double *)((char *)this + 60), _mm_shuffle_ps((__m128)*(unsigned __int64 *)(a2 + 676), (__m128)*(unsigned __int64 *)(a2 + 676), 225)); if ( a3 ) goto LABEL_13; goto LABEL_15; } v24 = *(float *)(a2 + 608); v11 = cocos2d::CCDirector::sharedDirector(this, v10); v22 = sub_100479350(v11); v23 = *(float *)(a2 + 612); v12 = cocos2d::CCDirector::sharedDirector(v11, v10); v13 = sub_100479350(v12); sub_100278260((float *)&v21, v24 * v22, v23 * v13); v14 = &v21; v15 = (char *)v6; sub_100278660(v6, &v21); if ( !*(_BYTE *)(a2 + 684) ) goto LABEL_11; *((_BYTE *)this + 68) = 1; *(_WORD *)((char *)this + 69) = *(_WORD *)(a2 + 685); *((_BYTE *)this + 71) = *(_BYTE *)(a2 + 687); v24 = *(float *)(a2 + 688); v15 = (char *)cocos2d::CCDirector::sharedDirector(v6, &v21); v16 = sub_100479350(v15); *((float *)this + 18) = v24 * v16; if ( *(_BYTE *)(a2 + 664) != 1 ) { LABEL_14: *((_BYTE *)this + 48) = 0; goto LABEL_16; } *((_BYTE *)this + 48) = 1; _mm_storel_ps( (double *)((char *)this + 60), _mm_shuffle_ps((__m128)*(unsigned __int64 *)(a2 + 676), (__m128)*(unsigned __int64 *)(a2 + 676), 225)); LABEL_13: v24 = *(float *)(a2 + 668); v17 = cocos2d::CCDirector::sharedDirector(v15, v14); v22 = sub_100479350(v17); v23 = *(float *)(a2 + 672); v18 = cocos2d::CCDirector::sharedDirector(v17, v14); v19 = sub_100479350(v18); sub_100278260((float *)&v21, v24 * v22, v23 * v19); sub_100278660((std::string *)((char *)this + 52), &v21); LABEL_16: *((_BYTE *)this + 46) = *(_BYTE *)(a2 + 694); *((_WORD *)this + 22) = *(_WORD *)(a2 + 692); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source