; ; cocos2d::CCMenuItemFont::initWithString from 0x18005b170 to 0x18005b21f (175 bytes) ; ; 4 xrefs: ; > cocos2d::CCMenuItemFont::create @ 0x18005a48c ; > cocos2d::CCMenuItemFont::create @ 0x18005a4fc ; > @ 0x1801438a8 ; > @ 0x1801b2d9c ; ; 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_0], rbx ; +0x0, 0x18005b170 mov [rsp+arg_8], rbp ; +0x5, 0x18005b175 mov [rsp+arg_10], rsi ; +0xa, 0x18005b17a mov [rsp+arg_18], rdi ; +0xf, 0x18005b17f push r14 ; +0x14, 0x18005b184 sub rsp, 20h ; +0x16, 0x18005b186 mov r14, rdx ; +0x1a, 0x18005b18a lea rbx, [rcx+198h] ; +0x1d, 0x18005b18d lea rdx, qword_1801A2B80 ; +0x24, 0x18005b194 mov rsi, r9 ; +0x2b, 0x18005b19b mov rbp, r8 ; +0x2e, 0x18005b19e mov rdi, rcx ; +0x31, 0x18005b1a1 cmp rbx, rdx ; +0x34, 0x18005b1a4 jz short loc_18005B1C8 ; +0x37, 0x18005b1a7 cmp qword ptr cs:Size+8, 0Fh ; +0x39, 0x18005b1a9 mov rcx, rbx; void * ; +0x41, 0x18005b1b1 mov r8, qword ptr cs:Size; Size ; +0x44, 0x18005b1b4 cmova rdx, cs:qword_1801A2B80; Src ; +0x4b, 0x18005b1bb call sub_180010050 ; +0x53, 0x18005b1c3 mov eax, cs:dword_1801A2B78 ; +0x58, 0x18005b1c8 mov [rdi+190h], eax ; +0x5e, 0x18005b1ce cmp qword ptr [rbx+18h], 0Fh ; +0x64, 0x18005b1d4 jbe short loc_18005B1DE ; +0x69, 0x18005b1d9 mov rbx, [rbx] ; +0x6b, 0x18005b1db xorps xmm2, xmm2 ; +0x6e, 0x18005b1de mov rdx, rbx; char * ; +0x71, 0x18005b1e1 cvtsi2ss xmm2, rax; float ; +0x74, 0x18005b1e4 mov rcx, r14; char * ; +0x79, 0x18005b1e9 call ?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x7c, 0x18005b1ec mov r9, rsi ; +0x81, 0x18005b1f1 mov r8, rbp ; +0x84, 0x18005b1f4 mov rdx, rax ; +0x87, 0x18005b1f7 mov rcx, rdi ; +0x8a, 0x18005b1fa call ?initWithLabel@CCMenuItemLabel@cocos2d@@QEAA_NPEAVCCNode@2@PEAVCCObject@2@P842@EAAX1@Z@Z; cocos2d::CCMenuItemLabel::initWithLabel(cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x8d, 0x18005b1fd mov rbx, [rsp+28h+arg_0] ; +0x92, 0x18005b202 mov al, 1 ; +0x97, 0x18005b207 mov rbp, [rsp+28h+arg_8] ; +0x99, 0x18005b209 mov rsi, [rsp+28h+arg_10] ; +0x9e, 0x18005b20e mov rdi, [rsp+28h+arg_18] ; +0xa3, 0x18005b213 add rsp, 20h ; +0xa8, 0x18005b218 pop r14 ; +0xac, 0x18005b21c retn ; +0xae, 0x18005b21e