; ; cocos2d::extension::CCScale9Sprite::setColor from 0x18000fca0 to 0x18000fd5a (186 bytes) ; ; 5 xrefs: ; > @ 0x180029b20 ; > @ 0x1800309cc ; > @ 0x180030a24 ; > @ 0x180032408 ; > @ 0x18004bf78 ; ; 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 12:15:39 +0000 ; push rsi ; +0x0, 0x18000fca0 sub rsp, 30h ; +0x2, 0x18000fca2 mov r8, [rcx+78h] ; +0x6, 0x18000fca6 mov rsi, rdx ; +0xa, 0x18000fcaa test r8, r8 ; +0xd, 0x18000fcad jz loc_18000FD54 ; +0x10, 0x18000fcb0 movzx eax, word ptr [rdx] ; +0x16, 0x18000fcb6 mov [rcx+0CAh], ax ; +0x19, 0x18000fcb9 movzx eax, byte ptr [rdx+2] ; +0x20, 0x18000fcc0 mov [rcx+0CCh], al ; +0x24, 0x18000fcc4 mov rcx, r8 ; +0x2a, 0x18000fcca mov rax, [r8] ; +0x2d, 0x18000fccd call qword ptr [rax+1E0h] ; +0x30, 0x18000fcd0 test rax, rax ; +0x36, 0x18000fcd6 jz short loc_18000FD54 ; +0x39, 0x18000fcd9 mov [rsp+38h+arg_0], rbx ; +0x3b, 0x18000fcdb mov rbx, [rax+38h] ; +0x40, 0x18000fce0 mov eax, [rbx] ; +0x44, 0x18000fce4 test eax, eax ; +0x46, 0x18000fce6 jz short loc_18000FD4F ; +0x48, 0x18000fce8 mov rbx, [rbx+10h] ; +0x4a, 0x18000fcea mov [rsp+38h+arg_10], rdi ; +0x4e, 0x18000fcee lea rdi, [rax-1] ; +0x53, 0x18000fcf3 lea rdi, [rbx+rdi*8] ; +0x57, 0x18000fcf7 cmp rbx, rdi ; +0x5b, 0x18000fcfb ja short loc_18000FD4A ; +0x5e, 0x18000fcfe mov [rsp+38h+arg_8], rbp ; +0x60, 0x18000fd00 xor ebp, ebp ; +0x65, 0x18000fd05 mov rcx, [rbx] ; +0x67, 0x18000fd07 test rcx, rcx ; +0x6a, 0x18000fd0a jz short loc_18000FD45 ; +0x6d, 0x18000fd0d lea r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x6f, 0x18000fd0f mov [rsp+38h+var_18], ebp ; +0x76, 0x18000fd16 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x7a, 0x18000fd1a xor edx, edx ; +0x81, 0x18000fd21 call __RTDynamicCast ; +0x83, 0x18000fd23 test rax, rax ; +0x88, 0x18000fd28 jz short loc_18000FD3C ; +0x8b, 0x18000fd2b mov rcx, [rax] ; +0x8d, 0x18000fd2d mov rdx, rsi ; +0x90, 0x18000fd30 mov r8, [rcx] ; +0x93, 0x18000fd33 mov rcx, rax ; +0x96, 0x18000fd36 call r8 ; +0x99, 0x18000fd39 add rbx, 8 ; +0x9c, 0x18000fd3c cmp rbx, rdi ; +0xa0, 0x18000fd40 jbe short loc_18000FD07 ; +0xa3, 0x18000fd43 mov rbp, [rsp+38h+arg_8] ; +0xa5, 0x18000fd45 mov rdi, [rsp+38h+arg_10] ; +0xaa, 0x18000fd4a mov rbx, [rsp+38h+arg_0] ; +0xaf, 0x18000fd4f add rsp, 30h ; +0xb4, 0x18000fd54 pop rsi ; +0xb8, 0x18000fd58 retn ; +0xb9, 0x18000fd59