// File: /workspace/github_c_makefile_star2_O2/Cloudef[P]dwm-fork/dwm.c
// Function: propertynotify
void
propertynotify(XEvent *e) {
   Client *c;
   Systray *s;
   Window trans;
   XPropertyEvent *ev = &e->xproperty;

   if((s = systray_find(ev->window)))
   {
      systray_state(s);
      systray_update();
   }

   if((ev->window == root) && (ev->atom == XA_WM_NAME))
      updatestatus();
   else if(ev->state == PropertyDelete)
      return; /* ignore */
   else if((c = wintoclient(ev->window))) {
      switch (ev->atom) {
         default: break;
         case XA_WM_TRANSIENT_FOR:
                  XGetTransientForHint(dpy, c->win, &trans);
                  if(!c->isfloating && (c->isfloating = (wintoclient(trans) != NULL)))
                     arrange(c->mon);
                  break;
         case XA_WM_NORMAL_HINTS:
                  updatesizehints(c);
                  break;
         case XA_WM_HINTS:
                  updatewmhints(c);
                  drawbars();
                  break;
      }
      if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
         updatetitle(c);
         if(c == c->mon->sel)
            drawbar(c->mon);
      }
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq %r15, %rdi
callq 0xb822
testq %rax, %rax
je 0xac22
movq %rax, %r14
movq %rbx, 0x8(%rsp)
movq (%rax), %r12
leaq 0x28(%rsp), %rbx
andq $0x0, (%rbx)
movq 0x89ee(%rip), %r13      # 0x13488
leaq 0x2ad5(%rip), %r15      # 0xd576
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x55d0
movq %rax, %rbp
movq 0x89d0(%rip), %rdi      # 0x13488
movq %r15, %rsi
xorl %edx, %edx
callq 0x55d0
leaq 0x40(%rsp), %r10
leaq 0x30(%rsp), %r11
leaq 0x3c(%rsp), %r15
leaq 0x10(%rsp), %rcx
pushq $0x2
popq %rdx
movq %r13, %rdi
movq %rcx, %r13
movq %r12, %rsi
movq %rdx, %r12
movq %rbp, %rdx
xorl %ecx, %ecx
movq %r12, %r8
xorl %r9d, %r9d
pushq %rbx
pushq %r10
pushq %r11
pushq %r15
pushq %r13
pushq %rax
callq 0x5190
addq $0x30, %rsp
testl %eax, %eax
je 0xab11
movq 0x8(%rsp), %rbx
jmp 0xac19
movq %r12, %r15
movq 0x10(%rsp), %rbx
movq 0x8968(%rip), %rdi      # 0x13488
leaq 0x2a4f(%rip), %rsi      # 0xd576
xorl %r12d, %r12d
xorl %edx, %edx
callq 0x55d0
xorq %rbx, %rax
movq 0x30(%rsp), %rcx
movq %rcx, %rdx
xorq $0x2, %rdx
movq 0x28(%rsp), %rdi
orq %rax, %rdx
jne 0xab4f
movzbl 0x1(%rdi), %r12d
movq 0x8(%rsp), %rbx
testq %rcx, %rcx
setne %al
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xab6c
callq 0x5070
testq %r12, %r12
je 0xac19
movq 0x890c(%rip), %rdi      # 0x13488
movq (%r14), %rsi
testb $0x1, %r12b
jne 0xab8e
callq 0x5350
xorl %eax, %eax
jmp 0xab99
callq 0x5710
pushq $0x1
popq %rax
movq %rax, %r15
movq (%r14), %rcx
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq 0x88d5(%rip), %r13      # 0x13488
leaq 0x25d4(%rip), %rbp      # 0xd18e
movq %r13, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x55d0
movq %rax, %r12
movq 0x88b7(%rip), %rdi      # 0x13488
movq %rbp, %rsi
xorl %edx, %edx
callq 0x55d0
pushq $0x20
popq %r8
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %rax, %rcx
xorl %r9d, %r9d
pushq $0x2
leaq 0x18(%rsp), %rax
pushq %rax
callq 0x5650
addq $0x10, %rsp
movq (%r14), %rdi
leaq 0x290e(%rip), %rdx      # 0xd519
movq %rdi, %rsi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x834c
callq 0x960f
movq 0x20(%rbx), %r15
cmpq 0x8a27(%rip), %r15      # 0x13650
jne 0xac3c
cmpq $0x27, 0x28(%rbx)
jne 0xac3c
callq 0x66e8
jmp 0xad02
cmpl $0x1, 0x38(%rbx)
je 0xad02
movq %r15, %rdi
callq 0x757f
testq %rax, %rax
je 0xad02
movq %rax, %r14
movq 0x28(%rbx), %rax
cmpq $0x23, %rax
je 0xacc5
cmpq $0x28, %rax
je 0xacbb
cmpq $0x44, %rax
jne 0xacd2
movq 0x8811(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
leaq 0x10(%rsp), %rdx
callq 0x56a0
cmpl $0x0, 0x168(%r14)
jne 0xacd2
movq 0x10(%rsp), %rdi
callq 0x757f
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x168(%r14)
je 0xacd2
movq 0x1a0(%r14), %rdi
callq 0x958e
jmp 0xacd2
movq %r14, %rdi
callq 0xbfa7
jmp 0xacd2
movq %r14, %rdi
callq 0xc0f8
callq 0x7680
movq 0x28(%rbx), %rax
cmpq $0x27, %rax
je 0xace5
cmpq 0x87e5(%rip), %rax      # 0x134c8
jne 0xad02
movq %r14, %rdi
callq 0xbf3b
movq 0x1a0(%r14), %rdi
cmpq 0x80(%rdi), %r14
jne 0xad02
callq 0x76a3
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq