// // cocos2d::CCLabelTTF::updateTexture from 0x1003a6f80 to 0x1003a70f3 (371 bytes) // // 8 xrefs: // > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0x1003a6eff // > cocos2d::CCLabelTTF::setString @ 0x1003a6f6b // > sub_1003A7110 @ 0x1003a714f // > sub_1003A7200 @ 0x1003a7225 // > sub_1003A7250 @ 0x1003a7275 // > sub_1003A72B0 @ 0x1003a72ff // > sub_1003A7330 @ 0x1003a735e // > cocos2d::CCLabelTTF::setFontName @ 0x1003a74a0 // // 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 // char __fastcall cocos2d::CCLabelTTF::updateTexture(__int64 a1, __int64 a2) { void *v3; // r14 __int64 v4; // r15 __int64 v5; // r12 __int64 v6; // r12 __int64 v7; // rdi __int64 v8; // rdi __int64 v9; // rax float v10; // xmm1_4 __int64 v12; // [rsp+4h] [rbp-4Ch] BYREF __m128 v13; // [rsp+Ch] [rbp-44h] BYREF float v14; // [rsp+1Ch] [rbp-34h] float v15; // [rsp+20h] [rbp-30h] float v16; // [rsp+24h] [rbp-2Ch] v3 = operator new(0x68u); sub_10046C920(v3); if ( (*(_BYTE *)(a1 + 640) & 1) != 0 ) { v4 = *(_QWORD *)(a1 + 656); v5 = *(_QWORD *)(a1 + 624); if ( (*(_BYTE *)v5 & 1) != 0 ) goto LABEL_3; LABEL_5: v6 = v5 + 1; goto LABEL_6; } v4 = a1 + 641; v5 = *(_QWORD *)(a1 + 624); if ( (*(_BYTE *)v5 & 1) == 0 ) goto LABEL_5; LABEL_3: v6 = *(_QWORD *)(v5 + 16); LABEL_6: v15 = *(float *)(a1 + 632); v7 = cocos2d::CCDirector::sharedDirector(v3, a2); v15 = sub_100479350(v7) * v15; v16 = *(float *)(a1 + 608); v8 = cocos2d::CCDirector::sharedDirector(v7, a2); v16 = sub_100479350(v8) * v16; v14 = *(float *)(a1 + 612); v9 = cocos2d::CCDirector::sharedDirector(v8, a2); v10 = v14 * sub_100479350(v9); sub_100278260(v13.f32, v16, v10); cocos2d::CCTexture2D::initWithString(v3, v4, v6, &v13, *(unsigned int *)(a1 + 616), *(unsigned int *)(a1 + 620), v15); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 1064LL))(a1, v3); cocos2d::CCObject::release(v3); sub_1002787F0(&v13, (unsigned __int64 *)&unk_100BE34A8); (*(void (__fastcall **)(__int64 *))(**(_QWORD **)(a1 + 416) + 144LL))(&v12); sub_100278660(&v13.i64[1], &v12); (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)a1 + 1136LL))(a1, &v13); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source