// File: /workspace/github_c_makefile_star2_O3/kek[P]evilwm/events.c
// Function: event_main_loop
void event_main_loop(void) {
	union {
		XEvent xevent;
#ifdef SHAPE
		XShapeEvent xshape;
#endif
	} ev;
	/* main event loop here */
	while (!wm_exit) {
		if (interruptibleXNextEvent(&ev.xevent)) {
			switch (ev.xevent.type) {
			case KeyPress:
				handle_key_event(&ev.xevent.xkey); break;
#ifdef MOUSE
			case ButtonPress:
				handle_button_event(&ev.xevent.xbutton); break;
#endif
			case ConfigureRequest:
				handle_configure_request(&ev.xevent.xconfigurerequest); break;
			case MapRequest:
				handle_map_request(&ev.xevent.xmaprequest); break;
			case ColormapNotify:
				handle_colormap_change(&ev.xevent.xcolormap); break;
			case EnterNotify:
				handle_enter_event(&ev.xevent.xcrossing); break;
			case PropertyNotify:
				handle_property_change(&ev.xevent.xproperty); break;
			case UnmapNotify:
				handle_unmap_event(&ev.xevent.xunmap); break;
			case MappingNotify:
				handle_mappingnotify_event(&ev.xevent.xmapping); break;
			case ClientMessage:
				handle_client_message(&ev.xevent.xclient); break;
			default:
#ifdef SHAPE
				if (have_shape && ev.xevent.type == shape_event) {
					handle_shape_event(&ev.xshape);
				}
#endif
#ifdef RANDR
				if (have_randr && ev.xevent.type == randr_event_base + RRScreenChangeNotify) {
					XRRUpdateConfiguration(&ev.xevent);
				}
#endif
				break;
			}
		}
		if (need_client_tidy) {
			struct list *iter, *niter;
			need_client_tidy = 0;
			for (iter = clients_tab_order; iter; iter = niter) {
				Client *c = iter->data;
				niter = iter->next;
				if (c->remove)
					remove_client(c);
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
leaq 0x86f0(%rip), %rax      # 0xc7d8
cmpl $0x0, (%rax)
je 0x40ff
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x86da(%rip), %r14      # 0xc7e0
leaq 0xc0(%rsp), %rbx
leaq 0x870b(%rip), %rbp      # 0xc820
movq (%r14), %rdi
movl 0x10(%rdi), %r15d
callq 0x3170
testl %eax, %eax
je 0x4180
movq (%r14), %rdi
movq %rsp, %rsi
callq 0x3420
movl (%rsp), %eax
cmpl $0x11, %eax
jle 0x422c
leal -0x12(%rax), %ecx
cmpl $0x10, %ecx
ja 0x453f
leaq 0x4ed5(%rip), %rdx      # 0x9024
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x28(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4b70
movl 0x20(%rax), %ecx
testl %ecx, %ecx
je 0x4747
decl %ecx
movl %ecx, 0x20(%rax)
jmp 0x4b70
leal 0x3f(%r15), %eax
testl %r15d, %r15d
cmovnsl %r15d, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %r15d, %ecx
subl %edx, %ecx
movl $0x1, %r12d
shlq %cl, %r12
sarl $0x6, %eax
movslq %eax, %r13
incl %r15d
xorps %xmm0, %xmm0
movaps %xmm0, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
orq %r12, 0xc0(%rsp,%r13,8)
movl %r15d, %edi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x33e0
testl %eax, %eax
jns 0x421b
callq 0x30d0
cmpl $0x4, (%rax)
je 0x4b70
callq 0x3780
movq (%r14), %rdi
callq 0x3170
testl %eax, %eax
je 0x41a7
jmp 0x4125
cmpl $0x2, %eax
je 0x4440
cmpl $0x4, %eax
je 0x4500
cmpl $0x7, %eax
jne 0x453f
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4b70
movq %rax, %r15
movl 0x74(%rax), %eax
cmpl $-0x1, %eax
je 0x4272
movq 0x10(%r15), %rcx
cmpl 0x40(%rcx), %eax
jne 0x4b70
movq %r15, %rdi
callq 0x3c99
movq %r15, %rdi
callq 0x5788
jmp 0x4b70
movq %rsp, %rdi
callq 0x3480
cmpl $0x1, 0x28(%rsp)
jne 0x4b70
leaq 0x854f(%rip), %rax      # 0xc7f0
cmpl $0x0, (%rax)
jle 0x4b70
xorl %r15d, %r15d
xorl %r12d, %r12d
leaq 0x8541(%rip), %rax      # 0xc7f8
movq (%rax), %rdi
addq %r15, %rdi
callq 0x80c6
incq %r12
leaq 0x8524(%rip), %rax      # 0xc7f0
movslq (%rax), %rax
addq $0x70, %r15
cmpq %rax, %r12
jl 0x42b0
jmp 0x4b70
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4b70
movq %rax, %r15
movq 0x28(%rsp), %rax
cmpq $0x28, %rax
jne 0x4701
movq %r15, %rdi
callq 0x6f6b
jmp 0x4b70
callq 0x8052
movq %rax, %r15
movq 0x28(%rsp), %rax
leaq 0x8375(%rip), %rcx      # 0xc698
cmpq (%rcx), %rax
jne 0x459c
movl 0x38(%rsp), %esi
movq %r15, %rdi
callq 0x7f2e
jmp 0x4b70
movq 0x28(%rsp), %rdi
callq 0x39ac
movq %rax, %r15
movdqu 0x30(%rsp), %xmm0
movdqa %xmm0, 0xc0(%rsp)
movl $0x0, 0xd0(%rsp)
movq 0x48(%rsp), %rdi
movq %rdi, 0xd8(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0xe0(%rsp)
testq %r15, %r15
je 0x46b6
movl 0x58(%rsp), %eax
notl %eax
testb $0x60, %al
jne 0x43a5
callq 0x39ac
testq %rax, %rax
je 0x43a5
movq 0x8(%rax), %rax
movq %rax, 0xd8(%rsp)
movl 0x58(%rsp), %edi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4c27
leaq 0x83f3(%rip), %rax      # 0xc7b0
cmpq (%rax), %r15
jne 0x4b70
jmp 0x4b68
movq 0x28(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x46cf
movq %rax, %r15
movl 0x74(%rax), %esi
cmpl $-0x1, %esi
je 0x43f7
movq 0x10(%r15), %rdi
cmpl 0x40(%rdi), %esi
je 0x43f7
callq 0x7f2e
movq %r15, %rdi
callq 0x3a75
movq %r15, %rdi
callq 0x3ad0
jmp 0x4b70
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4b70
cmpl $0x0, 0x30(%rsp)
je 0x4b70
movq 0x28(%rsp), %rsi
movq %rsi, 0x18(%rax)
movq (%r14), %rdi
callq 0x36d0
jmp 0x4b70
movq (%r14), %rdi
movzbl 0x54(%rsp), %esi
xorl %edx, %edx
callq 0x3580
movq %rax, %r12
callq 0x8052
movq %rax, %r13
cmpq $0x60, %r12
jg 0x45e7
leaq -0x31(%r12), %rax
cmpq $0x8, %rax
jae 0x447c
leal -0x31(%r12), %esi
movq %r13, %rdi
callq 0x7f2e
leaq 0x832d(%rip), %rax      # 0xc7b0
movq (%rax), %r15
testq %r15, %r15
je 0x4b70
movl 0x58(%r15), %eax
movl 0x5c(%r15), %ecx
cmpl $0x2, %eax
movl $0x10, %edx
cmovll %edx, %eax
cmpl $0x2, %ecx
cmovll %edx, %ecx
cmpq $0xff1a, %r12           # imm = 0xFF1A
jg 0x47e1
leaq -0x62(%r12), %rdx
cmpq $0x17, %rdx
ja 0x48a8
leaq 0x4b9d(%rip), %rsi      # 0x9068
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl 0x34(%r15), %eax
movl %eax, 0x24(%r15)
movq (%r14), %rcx
movq 0xe8(%rcx), %rcx
movq 0x10(%r15), %rdx
movslq (%rdx), %rdx
shlq $0x7, %rdx
movl 0x1c(%rcx,%rdx), %ecx
addl 0x30(%r15), %eax
subl %eax, %ecx
jmp 0x497a
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4b70
movl 0x54(%rsp), %ecx
cmpl $0x3, %ecx
je 0x47dc
cmpl $0x2, %ecx
je 0x47cf
cmpl $0x1, %ecx
jne 0x4b70
movq %rax, %rdi
callq 0x7773
jmp 0x4b70
leaq 0x82ca(%rip), %rcx      # 0xc810
cmpl $0x0, (%rcx)
je 0x456d
leaq 0x82c2(%rip), %rcx      # 0xc814
cmpl (%rcx), %eax
jne 0x456d
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x456d
movq %rax, %rdi
callq 0x3fd0
leaq 0x82a4(%rip), %rax      # 0xc818
cmpl $0x0, (%rax)
je 0x4b70
movl (%rsp), %eax
leaq 0x8295(%rip), %rcx      # 0xc81c
cmpl (%rcx), %eax
jne 0x4b70
movq %rsp, %rdi
callq 0x3190
jmp 0x4b70
movq 0x20(%rsp), %rdi
callq 0x39ac
movq 0x28(%rsp), %rcx
testq %rax, %rax
je 0x478e
leaq 0x80e5(%rip), %rdx      # 0xc6a0
cmpq (%rdx), %rcx
jne 0x47ad
cmpq $0x2, 0x38(%rsp)
jne 0x4b70
cmpq %r15, 0x10(%rax)
jne 0x4b70
movq %rax, %rdi
callq 0x3c99
jmp 0x4b70
cmpq $0xff0c, %r12           # imm = 0xFF0C
jg 0x4753
cmpq $0x61, %r12
je 0x4860
cmpq $0x64, %r12
je 0x487d
cmpq $0xff09, %r12           # imm = 0xFF09
jne 0x447c
callq 0x7e4f
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
xorl %edx, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x3760
testl %eax, %eax
jne 0x46a2
movq (%r14), %rdi
movl $0x3, %esi
movq %rbx, %rdx
callq 0x3730
cmpl $0x2, 0xc0(%rsp)
jne 0x467e
movq (%r14), %rdi
movzbl 0x114(%rsp), %esi
xorl %edx, %edx
callq 0x3580
cmpq $0xff09, %rax           # imm = 0xFF09
jne 0x4674
callq 0x7e4f
cmpl $0x2, 0xc0(%rsp)
je 0x463b
movq (%r14), %rdi
movzbl 0x114(%rsp), %esi
xorl %edx, %edx
callq 0x3580
cmpq $0xff09, %rax           # imm = 0xFF09
je 0x463b
movq (%r14), %rdi
xorl %esi, %esi
callq 0x3690
leaq 0x8107(%rip), %rax      # 0xc7b0
movq (%rax), %rdi
callq 0x5788
jmp 0x447c
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movl 0x58(%rsp), %edx
movq %rbx, %rcx
callq 0x3040
jmp 0x4b70
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x35b0
movq 0x28(%rsp), %r15
movq 0xe0(%rsp), %rdi
callq 0x8027
movq %r15, %rdi
movq %rax, %rsi
callq 0x6738
jmp 0x4b70
leaq 0x7fe0(%rip), %rcx      # 0xc6e8
cmpq (%rcx), %rax
jne 0x4b70
movq %r15, %rdi
callq 0x7052
cmpl $0x0, 0x78(%r15)
jne 0x4b70
movl 0x74(%r15), %eax
cmpl $-0x1, %eax
je 0x473a
movq 0x10(%r15), %rcx
cmpl 0x40(%rcx), %eax
jne 0x4b70
movq %r15, %rdi
callq 0x3a75
jmp 0x4b70
movl $0x1, 0x7c(%rax)
jmp 0x4b76
cmpq $0xff53, %r12           # imm = 0xFF53
je 0x4869
cmpq $0xff51, %r12           # imm = 0xFF51
je 0x4895
cmpq $0xff0d, %r12           # imm = 0xFF0D
jne 0x447c
leaq 0x7c5f(%rip), %rax      # 0xc3e0
movq (%rax), %rdi
callq 0x65dc
jmp 0x447c
leaq 0x7f3b(%rip), %rax      # 0xc6d0
cmpq (%rax), %rcx
jne 0x4b70
movq 0x20(%rsp), %rdi
callq 0x5acf
jmp 0x4b70
leaq 0x7f04(%rip), %rdx      # 0xc6b8
cmpq (%rdx), %rcx
jne 0x4811
cmpq $0x2, 0x40(%rsp)
jne 0x4b70
movq %rax, %rdi
xorl %esi, %esi
jmp 0x4a93
movq %rax, %rdi
callq 0x7068
jmp 0x4b70
movq %rax, %rdi
jmp 0x4807
cmpq $0xff1b, %r12           # imm = 0xFF1B
je 0x4a83
cmpq $0xff63, %r12           # imm = 0xFF63
je 0x4804
cmpq $0xff9e, %r12           # imm = 0xFF9E
jne 0x4b70
movq %r15, %rdi
callq 0x3b0f
jmp 0x4b70
leaq 0x7ea8(%rip), %rdx      # 0xc6c0
cmpq (%rdx), %rcx
jne 0x48c4
movq 0x38(%rsp), %rcx
movl %ecx, %edx
andl $0x3000, %edx           # imm = 0x3000
cmpl $0x2000, %edx           # imm = 0x2000
jne 0x4b70
movl %ecx, %edi
shrl $0x8, %edi
andl $0xf, %edi
movzbl %cl, %ecx
movups 0x40(%rsp), %xmm0
movups 0x50(%rsp), %xmm1
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
movaps %xmm0, 0xc0(%rsp)
jmp 0x4900
movl 0x58(%r13), %esi
jmp 0x4474
movl 0x40(%r13), %esi
cmpl $0x6, %esi
ja 0x447c
incl %esi
jmp 0x4474
xorl %esi, %esi
cmpl $0x0, 0x68(%r13)
sete %sil
movq %r13, %rdi
callq 0x7fb0
jmp 0x447c
movl 0x40(%r13), %esi
testl %esi, %esi
je 0x447c
decl %esi
jmp 0x4474
cmpq $0x3d, %r12
jne 0x4b70
movq %r15, %rdi
movl $0x2, %esi
movl $0x2, %edx
jmp 0x49a8
leaq 0x7dfd(%rip), %rdx      # 0xc6c8
cmpq (%rdx), %rcx
jne 0x4a9d
cmpq $0x2, 0x38(%rsp)
jne 0x4b70
movq 0x40(%rsp), %rcx
movq %rcx, 0xd8(%rsp)
movl 0x48(%rsp), %ecx
movl %ecx, 0xe0(%rsp)
movl 0x6c(%rax), %ecx
movl $0x60, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4c27
jmp 0x4b70
movl 0x34(%r15), %eax
movl %eax, 0x24(%r15)
movl %eax, 0x28(%r15)
jmp 0x4aed
leaq 0x7ab0(%rip), %rcx      # 0xc3d8
movl (%rcx), %ecx
testl %ecx, 0x50(%rsp)
je 0x4ac2
movl 0x50(%r15), %ecx
addl 0x2c(%r15), %eax
testl %ecx, %ecx
je 0x4948
cmpl %ecx, %eax
jg 0x4aed
movl %eax, 0x2c(%r15)
jmp 0x4aed
movq (%r14), %rax
movq 0xe8(%rax), %rax
movq 0x10(%r15), %rcx
movslq (%rcx), %rcx
shlq $0x7, %rcx
movl 0x18(%rax,%rcx), %eax
movl 0x34(%r15), %ecx
movl 0x2c(%r15), %edx
addl %ecx, %edx
subl %edx, %eax
movl %eax, 0x24(%r15)
movl %ecx, 0x28(%r15)
jmp 0x4aed
cmpl $-0x1, 0x74(%r15)
je 0x4ac9
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
jmp 0x4ad0
movq %r15, %rdi
movl $0x2, %esi
movl $0x3, %edx
callq 0x7ca0
jmp 0x4b70
movl 0x54(%rsp), %esi
movq %r15, %rdi
callq 0x73e9
jmp 0x4b70
leaq 0x7a0e(%rip), %rcx      # 0xc3d8
movl (%rcx), %ecx
testl %ecx, 0x50(%rsp)
je 0x4ada
movl 0x2c(%r15), %ecx
subl %eax, %ecx
cmpl 0x48(%r15), %ecx
jl 0x4aed
movl %ecx, 0x2c(%r15)
jmp 0x4aed
movq (%r14), %rax
movq 0xe8(%rax), %rax
movq 0x10(%r15), %rcx
movslq (%rcx), %rcx
shlq $0x7, %rcx
movq 0x18(%rax,%rcx), %xmm0
movq 0x30(%r15), %xmm1
pshufd $0xe1, %xmm1, %xmm2     # xmm2 = xmm1[1,0,2,3]
movss 0x2c(%r15), %xmm3
movss %xmm3, %xmm1            # xmm1 = xmm3[0],xmm1[1,2,3]
paddd %xmm2, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x24(%r15)
jmp 0x4aed
leaq 0x799f(%rip), %rax      # 0xc3d8
movl (%rax), %eax
testl %eax, 0x50(%rsp)
je 0x4ae1
movl 0x54(%r15), %eax
addl 0x30(%r15), %ecx
testl %eax, %eax
je 0x4a59
cmpl %eax, %ecx
jg 0x4aed
movl %ecx, 0x30(%r15)
jmp 0x4aed
leaq 0x796f(%rip), %rax      # 0xc3d8
movl (%rax), %eax
testl %eax, 0x50(%rsp)
je 0x4ae8
movl 0x30(%r15), %eax
subl %ecx, %eax
cmpl 0x4c(%r15), %eax
jl 0x4aed
movl %eax, 0x30(%r15)
jmp 0x4aed
leaq 0x794e(%rip), %rax      # 0xc3d8
movl (%rax), %esi
andl 0x50(%rsp), %esi
movq %r15, %rdi
callq 0x3eef
jmp 0x4b70
leaq 0x7c3c(%rip), %rdx      # 0xc6e0
cmpq (%rdx), %rcx
jne 0x4bb5
cmpq $0x2, 0x40(%rsp)
jne 0x4b70
movl 0x38(%rsp), %esi
movq %rax, %rdi
jmp 0x4ad0
addl $0x10, 0x24(%r15)
jmp 0x4aed
movl 0x40(%r13), %esi
movq %r15, %rdi
callq 0x3d2b
jmp 0x4b70
addl $-0x10, 0x24(%r15)
jmp 0x4aed
addl $0x10, 0x28(%r15)
jmp 0x4aed
addl $-0x10, 0x28(%r15)
movl 0x24(%r15), %ecx
movl 0x34(%r15), %eax
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
cmpl %eax, %edx
jne 0x4b0f
cmpl $0x0, 0x40(%r15)
je 0x4b0f
movl $0x0, 0x24(%r15)
movl 0x28(%r15), %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
cmpl %eax, %edx
jne 0x4b2d
cmpl $0x0, 0x44(%r15)
je 0x4b2d
movl $0x0, 0x28(%r15)
movq %r15, %rdi
callq 0x738f
movq (%r14), %rdi
movq (%r15), %rdx
movl 0x34(%r15), %eax
decl %eax
movl 0x2c(%r15), %r10d
addl %eax, %r10d
addl 0x30(%r15), %eax
subq $0x8, %rsp
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq $0x0
callq 0x32c0
addq $0x20, %rsp
movq %r15, %rdi
callq 0x6695
cmpl $0x0, (%rbp)
je 0x4ba0
movl $0x0, (%rbp)
leaq 0x7c14(%rip), %rax      # 0xc798
movq (%rax), %r15
testq %r15, %r15
je 0x4ba0
movq 0x8(%r15), %rdi
movq (%r15), %r15
cmpl $0x0, 0x7c(%rdi)
je 0x4b87
callq 0x3d73
jmp 0x4b87
leaq 0x7c31(%rip), %rax      # 0xc7d8
cmpl $0x0, (%rax)
je 0x4115
jmp 0x40ed
leaq 0x7b44(%rip), %rdx      # 0xc700
cmpq (%rdx), %rcx
jne 0x4b70
leaq 0x7b40(%rip), %rcx      # 0xc708
movq (%rcx), %rcx
leaq 0x7b3e(%rip), %rdx      # 0xc710
movq (%rdx), %rsi
leaq 0x7b3c(%rip), %rdx      # 0xc718
movq (%rdx), %rdi
xorl %r8d, %r8d
xorl %edx, %edx
movl $0x3, %r10d
movq 0x40(%rsp,%r8,8), %r9
cmpq %rcx, %r9
jne 0x4bf9
orl $0x2, %edx
jmp 0x4c0a
cmpq %rsi, %r9
jne 0x4c03
orl $0x1, %edx
jmp 0x4c0a
cmpq %rdi, %r9
cmovel %r10d, %edx
incq %r8
cmpq $0x2, %r8
jne 0x4bea
testl %edx, %edx
je 0x4b70
movl 0x38(%rsp), %esi
movq %rax, %rdi
jmp 0x49a8