; ; cocos2d::CCLayerRGBA::updateDisplayedOpacity from 0x180051940 to 0x180051a02 (194 bytes) ; ; 8 xrefs: ; > @ 0x1800ed8d8 ; > @ 0x1800ede28 ; > @ 0x1800ee400 ; > @ 0x1800f7230 ; > @ 0x180138140 ; > @ 0x180138198 ; > @ 0x1801438a8 ; > @ 0x1801b2250 ; ; 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 rdi ; +0x0, 0x180051940 sub rsp, 30h ; +0x2, 0x180051942 movzx r8d, byte ptr [rcx+9] ; +0x6, 0x180051946 mov rdi, rcx ; +0xb, 0x18005194b movzx eax, dl ; +0xe, 0x18005194e imul r8d, eax ; +0x11, 0x180051951 cmp byte ptr [rcx+10h], 0 ; +0x15, 0x180051955 movd xmm0, r8d ; +0x19, 0x180051959 cvtdq2pd xmm0, xmm0 ; +0x1e, 0x18005195e divsd xmm0, cs:qword_1800E61B0 ; +0x22, 0x180051962 cvttsd2si eax, xmm0 ; +0x2a, 0x18005196a mov [rcx+8], al ; +0x2e, 0x18005196e jz loc_1800519FC ; +0x31, 0x180051971 mov rax, [rcx-0C8h] ; +0x37, 0x180051977 test rax, rax ; +0x3e, 0x18005197e jz short loc_1800519FC ; +0x41, 0x180051981 mov [rsp+38h+arg_0], rbx ; +0x43, 0x180051983 mov rbx, [rax+38h] ; +0x48, 0x180051988 mov eax, [rbx] ; +0x4c, 0x18005198c test eax, eax ; +0x4e, 0x18005198e jz short loc_1800519F7 ; +0x50, 0x180051990 mov rbx, [rbx+10h] ; +0x52, 0x180051992 mov [rsp+38h+arg_10], rsi ; +0x56, 0x180051996 lea rsi, [rax-1] ; +0x5b, 0x18005199b lea rsi, [rbx+rsi*8] ; +0x5f, 0x18005199f cmp rbx, rsi ; +0x63, 0x1800519a3 ja short loc_1800519F2 ; +0x66, 0x1800519a6 mov [rsp+38h+arg_8], rbp ; +0x68, 0x1800519a8 xor ebp, ebp ; +0x6d, 0x1800519ad nop ; +0x6f, 0x1800519af mov rcx, [rbx] ; +0x70, 0x1800519b0 test rcx, rcx ; +0x73, 0x1800519b3 jz short loc_1800519ED ; +0x76, 0x1800519b6 lea r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x78, 0x1800519b8 mov [rsp+38h+var_18], ebp ; +0x7f, 0x1800519bf lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x83, 0x1800519c3 xor edx, edx ; +0x8a, 0x1800519ca call __RTDynamicCast ; +0x8c, 0x1800519cc test rax, rax ; +0x91, 0x1800519d1 jz short loc_1800519E4 ; +0x94, 0x1800519d4 mov r8, [rax] ; +0x96, 0x1800519d6 mov rcx, rax ; +0x99, 0x1800519d9 movzx edx, byte ptr [rdi+8] ; +0x9c, 0x1800519dc call qword ptr [r8+68h] ; +0xa0, 0x1800519e0 add rbx, 8 ; +0xa4, 0x1800519e4 cmp rbx, rsi ; +0xa8, 0x1800519e8 jbe short loc_1800519B0 ; +0xab, 0x1800519eb mov rbp, [rsp+38h+arg_8] ; +0xad, 0x1800519ed mov rsi, [rsp+38h+arg_10] ; +0xb2, 0x1800519f2 mov rbx, [rsp+38h+arg_0] ; +0xb7, 0x1800519f7 add rsp, 30h ; +0xbc, 0x1800519fc pop rdi ; +0xc0, 0x180051a00 retn ; +0xc1, 0x180051a01