; ; cocos2d::CCLabelTTF::_prepareTextDefinition from 0x18004f710 to 0x18004f930 (544 bytes) ; ; 2 xrefs: ; > @ 0x18014cf68 ; > @ 0x1801bbe84 ; ; 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 11:21:45 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x18004f710 mov [rsp+arg_8], rdx ; +0x5, 0x18004f715 push rbp ; +0xa, 0x18004f71a push rsi ; +0xb, 0x18004f71b push rdi ; +0xc, 0x18004f71c sub rsp, 50h ; +0xd, 0x18004f71d movaps [rsp+68h+var_28], xmm6 ; +0x11, 0x18004f721 movaps [rsp+68h+var_38], xmm7 ; +0x16, 0x18004f726 movzx esi, r8b ; +0x1b, 0x18004f72b mov rbx, rdx ; +0x1f, 0x18004f72f mov rdi, rcx ; +0x22, 0x18004f732 mov [rsp+68h+var_48], 0 ; +0x25, 0x18004f735 mov rcx, rdx ; +0x2d, 0x18004f73d call sub_18004F550 ; +0x30, 0x18004f740 mov [rsp+68h+var_48], 1 ; +0x35, 0x18004f745 test sil, sil ; +0x3d, 0x18004f74d jz short loc_18004F76D ; +0x40, 0x18004f750 movss xmm6, dword ptr [rdi+278h] ; +0x42, 0x18004f752 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4a, 0x18004f75a mov rcx, rax; this ; +0x4f, 0x18004f75f call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x52, 0x18004f762 mulss xmm0, xmm6 ; +0x57, 0x18004f767 jmp short loc_18004F775 ; +0x5b, 0x18004f76b movss xmm0, dword ptr [rdi+278h] ; +0x5d, 0x18004f76d cvttss2si eax, xmm0 ; +0x65, 0x18004f775 mov [rbx+20h], eax ; +0x69, 0x18004f779 mov r8, [rdi+270h] ; +0x6c, 0x18004f77c cmp rbx, r8 ; +0x73, 0x18004f783 jz short loc_18004F7A1 ; +0x76, 0x18004f786 mov rdx, r8 ; +0x78, 0x18004f788 cmp qword ptr [r8+18h], 0Fh ; +0x7b, 0x18004f78b jbe short loc_18004F795 ; +0x80, 0x18004f790 mov rdx, [r8]; Src ; +0x82, 0x18004f792 mov r8, [r8+10h]; Size ; +0x85, 0x18004f795 mov rcx, rbx; void * ; +0x89, 0x18004f799 call sub_1800101E0 ; +0x8c, 0x18004f79c mov eax, [rdi+268h] ; +0x91, 0x18004f7a1 mov [rbx+24h], eax ; +0x97, 0x18004f7a7 mov eax, [rdi+26Ch] ; +0x9a, 0x18004f7aa mov [rbx+28h], eax ; +0xa0, 0x18004f7b0 test sil, sil ; +0xa3, 0x18004f7b3 jz short loc_18004F802 ; +0xa6, 0x18004f7b6 movss xmm6, dword ptr [rdi+264h] ; +0xa8, 0x18004f7b8 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xb0, 0x18004f7c0 mov rcx, rax; this ; +0xb5, 0x18004f7c5 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xb8, 0x18004f7c8 movaps xmm7, xmm0 ; +0xbd, 0x18004f7cd mulss xmm7, xmm6 ; +0xc0, 0x18004f7d0 movss xmm6, dword ptr [rdi+260h] ; +0xc4, 0x18004f7d4 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xcc, 0x18004f7dc mov rcx, rax; this ; +0xd1, 0x18004f7e1 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xd4, 0x18004f7e4 mulss xmm0, xmm6 ; +0xd9, 0x18004f7e9 movaps xmm2, xmm7 ; +0xdd, 0x18004f7ed movaps xmm1, xmm0 ; +0xe0, 0x18004f7f0 lea rcx, [rsp+68h+arg_0] ; +0xe3, 0x18004f7f3 call kmVec2Fill ; +0xe8, 0x18004f7f8 mov rdx, rax ; +0xed, 0x18004f7fd jmp short loc_18004F809 ; +0xf0, 0x18004f800 lea rdx, [rdi+260h] ; +0xf2, 0x18004f802 lea rcx, [rbx+2Ch] ; +0xf9, 0x18004f809 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xfd, 0x18004f80d cmp byte ptr [rdi+2B4h], 0 ; +0x102, 0x18004f812 jz short loc_18004F868 ; +0x109, 0x18004f819 mov byte ptr [rbx+4Ch], 1 ; +0x10b, 0x18004f81b movzx eax, word ptr [rdi+2B5h] ; +0x10f, 0x18004f81f mov [rbx+4Dh], ax ; +0x116, 0x18004f826 movzx eax, byte ptr [rdi+2B7h] ; +0x11a, 0x18004f82a mov [rbx+4Fh], al ; +0x121, 0x18004f831 test sil, sil ; +0x124, 0x18004f834 jz short loc_18004F859 ; +0x127, 0x18004f837 movss xmm6, dword ptr [rdi+2B8h] ; +0x129, 0x18004f839 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x131, 0x18004f841 mov rcx, rax; this ; +0x136, 0x18004f846 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x139, 0x18004f849 mulss xmm0, xmm6 ; +0x13e, 0x18004f84e movss dword ptr [rbx+50h], xmm0 ; +0x142, 0x18004f852 jmp short loc_18004F86C ; +0x147, 0x18004f857 movss xmm0, dword ptr [rdi+2B8h] ; +0x149, 0x18004f859 movss dword ptr [rbx+50h], xmm0 ; +0x151, 0x18004f861 jmp short loc_18004F86C ; +0x156, 0x18004f866 mov byte ptr [rbx+4Ch], 0 ; +0x158, 0x18004f868 cmp byte ptr [rdi+2A0h], 0 ; +0x15c, 0x18004f86c jz loc_18004F8F9 ; +0x163, 0x18004f873 mov byte ptr [rbx+38h], 1 ; +0x169, 0x18004f879 mov eax, [rdi+2B0h] ; +0x16d, 0x18004f87d mov [rbx+44h], eax ; +0x173, 0x18004f883 mov eax, [rdi+2ACh] ; +0x176, 0x18004f886 mov [rbx+48h], eax ; +0x17c, 0x18004f88c test sil, sil ; +0x17f, 0x18004f88f jz short loc_18004F8E7 ; +0x182, 0x18004f892 movss xmm6, dword ptr [rdi+2A8h] ; +0x184, 0x18004f894 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x18c, 0x18004f89c mov rcx, rax; this ; +0x191, 0x18004f8a1 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x194, 0x18004f8a4 movaps xmm7, xmm0 ; +0x199, 0x18004f8a9 mulss xmm7, xmm6 ; +0x19c, 0x18004f8ac movss xmm6, dword ptr [rdi+2A4h] ; +0x1a0, 0x18004f8b0 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1a8, 0x18004f8b8 mov rcx, rax; this ; +0x1ad, 0x18004f8bd call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x1b0, 0x18004f8c0 mulss xmm0, xmm6 ; +0x1b5, 0x18004f8c5 movaps xmm2, xmm7 ; +0x1b9, 0x18004f8c9 movaps xmm1, xmm0 ; +0x1bc, 0x18004f8cc lea rcx, [rsp+68h+arg_0] ; +0x1bf, 0x18004f8cf call kmVec2Fill ; +0x1c4, 0x18004f8d4 mov rdx, rax ; +0x1c9, 0x18004f8d9 lea rcx, [rbx+3Ch] ; +0x1cc, 0x18004f8dc call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x1d0, 0x18004f8e0 jmp short loc_18004F8FD ; +0x1d5, 0x18004f8e5 lea rcx, [rbx+3Ch] ; +0x1d7, 0x18004f8e7 lea rdx, [rdi+2A4h] ; +0x1db, 0x18004f8eb call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x1e2, 0x18004f8f2 jmp short loc_18004F8FD ; +0x1e7, 0x18004f8f7 mov byte ptr [rbx+38h], 0 ; +0x1e9, 0x18004f8f9 movzx eax, word ptr [rdi+2BCh] ; +0x1ed, 0x18004f8fd mov [rbx+34h], ax ; +0x1f4, 0x18004f904 movzx eax, byte ptr [rdi+2BEh] ; +0x1f8, 0x18004f908 mov [rbx+36h], al ; +0x1ff, 0x18004f90f mov rax, rbx ; +0x202, 0x18004f912 mov rbx, [rsp+68h+arg_10] ; +0x205, 0x18004f915 movaps xmm6, [rsp+68h+var_28] ; +0x20d, 0x18004f91d movaps xmm7, [rsp+68h+var_38] ; +0x212, 0x18004f922 add rsp, 50h ; +0x217, 0x18004f927 pop rdi ; +0x21b, 0x18004f92b pop rsi ; +0x21c, 0x18004f92c pop rbp ; +0x21d, 0x18004f92d retn ; +0x21e, 0x18004f92e align 10h ; +0x21f, 0x18004f92f