; ; cocos2d::CCLabelTTF::initWithString from 0x180050310 to 0x180050401 (241 bytes) ; ; 6 xrefs: ; > cocos2d::CCLabelTTF::create @ 0x18004fbdd ; > cocos2d::CCLabelTTF::create @ 0x18004fcb4 ; > cocos2d::CCLabelTTF::initWithString @ 0x1800502ca ; > cocos2d::CCLabelTTF::initWithString @ 0x1800502fe ; > @ 0x18014cf68 ; > @ 0x1801bbf2c ; ; 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_0], rbx ; +0x0, 0x180050310 mov [rsp+arg_8], rbp ; +0x5, 0x180050315 mov [rsp+arg_10], rsi ; +0xa, 0x18005031a push rdi ; +0xf, 0x18005031f sub rsp, 40h ; +0x10, 0x180050320 movaps [rsp+48h+var_18], xmm6 ; +0x14, 0x180050324 movaps xmm6, xmm3 ; +0x19, 0x180050329 mov rsi, r8 ; +0x1c, 0x18005032c mov rbp, rdx ; +0x1f, 0x18005032f mov rdi, rcx ; +0x22, 0x180050332 call ?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x25, 0x180050335 test al, al ; +0x2a, 0x18005033a jz loc_1800503E5 ; +0x2c, 0x18005033c mov rbx, [rdi] ; +0x32, 0x180050342 call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x35, 0x180050345 mov rcx, rax; this ; +0x3a, 0x18005034a lea rdx, aShaderposition_3; "ShaderPositionTextureColor" ; +0x3d, 0x18005034d call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x44, 0x180050354 mov rdx, rax ; +0x49, 0x180050359 mov rcx, rdi ; +0x4c, 0x18005035c call qword ptr [rbx+290h] ; +0x4f, 0x18005035f mov rax, [rsp+48h+arg_20] ; +0x55, 0x180050365 movss xmm2, dword ptr [rax+4] ; +0x5a, 0x18005036a movss xmm1, dword ptr [rax] ; +0x5f, 0x18005036f lea rcx, [rsp+48h+var_28] ; +0x63, 0x180050373 call kmVec2Fill ; +0x68, 0x180050378 mov rdx, rax ; +0x6d, 0x18005037d lea rcx, [rdi+260h] ; +0x70, 0x180050380 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x77, 0x180050387 mov eax, [rsp+48h+arg_28] ; +0x7c, 0x18005038c mov [rdi+268h], eax ; +0x80, 0x180050390 mov eax, [rsp+48h+arg_30] ; +0x86, 0x180050396 mov [rdi+26Ch], eax ; +0x8d, 0x18005039d mov ecx, 20h ; ' '; Size ; +0x93, 0x1800503a3 call sub_1800E4AC0 ; +0x98, 0x1800503a8 mov qword ptr [rsp+48h+var_28], rax ; +0x9d, 0x1800503ad test rax, rax ; +0xa2, 0x1800503b2 jz short loc_1800503C3 ; +0xa5, 0x1800503b5 mov rdx, rsi; Str ; +0xa7, 0x1800503b7 mov rcx, rax; void * ; +0xaa, 0x1800503ba call sub_180005A10 ; +0xad, 0x1800503bd nop ; +0xb2, 0x1800503c2 mov [rdi+270h], rax ; +0xb3, 0x1800503c3 movss dword ptr [rdi+278h], xmm6 ; +0xba, 0x1800503ca lea rcx, [rdi+258h] ; +0xc2, 0x1800503d2 mov rax, [rcx] ; +0xc9, 0x1800503d9 mov rdx, rbp ; +0xcc, 0x1800503dc call qword ptr [rax] ; +0xcf, 0x1800503df mov al, 1 ; +0xd1, 0x1800503e1 jmp short loc_1800503E7 ; +0xd3, 0x1800503e3 xor al, al ; +0xd5, 0x1800503e5 mov rbx, [rsp+48h+arg_0] ; +0xd7, 0x1800503e7 mov rbp, [rsp+48h+arg_8] ; +0xdc, 0x1800503ec mov rsi, [rsp+48h+arg_10] ; +0xe1, 0x1800503f1 movaps xmm6, [rsp+48h+var_18] ; +0xe6, 0x1800503f6 add rsp, 40h ; +0xeb, 0x1800503fb pop rdi ; +0xef, 0x1800503ff retn ; +0xf0, 0x180050400