; ; GJUINode::draw from 0x1404cf5f0 to 0x1404cf8a5 (693 bytes) ; ; 4 xrefs: ; > @ 0x1406228b0 ; > @ 0x1406a9f88 ; > @ 0x1406a9f98 ; > @ 0x1406dd604 ; ; 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 ; push rdi ; +0x0, 0x1404cf5f0 sub rsp, 60h ; +0x2, 0x1404cf5f2 cmp byte ptr [rcx+17Ch], 0 ; +0x6, 0x1404cf5f6 mov rdi, rcx ; +0xd, 0x1404cf5fd jz loc_1404CF89F ; +0x10, 0x1404cf600 movss xmm0, cs:width; width ; +0x16, 0x1404cf606 mov [rsp+68h+var_10], rbx ; +0x1e, 0x1404cf60e mov [rsp+68h+var_18], rbp ; +0x23, 0x1404cf613 mov [rsp+68h+var_20], rsi ; +0x28, 0x1404cf618 mov [rsp+68h+var_28], r14 ; +0x2d, 0x1404cf61d call cs:glLineWidth ; +0x32, 0x1404cf622 mov rax, [rdi] ; +0x38, 0x1404cf628 mov rcx, rdi ; +0x3b, 0x1404cf62b xor sil, sil ; +0x3e, 0x1404cf62e mov bpl, 0FFh ; +0x41, 0x1404cf631 xor r14b, r14b ; +0x44, 0x1404cf634 call qword ptr [rax+38h] ; +0x47, 0x1404cf637 sub eax, 2 ; +0x4a, 0x1404cf63a jz short loc_1404CF65C ; +0x4d, 0x1404cf63d sub eax, 1 ; +0x4f, 0x1404cf63f jz short loc_1404CF656 ; +0x52, 0x1404cf642 cmp eax, 1 ; +0x54, 0x1404cf644 jnz short loc_1404CF660 ; +0x57, 0x1404cf647 movzx esi, bpl ; +0x59, 0x1404cf649 xor bpl, bpl ; +0x5d, 0x1404cf64d movzx r14d, sil ; +0x60, 0x1404cf650 jmp short loc_1404CF660 ; +0x64, 0x1404cf654 movzx esi, bpl ; +0x66, 0x1404cf656 jmp short loc_1404CF660 ; +0x6a, 0x1404cf65a movzx r14d, bpl ; +0x6c, 0x1404cf65c mov r9b, 0FFh ; +0x70, 0x1404cf660 movaps [rsp+68h+var_38], xmm6 ; +0x73, 0x1404cf663 movzx r8d, r14b ; +0x78, 0x1404cf668 movzx edx, bpl ; +0x7c, 0x1404cf66c movzx ecx, sil ; +0x80, 0x1404cf670 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x84, 0x1404cf674 lea rdx, [rdi+158h] ; +0x8a, 0x1404cf67a lea rcx, [rsp+68h+arg_0] ; +0x91, 0x1404cf681 call cs:??0CCPoint@cocos2d@@QEAA@AEBVCCSize@1@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCSize const &) ; +0x96, 0x1404cf686 lea r8, [rsp+68h+arg_0] ; +0x9c, 0x1404cf68c lea rdx, [rsp+68h+arg_8] ; +0xa1, 0x1404cf691 lea rcx, [rdi+150h] ; +0xa6, 0x1404cf696 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xad, 0x1404cf69d lea rdx, [rdi+150h] ; +0xb3, 0x1404cf6a3 lea rcx, [rsp+68h+arg_10] ; +0xba, 0x1404cf6aa call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc2, 0x1404cf6b2 mov rcx, rax ; +0xc8, 0x1404cf6b8 lea rdx, [rsp+68h+arg_8] ; +0xcb, 0x1404cf6bb call cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0xd0, 0x1404cf6c0 cmp byte ptr [rdi+17Dh], 0 ; +0xd6, 0x1404cf6c6 jnz loc_1404CF7EA ; +0xdd, 0x1404cf6cd cmp qword ptr [rdi+148h], 0 ; +0xe3, 0x1404cf6d3 jz loc_1404CF886 ; +0xeb, 0x1404cf6db movss xmm0, dword ptr [rdi+178h] ; +0xf1, 0x1404cf6e1 xorps xmm6, xmm6 ; +0xf9, 0x1404cf6e9 comiss xmm0, xmm6 ; +0xfc, 0x1404cf6ec mov r9b, 0FFh ; +0xff, 0x1404cf6ef jbe short loc_1404CF75A ; +0x102, 0x1404cf6f2 xor r8d, r8d ; +0x104, 0x1404cf6f4 xor edx, edx ; +0x107, 0x1404cf6f7 mov cl, 0C8h ; +0x109, 0x1404cf6f9 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x10b, 0x1404cf6fb movss xmm2, dword ptr [rdi+15Ch] ; +0x111, 0x1404cf701 lea rcx, [rsp+68h+arg_0] ; +0x119, 0x1404cf709 addss xmm2, dword ptr [rdi+154h] ; +0x11e, 0x1404cf70e movss xmm1, dword ptr [rdi+178h] ; +0x126, 0x1404cf716 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12e, 0x1404cf71e movss xmm1, dword ptr [rdi+178h] ; +0x134, 0x1404cf724 lea rcx, [rsp+68h+arg_8] ; +0x13c, 0x1404cf72c xorps xmm1, cs:xmmword_1406243F0 ; +0x141, 0x1404cf731 mov rbx, rax ; +0x148, 0x1404cf738 movss xmm2, dword ptr [rdi+154h] ; +0x14b, 0x1404cf73b call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x153, 0x1404cf743 mov rcx, rax ; +0x159, 0x1404cf749 mov rdx, rbx ; +0x15c, 0x1404cf74c call cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0x15f, 0x1404cf74f jmp loc_1404CF886 ; +0x165, 0x1404cf755 movss xmm3, cs:dword_140622AA0 ; +0x16a, 0x1404cf75a movzx eax, r14b ; +0x172, 0x1404cf762 movd xmm0, eax ; +0x176, 0x1404cf766 cvtdq2ps xmm0, xmm0 ; +0x17a, 0x1404cf76a movzx eax, bpl ; +0x17d, 0x1404cf76d mulss xmm0, xmm3 ; +0x181, 0x1404cf771 cvttss2si r8d, xmm0 ; +0x185, 0x1404cf775 movd xmm0, eax ; +0x18a, 0x1404cf77a movzx eax, sil ; +0x18e, 0x1404cf77e cvtdq2ps xmm0, xmm0 ; +0x192, 0x1404cf782 movd xmm2, eax ; +0x195, 0x1404cf785 cvtdq2ps xmm2, xmm2 ; +0x199, 0x1404cf789 mulss xmm0, xmm3 ; +0x19c, 0x1404cf78c mulss xmm2, xmm3 ; +0x1a0, 0x1404cf790 cvttss2si edx, xmm0 ; +0x1a4, 0x1404cf794 cvttss2si ecx, xmm2 ; +0x1a8, 0x1404cf798 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x1ac, 0x1404cf79c movss xmm2, dword ptr [rdi+15Ch] ; +0x1b2, 0x1404cf7a2 lea rcx, [rsp+68h+arg_0] ; +0x1ba, 0x1404cf7aa addss xmm2, dword ptr [rdi+154h] ; +0x1bf, 0x1404cf7af xorps xmm1, xmm1 ; +0x1c7, 0x1404cf7b7 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ca, 0x1404cf7ba movss xmm2, dword ptr [rdi+154h] ; +0x1d0, 0x1404cf7c0 lea rcx, [rsp+68h+arg_8] ; +0x1d8, 0x1404cf7c8 xorps xmm1, xmm1 ; +0x1dd, 0x1404cf7cd mov rbx, rax ; +0x1e0, 0x1404cf7d0 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e3, 0x1404cf7d3 mov rcx, rax ; +0x1e9, 0x1404cf7d9 mov rdx, rbx ; +0x1ec, 0x1404cf7dc call cs:?ccDrawLine@cocos2d@@YAXAEBVCCPoint@1@0@Z; cocos2d::ccDrawLine(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x1ef, 0x1404cf7df jmp loc_1404CF886 ; +0x1f5, 0x1404cf7e5 movss xmm0, dword ptr [rdi+174h] ; +0x1fa, 0x1404cf7ea xorps xmm6, xmm6 ; +0x202, 0x1404cf7f2 comiss xmm0, xmm6 ; +0x205, 0x1404cf7f5 jbe short loc_1404CF834 ; +0x208, 0x1404cf7f8 mov r9b, 0FFh ; +0x20a, 0x1404cf7fa xor r8d, r8d ; +0x20d, 0x1404cf7fd movzx ecx, r9b ; +0x210, 0x1404cf800 mov dl, 96h ; +0x214, 0x1404cf804 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x216, 0x1404cf806 movss xmm2, cs:flt_14062346C ; +0x21c, 0x1404cf80c lea rcx, stru_1406C2E00 ; +0x224, 0x1404cf814 movss xmm1, dword ptr [rdi+174h] ; +0x22b, 0x1404cf81b mov r9d, 64h ; 'd' ; +0x233, 0x1404cf823 mov [rsp+68h+var_48], 0 ; +0x239, 0x1404cf829 call cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x23e, 0x1404cf82e movss xmm1, dword ptr [rdi+178h] ; +0x244, 0x1404cf834 comiss xmm1, xmm6 ; +0x24c, 0x1404cf83c jbe short loc_1404CF886 ; +0x24f, 0x1404cf83f movss xmm0, dword ptr [rdi+174h] ; +0x251, 0x1404cf841 comiss xmm0, xmm1 ; +0x259, 0x1404cf849 jbe short loc_1404CF886 ; +0x25c, 0x1404cf84c mov r9b, 0FFh ; +0x25e, 0x1404cf84e xor r8d, r8d ; +0x261, 0x1404cf851 xor edx, edx ; +0x264, 0x1404cf854 mov cl, 0C8h ; +0x266, 0x1404cf856 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x268, 0x1404cf858 movss xmm2, cs:flt_14062346C ; +0x26e, 0x1404cf85e lea rcx, stru_1406C2E00 ; +0x276, 0x1404cf866 movss xmm1, dword ptr [rdi+178h] ; +0x27d, 0x1404cf86d mov r9d, 64h ; 'd' ; +0x285, 0x1404cf875 mov [rsp+68h+var_48], 0 ; +0x28b, 0x1404cf87b call cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x290, 0x1404cf880 movaps xmm6, [rsp+68h+var_38] ; +0x296, 0x1404cf886 mov rsi, [rsp+68h+var_20] ; +0x29b, 0x1404cf88b mov rbp, [rsp+68h+var_18] ; +0x2a0, 0x1404cf890 mov rbx, [rsp+68h+var_10] ; +0x2a5, 0x1404cf895 mov r14, [rsp+68h+var_28] ; +0x2aa, 0x1404cf89a add rsp, 60h ; +0x2af, 0x1404cf89f pop rdi ; +0x2b3, 0x1404cf8a3 retn ; +0x2b4, 0x1404cf8a4