; ; cocos2d::CCLayerRGBA::setColor from 0x180050aa0 to 0x180050b57 (183 bytes) ; ; 7 xrefs: ; > cocos2d::CCLayerColor::setColor @ 0x180050a79 ; > @ 0x1800ed870 ; > @ 0x1800f71c8 ; > @ 0x1801381ac ; > @ 0x1801381bc ; > @ 0x1801438a8 ; > @ 0x1801b2064 ; ; 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, 0x180050aa0 sub rsp, 30h ; +0x2, 0x180050aa2 cmp byte ptr [rcx+11h], 0 ; +0x6, 0x180050aa6 mov rbx, rcx ; +0xa, 0x180050aaa movzx eax, word ptr [rdx] ; +0xd, 0x180050aad mov [rcx+0Dh], ax ; +0x10, 0x180050ab0 movzx eax, byte ptr [rdx+2] ; +0x14, 0x180050ab4 mov [rcx+0Fh], al ; +0x18, 0x180050ab8 movzx eax, word ptr [rcx+0Dh] ; +0x1b, 0x180050abb mov [rcx+0Ah], ax ; +0x1f, 0x180050abf movzx eax, byte ptr [rcx+0Fh] ; +0x23, 0x180050ac3 mov [rcx+0Ch], al ; +0x27, 0x180050ac7 jz loc_180050B51 ; +0x2a, 0x180050aca movzx eax, cs:word_1800ECE30 ; +0x30, 0x180050ad0 lea r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x37, 0x180050ad7 mov rcx, [rcx-0C0h] ; +0x3e, 0x180050ade lea r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x45, 0x180050ae5 mov [rsp+38h+arg_0], ax ; +0x4c, 0x180050aec xor edx, edx ; +0x51, 0x180050af1 movzx eax, cs:byte_1800ECE32 ; +0x53, 0x180050af3 mov [rsp+38h+arg_2], al ; +0x5a, 0x180050afa mov [rsp+38h+arg_8], rdi ; +0x5e, 0x180050afe mov [rsp+38h+var_18], 0 ; +0x63, 0x180050b03 call __RTDynamicCast ; +0x6b, 0x180050b0b mov rdi, rax ; +0x70, 0x180050b10 test rax, rax ; +0x73, 0x180050b13 jz short loc_180050B3E ; +0x76, 0x180050b16 mov rdx, [rax] ; +0x78, 0x180050b18 mov rcx, rax ; +0x7b, 0x180050b1b call qword ptr [rdx+40h] ; +0x7e, 0x180050b1e test al, al ; +0x81, 0x180050b21 jz short loc_180050B3E ; +0x83, 0x180050b23 mov rdx, [rdi] ; +0x85, 0x180050b25 mov rcx, rdi ; +0x88, 0x180050b28 call qword ptr [rdx+10h] ; +0x8b, 0x180050b2b movzx ecx, word ptr [rax] ; +0x8e, 0x180050b2e mov [rsp+38h+arg_0], cx ; +0x91, 0x180050b31 movzx eax, byte ptr [rax+2] ; +0x96, 0x180050b36 mov [rsp+38h+arg_2], al ; +0x9a, 0x180050b3a mov rax, [rbx] ; +0x9e, 0x180050b3e lea rdx, [rsp+38h+arg_0] ; +0xa1, 0x180050b41 mov rcx, rbx ; +0xa6, 0x180050b46 call qword ptr [rax+50h] ; +0xa9, 0x180050b49 mov rdi, [rsp+38h+arg_8] ; +0xac, 0x180050b4c add rsp, 30h ; +0xb1, 0x180050b51 pop rbx ; +0xb5, 0x180050b55 retn ; +0xb6, 0x180050b56