; ; CCPartAnimSprite::setOpacity from 0x14004a640 to 0x14004a70f (207 bytes) ; ; 4 xrefs: ; > @ 0x140709df8 ; > @ 0x140885d34 ; > @ 0x140885d44 ; > @ 0x14090fd40 ; ; 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:25:32 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x14004a640 mov [rsp+arg_10], rbp ; +0x5, 0x14004a645 push rsi ; +0xa, 0x14004a64a sub rsp, 20h ; +0xb, 0x14004a64b movzx ebp, dl ; +0xf, 0x14004a64f mov rsi, rcx ; +0x12, 0x14004a652 call cs:__imp_?setOpacity@CCSprite@cocos2d@@UEAAXE@Z; cocos2d::CCSprite::setOpacity(uchar) ; +0x15, 0x14004a655 add rsi, 0FFFFFFFFFFFFFEC0h ; +0x1b, 0x14004a65b mov rcx, rsi ; +0x22, 0x14004a662 mov rax, [rsi] ; +0x25, 0x14004a665 call qword ptr [rax+1E0h] ; +0x28, 0x14004a668 test rax, rax ; +0x2e, 0x14004a66e jz loc_14004A6FF ; +0x31, 0x14004a671 mov rax, [rsi] ; +0x37, 0x14004a677 mov rcx, rsi ; +0x3a, 0x14004a67a call qword ptr [rax+1E0h] ; +0x3d, 0x14004a67d mov rcx, [rax+38h] ; +0x43, 0x14004a683 cmp dword ptr [rcx], 0 ; +0x47, 0x14004a687 jbe short loc_14004A6FF ; +0x4a, 0x14004a68a mov rax, [rsi] ; +0x4c, 0x14004a68c mov rcx, rsi ; +0x4f, 0x14004a68f mov [rsp+28h+arg_0], rdi ; +0x52, 0x14004a692 call qword ptr [rax+1E0h] ; +0x57, 0x14004a697 mov rcx, rsi ; +0x5d, 0x14004a69d mov rbx, [rax+38h] ; +0x60, 0x14004a6a0 mov rax, [rsi] ; +0x64, 0x14004a6a4 mov rbx, [rbx+10h] ; +0x67, 0x14004a6a7 call qword ptr [rax+1E0h] ; +0x6b, 0x14004a6ab mov rcx, rsi ; +0x71, 0x14004a6b1 mov rdx, [rax+38h] ; +0x74, 0x14004a6b4 mov rax, [rsi] ; +0x78, 0x14004a6b8 mov rdi, [rdx+10h] ; +0x7b, 0x14004a6bb call qword ptr [rax+1E0h] ; +0x7f, 0x14004a6bf mov rcx, [rax+38h] ; +0x85, 0x14004a6c5 mov eax, [rcx] ; +0x89, 0x14004a6c9 lea rdi, [rdi+rax*8] ; +0x8b, 0x14004a6cb add rdi, 0FFFFFFFFFFFFFFF8h ; +0x8f, 0x14004a6cf cmp rbx, rdi ; +0x93, 0x14004a6d3 ja short loc_14004A6FA ; +0x96, 0x14004a6d6 mov rcx, [rbx] ; +0x98, 0x14004a6d8 test rcx, rcx ; +0x9b, 0x14004a6db jz short loc_14004A6FA ; +0x9e, 0x14004a6de add rcx, 140h ; +0xa0, 0x14004a6e0 movzx edx, bpl ; +0xa7, 0x14004a6e7 mov rax, [rcx] ; +0xab, 0x14004a6eb call qword ptr [rax+28h] ; +0xae, 0x14004a6ee add rbx, 8 ; +0xb1, 0x14004a6f1 cmp rbx, rdi ; +0xb5, 0x14004a6f5 jbe short loc_14004A6D8 ; +0xb8, 0x14004a6f8 mov rdi, [rsp+28h+arg_0] ; +0xba, 0x14004a6fa mov rbx, [rsp+28h+arg_8] ; +0xbf, 0x14004a6ff mov rbp, [rsp+28h+arg_10] ; +0xc4, 0x14004a704 add rsp, 20h ; +0xc9, 0x14004a709 pop rsi ; +0xcd, 0x14004a70d retn ; +0xce, 0x14004a70e