; ; CCTextInputNode::updateBlinkLabelToChar from 0x14004fe90 to 0x140050279 (1001 bytes) ; ; 7 xrefs: ; > CCTextInputNode::updateLabel @ 0x14004fb72 ; > CCTextInputNode::onTextFieldInsertText @ 0x1400508ad ; > CCTextInputNode::onTextFieldAttachWithIME @ 0x140050ad5 ; > CCTextInputNode::updateCursorPosition @ 0x14005124d ; > CCTextInputNode::updateCursorPosition @ 0x140051289 ; > @ 0x1406c4cec ; > @ 0x1406c4cf8 ; ; 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 rax, rsp ; +0x0, 0x14004fe90 mov [rax+18h], rbx ; +0x3, 0x14004fe93 push rbp ; +0x7, 0x14004fe97 push rsi ; +0x8, 0x14004fe98 push rdi ; +0x9, 0x14004fe99 push r14 ; +0xa, 0x14004fe9a push r15 ; +0xc, 0x14004fe9c sub rsp, 0D0h ; +0xe, 0x14004fe9e movaps xmmword ptr [rax-38h], xmm6 ; +0x15, 0x14004fea5 movaps xmmword ptr [rax-48h], xmm7 ; +0x19, 0x14004fea9 movaps xmmword ptr [rax-58h], xmm9 ; +0x1d, 0x14004fead movaps xmmword ptr [rax-68h], xmm10 ; +0x22, 0x14004feb2 movaps xmmword ptr [rax-78h], xmm11 ; +0x27, 0x14004feb7 mov rax, cs:__security_cookie ; +0x2c, 0x14004febc xor rax, rsp ; +0x33, 0x14004fec3 mov [rsp+0F8h+var_88], rax ; +0x36, 0x14004fec6 mov esi, edx ; +0x3b, 0x14004fecb mov r14, rcx ; +0x3d, 0x14004fecd mov rdi, [rcx+240h] ; +0x40, 0x14004fed0 test rdi, rdi ; +0x47, 0x14004fed7 jnz short loc_14004FEE9 ; +0x4a, 0x14004feda cmp [rcx+250h], rdi ; +0x4c, 0x14004fedc jz loc_14005023C ; +0x53, 0x14004fee3 cmp qword ptr [rcx+220h], 0 ; +0x59, 0x14004fee9 jz loc_14005023C ; +0x61, 0x14004fef1 xorps xmm11, xmm11 ; +0x67, 0x14004fef7 mov rbp, 0FFFFFFFFFFFFFFFFh ; +0x6b, 0x14004fefb test rdi, rdi ; +0x72, 0x14004ff02 jnz loc_14005000A ; +0x75, 0x14004ff05 test edx, edx ; +0x7b, 0x14004ff0b js short loc_14004FF6B ; +0x7d, 0x14004ff0d mov rax, [rcx+250h] ; +0x7f, 0x14004ff0f mov rcx, [rax+260h] ; +0x86, 0x14004ff16 mov r15, [rcx+718h] ; +0x8d, 0x14004ff1d xor ebx, ebx ; +0x94, 0x14004ff24 mov rcx, r15 ; +0x96, 0x14004ff26 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x99, 0x14004ff29 test eax, eax ; +0x9f, 0x14004ff2f jz short loc_14004FF6B ; +0xa1, 0x14004ff31 mov edx, ebx ; +0xa3, 0x14004ff33 mov rcx, r15 ; +0xa5, 0x14004ff35 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa8, 0x14004ff38 mov rdi, rax ; +0xae, 0x14004ff3e mov rax, [rax] ; +0xb1, 0x14004ff41 mov rcx, rdi ; +0xb4, 0x14004ff44 call qword ptr [rax+1D0h] ; +0xb7, 0x14004ff47 mov rcx, rax ; +0xbd, 0x14004ff4d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc0, 0x14004ff50 cmp esi, eax ; +0xc6, 0x14004ff56 jle short loc_14004FF98 ; +0xc8, 0x14004ff58 sub esi, eax ; +0xca, 0x14004ff5a inc ebx ; +0xcc, 0x14004ff5c mov rcx, r15 ; +0xce, 0x14004ff5e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd1, 0x14004ff61 cmp ebx, eax ; +0xd7, 0x14004ff67 jb short loc_14004FF33 ; +0xd9, 0x14004ff69 mov rax, [r14+250h] ; +0xdb, 0x14004ff6b mov rcx, [rax+260h] ; +0xe2, 0x14004ff72 mov rcx, [rcx+718h] ; +0xe9, 0x14004ff79 call cs:?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0xf0, 0x14004ff80 mov rdi, rax ; +0xf6, 0x14004ff86 mov esi, ebp ; +0xf9, 0x14004ff89 mov rcx, [r14+228h] ; +0xfb, 0x14004ff8b mov [rcx+2F8h], ebp ; +0x102, 0x14004ff92 mov rdx, [rdi] ; +0x108, 0x14004ff98 mov rcx, rdi ; +0x10b, 0x14004ff9b call qword ptr [rdx+0C8h] ; +0x10e, 0x14004ff9e mov rbx, rax ; +0x114, 0x14004ffa4 mov rdx, [rdi] ; +0x117, 0x14004ffa7 mov rcx, rdi ; +0x11a, 0x14004ffaa call qword ptr [rdx+1E8h] ; +0x11d, 0x14004ffad mov rcx, rax ; +0x123, 0x14004ffb3 mov r8, rbx ; +0x126, 0x14004ffb6 lea rdx, [rsp+0F8h+var_D8] ; +0x129, 0x14004ffb9 call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x12e, 0x14004ffbe mov rbx, rax ; +0x134, 0x14004ffc4 mov rcx, [r14+250h] ; +0x137, 0x14004ffc7 mov rdx, [rcx] ; +0x13e, 0x14004ffce call qword ptr [rdx+1E8h] ; +0x141, 0x14004ffd1 mov rcx, rax ; +0x147, 0x14004ffd7 lea r8, stru_1406C1408 ; +0x14a, 0x14004ffda lea rdx, [rsp+0F8h+var_D0] ; +0x151, 0x14004ffe1 call cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x156, 0x14004ffe6 movss xmm11, dword ptr [rbx+4] ; +0x15c, 0x14004ffec subss xmm11, dword ptr [rax+4] ; +0x162, 0x14004fff2 mov rax, [rdi] ; +0x168, 0x14004fff8 mov rcx, rdi ; +0x16b, 0x14004fffb call qword ptr [rax+0C8h] ; +0x16e, 0x14004fffe subss xmm11, dword ptr [rax+4] ; +0x174, 0x140050004 mov rax, [rdi] ; +0x17a, 0x14005000a mov rcx, rdi ; +0x17d, 0x14005000d call qword ptr [rax+1D0h] ; +0x180, 0x140050010 mov rbx, rax ; +0x186, 0x140050016 test esi, esi ; +0x189, 0x140050019 js short loc_140050072 ; +0x18b, 0x14005001b mov rcx, rax ; +0x18d, 0x14005001d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x190, 0x140050020 cmp eax, esi ; +0x196, 0x140050026 jbe short loc_140050072 ; +0x198, 0x140050028 mov edx, esi ; +0x19a, 0x14005002a mov rcx, rbx ; +0x19c, 0x14005002c call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x19f, 0x14005002f movzx r9d, byte ptr [r14+1E0h] ; +0x1a5, 0x140050035 movss xmm2, dword ptr [r14+1DCh] ; +0x1ad, 0x14005003d mov rdx, rax ; +0x1b6, 0x140050046 mov rcx, rdi ; +0x1b9, 0x140050049 call cs:?getLetterPosXLeft@CCLabelBMFont@cocos2d@@QEAAMPEAVCCSprite@2@M_N@Z; cocos2d::CCLabelBMFont::getLetterPosXLeft(cocos2d::CCSprite *,float,bool) ; +0x1bc, 0x14005004c movaps xmm10, xmm0 ; +0x1c2, 0x140050052 mov rax, [rdi] ; +0x1c6, 0x140050056 mov rcx, rdi ; +0x1c9, 0x140050059 call qword ptr [rax+80h] ; +0x1cc, 0x14005005c mulss xmm0, dword ptr [r14+1D8h] ; +0x1d2, 0x140050062 addss xmm10, xmm0 ; +0x1db, 0x14005006b jmp short loc_1400500AF ; +0x1e0, 0x140050070 mov rax, [rdi] ; +0x1e2, 0x140050072 mov rcx, rdi ; +0x1e5, 0x140050075 call qword ptr [rax+130h] ; +0x1e8, 0x140050078 mov rdx, [rdi] ; +0x1ee, 0x14005007e movss xmm6, dword ptr [rax] ; +0x1f1, 0x140050081 mov rcx, rdi ; +0x1f5, 0x140050085 call qword ptr [rdx+0A8h] ; +0x1f8, 0x140050088 movaps xmm7, xmm0 ; +0x1fe, 0x14005008e mulss xmm7, xmm6 ; +0x201, 0x140050091 mov rax, [rdi] ; +0x205, 0x140050095 mov rcx, rdi ; +0x208, 0x140050098 call qword ptr [rax+80h] ; +0x20b, 0x14005009b movaps xmm10, xmm0 ; +0x211, 0x1400500a1 addss xmm10, xmm10 ; +0x215, 0x1400500a5 addss xmm10, xmm7 ; +0x21a, 0x1400500aa xorps xmm0, xmm0 ; +0x21f, 0x1400500af movups [rsp+0F8h+Buf2], xmm0 ; +0x222, 0x1400500b2 mov [rsp+0F8h+var_B8], 0 ; +0x227, 0x1400500b7 mov [rsp+0F8h+var_B0], 0Fh ; +0x230, 0x1400500c0 mov byte ptr [rsp+0F8h+Buf2], 0 ; +0x239, 0x1400500c9 mov rcx, [r14+228h] ; +0x23e, 0x1400500ce add rcx, 258h ; +0x245, 0x1400500d5 mov rax, [rcx] ; +0x24c, 0x1400500dc call qword ptr [rax+8] ; +0x24f, 0x1400500df xorps xmm0, xmm0 ; +0x252, 0x1400500e2 movups [rsp+0F8h+Buf1], xmm0 ; +0x255, 0x1400500e5 xorps xmm1, xmm1 ; +0x25a, 0x1400500ea movdqu [rsp+0F8h+var_98], xmm1 ; +0x25d, 0x1400500ed inc rbp ; +0x263, 0x1400500f3 cmp byte ptr [rax+rbp], 0 ; +0x266, 0x1400500f6 jnz short loc_1400500F3 ; +0x26a, 0x1400500fa mov r8, rbp ; +0x26c, 0x1400500fc mov rdx, rax ; +0x26f, 0x1400500ff lea rcx, [rsp+0F8h+Buf1] ; +0x272, 0x140050102 call sub_14003A930 ; +0x277, 0x140050107 lea rdx, [rsp+0F8h+Buf2]; Buf2 ; +0x27c, 0x14005010c lea rcx, [rsp+0F8h+Buf1]; Buf1 ; +0x281, 0x140050111 call sub_14003A760 ; +0x286, 0x140050116 mov ebx, eax ; +0x28b, 0x14005011b lea rcx, [rsp+0F8h+Buf1] ; +0x28d, 0x14005011d call sub_14003A830 ; +0x292, 0x140050122 nop ; +0x297, 0x140050127 lea rcx, [rsp+0F8h+Buf2] ; +0x298, 0x140050128 call sub_14003A830 ; +0x29d, 0x14005012d test ebx, ebx ; +0x2a2, 0x140050132 jnz short loc_14005013F ; +0x2a4, 0x140050134 movss xmm10, cs:width ; +0x2a6, 0x140050136 mov rax, [rdi] ; +0x2af, 0x14005013f mov rcx, rdi ; +0x2b2, 0x140050142 call qword ptr [rax+118h] ; +0x2b5, 0x140050145 movss xmm7, dword ptr [rax] ; +0x2bb, 0x14005014b mov rax, [rdi] ; +0x2bf, 0x14005014f mov rcx, rdi ; +0x2c2, 0x140050152 call qword ptr [rax+130h] ; +0x2c5, 0x140050155 movss xmm6, dword ptr [rax] ; +0x2cb, 0x14005015b mov rax, [rdi] ; +0x2cf, 0x14005015f mov rcx, rdi ; +0x2d2, 0x140050162 call qword ptr [rax+0A8h] ; +0x2d5, 0x140050165 movaps xmm9, xmm0 ; +0x2db, 0x14005016b movss xmm0, cs:flt_140622C24 ; +0x2df, 0x14005016f subss xmm0, xmm7 ; +0x2e7, 0x140050177 mulss xmm0, xmm6 ; +0x2eb, 0x14005017b mulss xmm9, xmm0 ; +0x2ef, 0x14005017f mov rax, [rdi] ; +0x2f4, 0x140050184 mov rcx, rdi ; +0x2f7, 0x140050187 call qword ptr [rax+130h] ; +0x2fa, 0x14005018a mov rbx, rax ; +0x300, 0x140050190 subss xmm11, cs:flt_140622C24 ; +0x303, 0x140050193 mov rdx, [rdi] ; +0x30c, 0x14005019c mov rcx, rdi ; +0x30f, 0x14005019f call qword ptr [rdx+0A8h] ; +0x312, 0x1400501a2 mulss xmm0, dword ptr [rbx] ; +0x318, 0x1400501a8 subss xmm9, xmm0 ; +0x31c, 0x1400501ac addss xmm9, xmm10 ; +0x321, 0x1400501b1 movaps xmm2, xmm11 ; +0x326, 0x1400501b6 movaps xmm1, xmm9 ; +0x32a, 0x1400501ba lea rcx, [rsp+0F8h+var_D0] ; +0x32e, 0x1400501be call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x333, 0x1400501c3 mov rbx, rax ; +0x339, 0x1400501c9 mov rdx, [rdi] ; +0x33c, 0x1400501cc mov rcx, rdi ; +0x33f, 0x1400501cf call qword ptr [rdx+0C8h] ; +0x342, 0x1400501d2 mov r8, rbx ; +0x348, 0x1400501d8 lea rdx, [rsp+0F8h+var_D8] ; +0x34b, 0x1400501db mov rcx, rax ; +0x350, 0x1400501e0 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x353, 0x1400501e3 mov rcx, [r14+220h] ; +0x359, 0x1400501e9 mov rax, [rcx] ; +0x360, 0x1400501f0 lea rdx, [rsp+0F8h+var_D8] ; +0x363, 0x1400501f3 call qword ptr [rax+0B8h] ; +0x368, 0x1400501f8 mov rax, [r14+220h] ; +0x36e, 0x1400501fe mov rbx, [rax] ; +0x375, 0x140050205 mov rax, [rdi] ; +0x378, 0x140050208 mov rcx, rdi ; +0x37b, 0x14005020b call qword ptr [rax+118h] ; +0x37e, 0x14005020e movss xmm2, dword ptr [rax+4] ; +0x384, 0x140050214 movss xmm1, cs:dword_140622B08 ; +0x389, 0x140050219 lea rcx, [rsp+0F8h+var_D0] ; +0x391, 0x140050221 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x396, 0x140050226 mov rdx, rax ; +0x39c, 0x14005022c mov rcx, [r14+220h] ; +0x39f, 0x14005022f call qword ptr [rbx+110h] ; +0x3a6, 0x140050236 mov rcx, [rsp+0F8h+var_88] ; +0x3ac, 0x14005023c xor rcx, rsp; StackCookie ; +0x3b1, 0x140050241 call __security_check_cookie ; +0x3b4, 0x140050244 lea r11, [rsp+0F8h+var_28] ; +0x3b9, 0x140050249 mov rbx, [r11+40h] ; +0x3c1, 0x140050251 movaps xmm6, xmmword ptr [r11-10h] ; +0x3c5, 0x140050255 movaps xmm7, xmmword ptr [r11-20h] ; +0x3ca, 0x14005025a movaps xmm9, xmmword ptr [r11-30h] ; +0x3cf, 0x14005025f movaps xmm10, xmmword ptr [r11-40h] ; +0x3d4, 0x140050264 movaps xmm11, xmmword ptr [r11-50h] ; +0x3d9, 0x140050269 mov rsp, r11 ; +0x3de, 0x14005026e pop r15 ; +0x3e1, 0x140050271 pop r14 ; +0x3e3, 0x140050273 pop rdi ; +0x3e5, 0x140050275 pop rsi ; +0x3e6, 0x140050276 pop rbp ; +0x3e7, 0x140050277 retn ; +0x3e8, 0x140050278