; ; cocos2d::CCLayerGradient::initWithColor from 0x1800520b0 to 0x180052168 (184 bytes) ; ; 3 xrefs: ; > @ 0x1800f4420 ; > @ 0x18014cf68 ; > @ 0x1801bc214 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:45 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x1800520b0 push rdi ; +0x5, 0x1800520b5 sub rsp, 20h ; +0x6, 0x1800520b6 movzx eax, byte ptr [r8] ; +0xa, 0x1800520ba mov rbx, rdx ; +0xe, 0x1800520be mov [rcx+223h], al ; +0x11, 0x1800520c1 mov rdi, rcx ; +0x17, 0x1800520c7 movzx eax, byte ptr [r8+1] ; +0x1a, 0x1800520ca mov [rcx+224h], al ; +0x1f, 0x1800520cf movzx eax, byte ptr [r8+2] ; +0x25, 0x1800520d5 mov [rcx+225h], al ; +0x2a, 0x1800520da movzx eax, byte ptr [r8+3] ; +0x30, 0x1800520e0 mov [rcx+227h], al ; +0x35, 0x1800520e5 movzx eax, byte ptr [rdx+3] ; +0x3b, 0x1800520eb mov rdx, r9 ; +0x3f, 0x1800520ef mov [rcx+226h], al ; +0x42, 0x1800520f2 add rcx, 228h ; +0x48, 0x1800520f8 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4f, 0x1800520ff mov word ptr [rdi+230h], 1 ; +0x54, 0x180052104 movzx eax, byte ptr [rbx+1] ; +0x5d, 0x18005210d movzx ecx, byte ptr [rbx+2] ; +0x61, 0x180052111 or ecx, 0FFFFFF00h ; +0x65, 0x180052115 shl ecx, 8 ; +0x6b, 0x18005211b or ecx, eax ; +0x6e, 0x18005211e movzx eax, byte ptr [rbx] ; +0x70, 0x180052120 shl ecx, 8 ; +0x73, 0x180052123 or ecx, eax ; +0x76, 0x180052126 mov [rsp+28h+arg_0], ecx ; +0x78, 0x180052128 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x18005212c mov rcx, rax ; +0x81, 0x180052131 lea rdx, [rsp+28h+arg_8] ; +0x84, 0x180052134 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x89, 0x180052139 mov rax, [rdi] ; +0x8e, 0x18005213e lea rdx, [rsp+28h+arg_0] ; +0x91, 0x180052141 movss xmm3, [rsp+28h+arg_C] ; +0x96, 0x180052146 mov rcx, rdi ; +0x9c, 0x18005214c movss xmm2, [rsp+28h+arg_8] ; +0x9f, 0x18005214f call qword ptr [rax+410h] ; +0xa5, 0x180052155 mov rbx, [rsp+28h+arg_10] ; +0xab, 0x18005215b mov al, 1 ; +0xb0, 0x180052160 add rsp, 20h ; +0xb2, 0x180052162 pop rdi ; +0xb6, 0x180052166 retn ; +0xb7, 0x180052167