; ; GJChestSprite::setColor from 0x1403d16b0 to 0x1403d1770 (192 bytes) ; ; 2 xrefs: ; > @ 0x1405cd520 ; > @ 0x1406d7c7c ; ; 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 rbx ; +0x0, 0x1403d16b0 sub rsp, 20h ; +0x2, 0x1403d16b2 movzx eax, word ptr [rdx] ; +0x6, 0x1403d16b6 mov rbx, rcx ; +0x9, 0x1403d16b9 movzx ecx, byte ptr [rdx+2] ; +0xc, 0x1403d16bc mov [rsp+28h+arg_0], ax ; +0x10, 0x1403d16c0 mov [rsp+28h+arg_2], cl ; +0x15, 0x1403d16c5 cmp byte ptr [rbx+120h], 0 ; +0x19, 0x1403d16c9 jz short loc_1403D171B ; +0x20, 0x1403d16d0 movss xmm1, cs:dword_140622AD0 ; +0x22, 0x1403d16d2 movzx eax, al ; +0x2a, 0x1403d16da movd xmm0, eax ; +0x2d, 0x1403d16dd cvtdq2ps xmm0, xmm0 ; +0x31, 0x1403d16e1 mulss xmm0, xmm1 ; +0x34, 0x1403d16e4 cvttss2si eax, xmm0 ; +0x38, 0x1403d16e8 mov byte ptr [rsp+28h+arg_0], al ; +0x3c, 0x1403d16ec movzx eax, byte ptr [rsp+28h+arg_0+1] ; +0x40, 0x1403d16f0 movd xmm0, eax ; +0x45, 0x1403d16f5 cvtdq2ps xmm0, xmm0 ; +0x49, 0x1403d16f9 mulss xmm0, xmm1 ; +0x4c, 0x1403d16fc cvttss2si eax, xmm0 ; +0x50, 0x1403d1700 movd xmm0, ecx ; +0x54, 0x1403d1704 cvtdq2ps xmm0, xmm0 ; +0x58, 0x1403d1708 mov byte ptr [rsp+28h+arg_0+1], al ; +0x5b, 0x1403d170b mulss xmm0, xmm1 ; +0x5f, 0x1403d170f cvttss2si eax, xmm0 ; +0x63, 0x1403d1713 mov [rsp+28h+arg_2], al ; +0x67, 0x1403d1717 lea rdx, [rsp+28h+arg_0] ; +0x6b, 0x1403d171b mov rcx, rbx ; +0x70, 0x1403d1720 call cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x73, 0x1403d1723 lea rcx, [rbx-140h] ; +0x79, 0x1403d1729 mov rax, [rcx] ; +0x80, 0x1403d1730 call qword ptr [rax+1D0h] ; +0x83, 0x1403d1733 mov rbx, rax ; +0x89, 0x1403d1739 test rax, rax ; +0x8c, 0x1403d173c jz short loc_1403D176A ; +0x8f, 0x1403d173f mov rcx, rax ; +0x91, 0x1403d1741 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x1403d1744 test eax, eax ; +0x9a, 0x1403d174a jz short loc_1403D176A ; +0x9c, 0x1403d174c xor edx, edx ; +0x9e, 0x1403d174e mov rcx, rbx ; +0xa0, 0x1403d1750 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa3, 0x1403d1753 lea rdx, [rsp+28h+arg_0] ; +0xa9, 0x1403d1759 lea rcx, [rax+140h] ; +0xae, 0x1403d175e mov rax, [rcx] ; +0xb5, 0x1403d1765 call qword ptr [rax] ; +0xb8, 0x1403d1768 add rsp, 20h ; +0xba, 0x1403d176a pop rbx ; +0xbe, 0x1403d176e retn ; +0xbf, 0x1403d176f