// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rdi, %rbx
movq 0x846f(%rip), %rbp      # 0x13490
testq %rbp, %rbp
je 0xb039
movq 0x20(%rbx), %rax
cmpq %rax, (%rbp)
je 0xb03b
movq 0x10(%rbp), %rbp
testq %rbp, %rbp
jne 0xb02a
xorl %ebp, %ebp
testq %rbp, %rbp
je 0xb185
movq %rbx, 0x18(%rsp)
movq (%rbp), %r14
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq 0x8428(%rip), %r15      # 0x13488
leaq 0x24f2(%rip), %r12      # 0xd559
xorl %ebx, %ebx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x55e0
movq %rax, %r13
movq 0x8408(%rip), %rdi      # 0x13488
movq %r12, %rsi
xorl %edx, %edx
callq 0x55e0
leaq 0x30(%rsp), %r10
leaq 0x20(%rsp), %r11
leaq 0x2c(%rsp), %r12
movl $0x2, %r8d
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r9d, %r9d
leaq 0x8(%rsp), %r14
pushq %r14
pushq %r10
pushq %r11
pushq %r12
leaq 0x30(%rsp), %r10
pushq %r10
pushq %rax
callq 0x5190
addq $0x30, %rsp
testl %eax, %eax
jne 0xb125
movq 0x10(%rsp), %r14
movq 0x83ad(%rip), %rdi      # 0x13488
leaq 0x2477(%rip), %rsi      # 0xd559
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x55e0
xorq %r14, %rax
movq 0x20(%rsp), %rcx
movq %rcx, %rdx
xorq $0x2, %rdx
orq %rax, %rdx
jne 0xb108
movq 0x8(%rsp), %rax
movzbl 0x1(%rax), %ebx
testq %rcx, %rcx
setne %al
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb125
callq 0x5070
testq %rbx, %rbx
je 0xb17b
movq 0x8357(%rip), %rdi      # 0x13488
movq (%rbp), %rsi
testb $0x1, %bl
jne 0xb149
callq 0x5350
movl $0x2, %r14d
xorl %esi, %esi
jmp 0xb159
callq 0x5720
movl $0x1, %esi
movl $0x1, %r14d
movq (%rbp), %rdi
callq 0xc8b2
movq (%rbp), %rdi
leaq 0x238f(%rip), %rdx      # 0xd4fc
movq %rdi, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85ef
callq 0x996a
movq 0x18(%rsp), %rbx
movq 0x20(%rbx), %rax
cmpq 0x84c0(%rip), %rax      # 0x13650
jne 0xb1a3
cmpq $0x27, 0x28(%rbx)
jne 0xb1a3
callq 0x68f4
jmp 0xb2a6
cmpl $0x1, 0x38(%rbx)
je 0xb2a6
movq 0x82b4(%rip), %rcx      # 0x13468
testq %rcx, %rcx
je 0xb1dd
movq 0x78(%rcx), %r14
testq %r14, %r14
je 0xb1d4
cmpq %rax, 0x1a8(%r14)
je 0xb1e0
movq 0x190(%r14), %r14
jmp 0xb1bd
movq 0x90(%rcx), %rcx
jmp 0xb1b4
xorl %r14d, %r14d
testq %r14, %r14
je 0xb2a6
movq 0x28(%rbx), %rax
cmpq $0x23, %rax
je 0xb2b5
cmpq $0x28, %rax
je 0xb26e
cmpq $0x44, %rax
jne 0xb276
movq 0x827e(%rip), %rdi      # 0x13488
movq 0x1a8(%r14), %rsi
leaq 0x10(%rsp), %rdx
callq 0x56b0
cmpl $0x0, 0x168(%r14)
jne 0xb276
movq 0x823c(%rip), %rax      # 0x13468
testq %rax, %rax
je 0xb261
movq 0x10(%rsp), %rcx
movq 0x78(%rax), %rdx
testq %rdx, %rdx
je 0xb255
cmpq %rcx, 0x1a8(%rdx)
je 0xb2da
movq 0x190(%rdx), %rdx
jmp 0xb23a
movq 0x90(%rax), %rax
testq %rax, %rax
jne 0xb236
movl $0x0, 0x168(%r14)
jmp 0xb276
movq %r14, %rdi
callq 0xc6a7
movq 0x28(%rbx), %rax
cmpq $0x27, %rax
je 0xb289
cmpq 0x8241(%rip), %rax      # 0x134c8
jne 0xb2a6
movq %r14, %rdi
callq 0xc639
movq 0x1a0(%r14), %rdi
cmpq 0x80(%rdi), %r14
jne 0xb2a6
callq 0x77ff
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0xc830
movq 0x81a4(%rip), %r15      # 0x13468
testq %r15, %r15
je 0xb276
movq %r15, %rdi
callq 0x77ff
movq 0x90(%r15), %r15
jmp 0xb2c4
movl $0x1, 0x168(%r14)
movq 0x1a0(%r14), %rdi
callq 0x98ef
jmp 0xb276