; ; cocos2d::CCLabelTTF::_updateWithTextDefinition from 0x18004db40 to 0x18004dcef (431 bytes) ; ; 4 xrefs: ; > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e622 ; > cocos2d::CCLabelTTF::setTextDefinition @ 0x18004e868 ; > @ 0x1801438a8 ; > @ 0x1801b1bfc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x18004db40 mov [rsp+arg_10], rbp ; +0x5, 0x18004db45 push rsi ; +0xa, 0x18004db4a push rdi ; +0xb, 0x18004db4b push r12 ; +0xc, 0x18004db4c push r14 ; +0xe, 0x18004db4e push r15 ; +0x10, 0x18004db50 sub rsp, 20h ; +0x12, 0x18004db52 movzx r12d, r8b ; +0x16, 0x18004db56 mov rsi, rdx ; +0x1a, 0x18004db5a mov r14, rcx ; +0x1d, 0x18004db5d movss xmm2, dword ptr [rdx+30h] ; +0x20, 0x18004db60 movss xmm1, dword ptr [rdx+2Ch] ; +0x25, 0x18004db65 lea rcx, [rsp+48h+arg_0] ; +0x2a, 0x18004db6a call kmVec2Fill ; +0x2f, 0x18004db6f mov rdx, rax ; +0x34, 0x18004db74 lea rcx, [r14+260h] ; +0x37, 0x18004db77 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x3e, 0x18004db7e mov eax, [rsi+24h] ; +0x43, 0x18004db83 mov [r14+268h], eax ; +0x46, 0x18004db86 mov eax, [rsi+28h] ; +0x4d, 0x18004db8d mov [r14+26Ch], eax ; +0x50, 0x18004db90 mov ecx, 20h ; ' '; Size ; +0x57, 0x18004db97 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5c, 0x18004db9c mov rbx, rax ; +0x61, 0x18004dba1 mov [rsp+48h+arg_0], rax ; +0x64, 0x18004dba4 xor ecx, ecx ; +0x69, 0x18004dba9 test rax, rax ; +0x6b, 0x18004dbab jz loc_18004DCA4 ; +0x6e, 0x18004dbae xorps xmm0, xmm0 ; +0x74, 0x18004dbb4 movups xmmword ptr [rax], xmm0 ; +0x77, 0x18004dbb7 mov [rax+10h], rcx ; +0x7a, 0x18004dbba mov [rax+18h], rcx ; +0x7e, 0x18004dbbe mov r15, rsi ; +0x82, 0x18004dbc2 cmp qword ptr [rsi+18h], 0Fh ; +0x85, 0x18004dbc5 jbe short loc_18004DBCF ; +0x8a, 0x18004dbca mov r15, [rsi] ; +0x8c, 0x18004dbcc mov rbp, [rsi+10h] ; +0x8f, 0x18004dbcf mov rdi, 7FFFFFFFFFFFFFFFh ; +0x93, 0x18004dbd3 cmp rbp, rdi ; +0x9d, 0x18004dbdd ja loc_18004DCE3 ; +0xa0, 0x18004dbe0 mov qword ptr [rax+18h], 0Fh ; +0xa6, 0x18004dbe6 cmp rbp, 0Fh ; +0xae, 0x18004dbee ja short loc_18004DC04 ; +0xb2, 0x18004dbf2 mov [rax+10h], rbp ; +0xb4, 0x18004dbf4 movups xmm0, xmmword ptr [r15] ; +0xb8, 0x18004dbf8 movups xmmword ptr [rax], xmm0 ; +0xbc, 0x18004dbfc jmp loc_18004DCA7 ; +0xbf, 0x18004dbff mov r9, [rax+18h] ; +0xc4, 0x18004dc04 mov rdx, rbp ; +0xc8, 0x18004dc08 or rdx, 0Fh ; +0xcb, 0x18004dc0b cmp rdx, rdi ; +0xcf, 0x18004dc0f ja short loc_18004DC4E ; +0xd2, 0x18004dc12 mov r8, r9 ; +0xd4, 0x18004dc14 shr r8, 1 ; +0xd7, 0x18004dc17 mov rax, rdi ; +0xda, 0x18004dc1a sub rax, r8 ; +0xdd, 0x18004dc1d cmp r9, rax ; +0xe0, 0x18004dc20 ja short loc_18004DC4E ; +0xe3, 0x18004dc23 lea rax, [r8+r9] ; +0xe5, 0x18004dc25 mov rdi, rdx ; +0xe9, 0x18004dc29 cmp rdx, rax ; +0xec, 0x18004dc2c cmovb rdi, rax ; +0xef, 0x18004dc2f lea rax, [rdi+1] ; +0xf3, 0x18004dc33 cmp rax, 1000h ; +0xf7, 0x18004dc37 jb short loc_18004DC7B ; +0xfd, 0x18004dc3d lea rcx, [rax+27h] ; +0xff, 0x18004dc3f cmp rcx, rax ; +0x103, 0x18004dc43 jbe loc_18004DCE9 ; +0x106, 0x18004dc46 jmp short loc_18004DC5C ; +0x10c, 0x18004dc4c mov rcx, 8000000000000000h ; +0x10e, 0x18004dc4e add rcx, 27h ; '''; Size ; +0x118, 0x18004dc58 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x11c, 0x18004dc5c test rax, rax ; +0x121, 0x18004dc61 jz short loc_18004DC74 ; +0x124, 0x18004dc64 lea rcx, [rax+27h] ; +0x126, 0x18004dc66 and rcx, 0FFFFFFFFFFFFFFE0h ; +0x12a, 0x18004dc6a mov [rcx-8], rax ; +0x12e, 0x18004dc6e jmp short loc_18004DC8B ; +0x132, 0x18004dc72 call cs:_invalid_parameter_noinfo_noreturn ; +0x134, 0x18004dc74 db 0CCh ; +0x13a, 0x18004dc7a test rax, rax ; +0x13b, 0x18004dc7b jz short loc_18004DC8B ; +0x13e, 0x18004dc7e mov rcx, rax; Size ; +0x140, 0x18004dc80 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x143, 0x18004dc83 mov rcx, rax; void * ; +0x148, 0x18004dc88 mov [rbx], rcx ; +0x14b, 0x18004dc8b mov [rbx+10h], rbp ; +0x14e, 0x18004dc8e mov [rbx+18h], rdi ; +0x152, 0x18004dc92 lea r8, [rbp+1]; Size ; +0x156, 0x18004dc96 mov rdx, r15; Src ; +0x15a, 0x18004dc9a call memcpy ; +0x15d, 0x18004dc9d jmp short loc_18004DCA7 ; +0x162, 0x18004dca2 mov rbx, rcx ; +0x164, 0x18004dca4 mov [r14+270h], rbx ; +0x167, 0x18004dca7 movd xmm0, dword ptr [rsi+20h] ; +0x16e, 0x18004dcae cvtdq2ps xmm0, xmm0 ; +0x173, 0x18004dcb3 movss dword ptr [r14+278h], xmm0 ; +0x176, 0x18004dcb6 test r12b, r12b ; +0x17f, 0x18004dcbf jz short loc_18004DCCC ; +0x182, 0x18004dcc2 mov rcx, r14; this ; +0x184, 0x18004dcc4 call ?updateTexture@CCLabelTTF@cocos2d@@AEAA_NXZ; cocos2d::CCLabelTTF::updateTexture(void) ; +0x187, 0x18004dcc7 mov rbx, [rsp+48h+arg_8] ; +0x18c, 0x18004dccc mov rbp, [rsp+48h+arg_10] ; +0x191, 0x18004dcd1 add rsp, 20h ; +0x196, 0x18004dcd6 pop r15 ; +0x19a, 0x18004dcda pop r14 ; +0x19c, 0x18004dcdc pop r12 ; +0x19e, 0x18004dcde pop rdi ; +0x1a0, 0x18004dce0 pop rsi ; +0x1a1, 0x18004dce1 retn ; +0x1a2, 0x18004dce2 call ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ; std::vector::_Xlen(void) ; +0x1a3, 0x18004dce3 db 90h ; +0x1a8, 0x18004dce8 call ?cancel_current_task@Concurrency@@YAXXZ; Concurrency::cancel_current_task(void) ; +0x1a9, 0x18004dce9 db 0CCh ; +0x1ae, 0x18004dcee