; ; CCTextInputNode::init from 0x14004f370 to 0x14004f5ab (571 bytes) ; ; 4 xrefs: ; > CCTextInputNode::create @ 0x14004f31b ; > @ 0x140663cf4 ; > @ 0x140663d04 ; > @ 0x1406c4c74 ; ; 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_18], rbp ; +0x0, 0x14004f370 push rsi ; +0x5, 0x14004f375 sub rsp, 60h ; +0x6, 0x14004f376 movaps [rsp+68h+var_18], xmm6 ; +0xa, 0x14004f37a mov rbp, r9 ; +0xf, 0x14004f37f movaps [rsp+68h+var_28], xmm7 ; +0x12, 0x14004f382 movaps xmm6, xmm1 ; +0x17, 0x14004f387 movaps xmm7, xmm2 ; +0x1a, 0x14004f38a mov rsi, rcx ; +0x1d, 0x14004f38d call cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x20, 0x14004f390 test al, al ; +0x26, 0x14004f396 jz loc_14004F593 ; +0x28, 0x14004f398 mov rax, [rsi] ; +0x2e, 0x14004f39e mov dl, 1 ; +0x31, 0x14004f3a1 mov [rsp+68h+arg_0], rbx ; +0x33, 0x14004f3a3 mov rcx, rsi ; +0x38, 0x14004f3a8 mov [rsp+68h+arg_8], rdi ; +0x3b, 0x14004f3ab mov [rsp+68h+arg_10], r14 ; +0x40, 0x14004f3b0 call qword ptr [rax+388h] ; +0x48, 0x14004f3b8 mov rdi, 0FFFFFFFFFFFFFFFFh ; +0x4e, 0x14004f3be mov byte ptr [rsi+248h], 0 ; +0x55, 0x14004f3c5 mov r8, rdi ; +0x5c, 0x14004f3cc nop ; +0x5f, 0x14004f3cf inc r8; Size ; +0x60, 0x14004f3d0 cmp byte ptr [r8+rbp], 0 ; +0x63, 0x14004f3d3 jnz short loc_14004F3D0 ; +0x68, 0x14004f3d8 lea rcx, [rsi+1B0h]; void * ; +0x6a, 0x14004f3da mov rdx, rbp; Src ; +0x71, 0x14004f3e1 call sub_14003CCE0 ; +0x74, 0x14004f3e4 movss xmm2, cs:dword_140623140 ; +0x79, 0x14004f3e9 lea rdx, aThonburi; "Thonburi" ; +0x81, 0x14004f3f1 mov rcx, rbp ; +0x88, 0x14004f3f8 call cs:?textFieldWithPlaceHolder@CCTextFieldTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(char const *,char const *,float) ; +0x8b, 0x14004f3fb mov r8, [rsi] ; +0x91, 0x14004f401 mov rcx, rsi ; +0x94, 0x14004f404 mov rdx, rax ; +0x97, 0x14004f407 mov [rsi+228h], rax ; +0x9a, 0x14004f40a call qword ptr [r8+1C0h] ; +0xa1, 0x14004f411 mov rax, [rsi+228h] ; +0xa8, 0x14004f418 lea rcx, [rsi+1A0h] ; +0xaf, 0x14004f41f xor r14d, r14d ; +0xb6, 0x14004f426 movaps xmm2, xmm7 ; +0xb9, 0x14004f429 test rsi, rsi ; +0xbc, 0x14004f42c movaps xmm1, xmm6 ; +0xbf, 0x14004f42f cmovz rcx, r14 ; +0xc2, 0x14004f432 mov [rax+2C8h], rcx ; +0xc6, 0x14004f436 lea rcx, [rsp+68h+arg_20] ; +0xcd, 0x14004f43d mov rbx, [rsi] ; +0xd5, 0x14004f445 call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0xd8, 0x14004f448 mov rdx, rax ; +0xde, 0x14004f44e mov rcx, rsi ; +0xe1, 0x14004f451 call qword ptr [rbx+128h] ; +0xe4, 0x14004f454 movzx ecx, cs:word_1405299A8 ; +0xea, 0x14004f45a lea r8d, [r14+3Fh]; Size ; +0xf1, 0x14004f461 movzx eax, cs:byte_1405299AA ; +0xf5, 0x14004f465 lea rdx, aAbcdefghijklmn; " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL"... ; +0xfc, 0x14004f46c mov [rsi+214h], cx ; +0x103, 0x14004f473 mov [rsi+217h], cx ; +0x10a, 0x14004f47a lea rcx, [rsi+1E8h]; void * ; +0x111, 0x14004f481 movss dword ptr [rsi+208h], xmm6 ; +0x118, 0x14004f488 mov qword ptr [rsi+20Ch], 3F800000h ; +0x120, 0x14004f490 mov [rsi+216h], al ; +0x12b, 0x14004f49b mov [rsi+219h], al ; +0x131, 0x14004f4a1 call sub_14003CCE0 ; +0x137, 0x14004f4a7 mov rbx, [rsp+68h+arg_30] ; +0x13c, 0x14004f4ac test rbx, rbx ; +0x144, 0x14004f4b4 jz short loc_14004F526 ; +0x147, 0x14004f4b7 mov rdx, rbx ; +0x149, 0x14004f4b9 mov rcx, rbp ; +0x14c, 0x14004f4bc call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x14f, 0x14004f4bf mov r8, [rsi] ; +0x155, 0x14004f4c5 mov rcx, rsi ; +0x158, 0x14004f4c8 mov rdx, rax ; +0x15b, 0x14004f4cb mov [rsi+240h], rax ; +0x15e, 0x14004f4ce call qword ptr [r8+1C0h] ; +0x165, 0x14004f4d5 mov rcx, [rsi+228h] ; +0x16c, 0x14004f4dc xor edx, edx ; +0x173, 0x14004f4e3 mov rax, [rcx] ; +0x175, 0x14004f4e5 call qword ptr [rax+140h] ; +0x178, 0x14004f4e8 xorps xmm0, xmm0 ; +0x17e, 0x14004f4ee mov [rsp+68h+var_38], r14 ; +0x181, 0x14004f4f1 movups [rsp+68h+var_48], xmm0 ; +0x186, 0x14004f4f6 mov [rsp+68h+var_30], r14 ; +0x18b, 0x14004f4fb inc rdi ; +0x190, 0x14004f500 cmp [rbx+rdi], r14b ; +0x193, 0x14004f503 jnz short loc_14004F500 ; +0x197, 0x14004f507 mov r8, rdi ; +0x199, 0x14004f509 lea rcx, [rsp+68h+var_48] ; +0x19c, 0x14004f50c mov rdx, rbx ; +0x1a1, 0x14004f511 call sub_14003A930 ; +0x1a4, 0x14004f514 lea rdx, [rsp+68h+var_48] ; +0x1a9, 0x14004f519 mov rcx, rsi ; +0x1ae, 0x14004f51e call CCTextInputNode__updateDefaultFontValues ; +0x1b1, 0x14004f521 lea rdx, aChatfontFnt; "chatFont.fnt" ; +0x1b6, 0x14004f526 lea rcx, asc_140531EF4; "|" ; +0x1bd, 0x14004f52d call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x1c4, 0x14004f534 mov r9, [rsi] ; +0x1ca, 0x14004f53a mov r8d, 0Ah ; +0x1cd, 0x14004f53d mov rdx, rax ; +0x1d3, 0x14004f543 mov [rsi+220h], rax ; +0x1d6, 0x14004f546 mov rcx, rsi ; +0x1dd, 0x14004f54d call qword ptr [r9+1B8h] ; +0x1e0, 0x14004f550 mov rcx, [rsi+220h] ; +0x1e7, 0x14004f557 mov dl, 96h ; +0x1ee, 0x14004f55e add rcx, 170h ; +0x1f0, 0x14004f560 mov rax, [rcx] ; +0x1f7, 0x14004f567 call qword ptr [rax+28h] ; +0x1fa, 0x14004f56a mov rcx, [rsi+220h] ; +0x1fd, 0x14004f56d xor edx, edx ; +0x204, 0x14004f574 mov rax, [rcx] ; +0x206, 0x14004f576 call qword ptr [rax+140h] ; +0x209, 0x14004f579 mov r14, [rsp+68h+arg_10] ; +0x20f, 0x14004f57f mov al, 1 ; +0x217, 0x14004f587 mov rdi, [rsp+68h+arg_8] ; +0x219, 0x14004f589 mov rbx, [rsp+68h+arg_0] ; +0x21e, 0x14004f58e mov rbp, [rsp+68h+arg_18] ; +0x223, 0x14004f593 movaps xmm6, [rsp+68h+var_18] ; +0x22b, 0x14004f59b movaps xmm7, [rsp+68h+var_28] ; +0x230, 0x14004f5a0 add rsp, 60h ; +0x235, 0x14004f5a5 pop rsi ; +0x239, 0x14004f5a9 retn ; +0x23a, 0x14004f5aa