// File: /workspace/github_c_makefile_star2_O1/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 0x86bc(%rip), %rax      # 0xc7d8
cmpl $0x0, (%rax)
je 0x4133
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x86a6(%rip), %r14      # 0xc7e0
leaq 0xc0(%rsp), %rbx
leaq 0x86d7(%rip), %rbp      # 0xc820
movq (%r14), %rdi
movl 0x10(%rdi), %r15d
callq 0x3170
testl %eax, %eax
je 0x41b4
movq (%r14), %rdi
movq %rsp, %rsi
callq 0x3420
movl (%rsp), %eax
cmpl $0x11, %eax
jle 0x4260
leal -0x12(%rax), %ecx
cmpl $0x10, %ecx
ja 0x4571
leaq 0x4ea1(%rip), %rdx      # 0x9024
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x28(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4aec
movl 0x20(%rax), %ecx
testl %ecx, %ecx
je 0x4779
decl %ecx
movl %ecx, 0x20(%rax)
jmp 0x4aec
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 0x424f
callq 0x30d0
cmpl $0x4, (%rax)
je 0x4aec
callq 0x3780
movq (%r14), %rdi
callq 0x3170
testl %eax, %eax
je 0x41db
jmp 0x4159
cmpl $0x2, %eax
je 0x4472
cmpl $0x4, %eax
je 0x4532
cmpl $0x7, %eax
jne 0x4571
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4aec
movq %rax, %r15
movl 0x74(%rax), %eax
cmpl $-0x1, %eax
je 0x42a6
movq 0x10(%r15), %rcx
cmpl 0x40(%rcx), %eax
jne 0x4aec
movq %r15, %rdi
callq 0x3cc8
movq %r15, %rdi
callq 0x57d4
jmp 0x4aec
movq %rsp, %rdi
callq 0x3480
cmpl $0x1, 0x28(%rsp)
jne 0x4aec
leaq 0x851b(%rip), %rax      # 0xc7f0
cmpl $0x0, (%rax)
jle 0x4aec
xorl %r15d, %r15d
xorl %r12d, %r12d
leaq 0x850d(%rip), %rax      # 0xc7f8
movq (%rax), %rdi
addq %r15, %rdi
callq 0x80c4
incq %r12
leaq 0x84f0(%rip), %rax      # 0xc7f0
movslq (%rax), %rax
addq $0x70, %r15
cmpq %rax, %r12
jl 0x42e4
jmp 0x4aec
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4aec
movq %rax, %r15
movq 0x28(%rsp), %rax
cmpq $0x28, %rax
jne 0x4733
movq %r15, %rdi
callq 0x6f8d
jmp 0x4aec
callq 0x8050
movq %rax, %r15
movq 0x28(%rsp), %rax
leaq 0x8341(%rip), %rcx      # 0xc698
cmpq (%rcx), %rax
jne 0x45ce
movl 0x38(%rsp), %esi
movq %r15, %rdi
callq 0x7f2c
jmp 0x4aec
movq 0x28(%rsp), %rdi
callq 0x39ac
movq %rax, %r15
movups 0x30(%rsp), %xmm0
movups %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 0x46e8
movl 0x58(%rsp), %eax
notl %eax
testb $0x60, %al
jne 0x43d7
callq 0x39ac
testq %rax, %rax
je 0x43d7
movq 0x8(%rax), %rax
movq %rax, 0xd8(%rsp)
movl 0x58(%rsp), %edi
movq %rbx, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x4c79
leaq 0x83c1(%rip), %rax      # 0xc7b0
cmpq (%rax), %r15
jne 0x4aec
jmp 0x4ae4
movq 0x28(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4701
movq %rax, %r15
movl 0x74(%rax), %esi
cmpl $-0x1, %esi
je 0x4429
movq 0x10(%r15), %rdi
cmpl 0x40(%rdi), %esi
je 0x4429
callq 0x7f2c
movq %r15, %rdi
callq 0x3a87
movq %r15, %rdi
callq 0x3ae2
jmp 0x4aec
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4aec
cmpl $0x0, 0x30(%rsp)
je 0x4aec
movq 0x28(%rsp), %rsi
movq %rsi, 0x18(%rax)
movq (%r14), %rdi
callq 0x36d0
jmp 0x4aec
movq (%r14), %rdi
movzbl 0x54(%rsp), %esi
xorl %edx, %edx
callq 0x3580
movq %rax, %r12
callq 0x8050
movq %rax, %r13
cmpq $0x60, %r12
jg 0x4619
leaq -0x31(%r12), %rax
cmpq $0x8, %rax
jae 0x44ae
leal -0x31(%r12), %esi
movq %r13, %rdi
callq 0x7f2c
leaq 0x82fb(%rip), %rax      # 0xc7b0
movq (%rax), %r15
testq %r15, %r15
je 0x4aec
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 0x4817
leaq -0x62(%r12), %rdx
cmpq $0x17, %rdx
ja 0x48f4
leaq 0x4b6b(%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 0x49c4
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x4aec
movl 0x54(%rsp), %ecx
cmpl $0x3, %ecx
je 0x4812
cmpl $0x2, %ecx
je 0x4805
cmpl $0x1, %ecx
jne 0x4aec
movq %rax, %rdi
callq 0x77a9
jmp 0x4aec
leaq 0x8298(%rip), %rcx      # 0xc810
cmpl $0x0, (%rcx)
je 0x459f
leaq 0x8290(%rip), %rcx      # 0xc814
cmpl (%rcx), %eax
jne 0x459f
movq 0x20(%rsp), %rdi
callq 0x39ac
testq %rax, %rax
je 0x459f
movq %rax, %rdi
callq 0x4004
leaq 0x8272(%rip), %rax      # 0xc818
cmpl $0x0, (%rax)
je 0x4aec
movl (%rsp), %eax
leaq 0x8263(%rip), %rcx      # 0xc81c
cmpl (%rcx), %eax
jne 0x4aec
movq %rsp, %rdi
callq 0x3190
jmp 0x4aec
movq 0x20(%rsp), %rdi
callq 0x39ac
movq 0x28(%rsp), %rcx
testq %rax, %rax
je 0x47c4
leaq 0x80b3(%rip), %rdx      # 0xc6a0
cmpq (%rdx), %rcx
jne 0x47e3
cmpq $0x2, 0x38(%rsp)
jne 0x4aec
cmpq %r15, 0x10(%rax)
jne 0x4aec
movq %rax, %rdi
callq 0x3cc8
jmp 0x4aec
cmpq $0xff0c, %r12           # imm = 0xFF0C
jg 0x4789
cmpq $0x61, %r12
je 0x48ac
cmpq $0x64, %r12
je 0x48c9
cmpq $0xff09, %r12           # imm = 0xFF09
jne 0x44ae
callq 0x7e48
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 0x46d4
movq (%r14), %rdi
movl $0x3, %esi
movq %rbx, %rdx
callq 0x3730
cmpl $0x2, 0xc0(%rsp)
jne 0x46a6
movq (%r14), %rdi
movzbl 0x114(%rsp), %esi
xorl %edx, %edx
callq 0x3580
cmpq $0xff09, %rax           # imm = 0xFF09
jne 0x46a6
callq 0x7e48
cmpl $0x2, 0xc0(%rsp)
je 0x466d
movq (%r14), %rdi
movzbl 0x114(%rsp), %esi
xorl %edx, %edx
callq 0x3580
cmpq $0xff09, %rax           # imm = 0xFF09
je 0x466d
movq (%r14), %rdi
xorl %esi, %esi
callq 0x3690
leaq 0x80d5(%rip), %rax      # 0xc7b0
movq (%rax), %rdi
callq 0x57d4
jmp 0x44ae
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movl 0x58(%rsp), %edx
movq %rbx, %rcx
callq 0x3040
jmp 0x4aec
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x35b0
movq 0x28(%rsp), %r15
movq 0xe0(%rsp), %rdi
callq 0x8025
movq %r15, %rdi
movq %rax, %rsi
callq 0x677c
jmp 0x4aec
leaq 0x7fae(%rip), %rcx      # 0xc6e8
cmpq (%rcx), %rax
jne 0x4aec
movq %r15, %rdi
callq 0x7091
cmpl $0x0, 0x78(%r15)
jne 0x4aec
movl 0x74(%r15), %eax
cmpl $-0x1, %eax
je 0x476c
movq 0x10(%r15), %rcx
cmpl 0x40(%rcx), %eax
jne 0x4aec
movq %r15, %rdi
callq 0x3a87
jmp 0x4aec
movl $0x1, %ecx
movl %ecx, 0x7c(%rax)
movl %ecx, (%rbp)
jmp 0x4aec
cmpq $0xff53, %r12           # imm = 0xFF53
je 0x48b5
cmpq $0xff51, %r12           # imm = 0xFF51
je 0x48e1
cmpq $0xff0d, %r12           # imm = 0xFF0D
jne 0x44ae
leaq 0x7c29(%rip), %rax      # 0xc3e0
movq (%rax), %rdi
callq 0x6620
jmp 0x44ae
leaq 0x7f05(%rip), %rax      # 0xc6d0
cmpq (%rax), %rcx
jne 0x4aec
movq 0x20(%rsp), %rdi
callq 0x5b1c
jmp 0x4aec
leaq 0x7ece(%rip), %rdx      # 0xc6b8
cmpq (%rdx), %rcx
jne 0x4847
cmpq $0x2, 0x40(%rsp)
jne 0x4aec
movq %rax, %rdi
xorl %esi, %esi
jmp 0x4b9f
movq %rax, %rdi
callq 0x70a8
jmp 0x4aec
movq %rax, %rdi
jmp 0x483d
cmpq $0xff1b, %r12           # imm = 0xFF1B
je 0x4b8f
cmpq $0xff63, %r12           # imm = 0xFF63
je 0x483a
cmpq $0xff9e, %r12           # imm = 0xFF9E
jne 0x4aec
movq %r15, %rdi
callq 0x3b21
jmp 0x4aec
leaq 0x7e72(%rip), %rdx      # 0xc6c0
cmpq (%rdx), %rcx
jne 0x4910
movq 0x38(%rsp), %rcx
movl %ecx, %edx
andl $0x3000, %edx           # imm = 0x3000
cmpl $0x2000, %edx           # imm = 0x2000
jne 0x4aec
movl %ecx, %edi
shrl $0x8, %edi
andl $0xf, %edi
movzbl %cl, %ecx
movl 0x40(%rsp), %edx
movl 0x48(%rsp), %esi
movl %edx, 0xc0(%rsp)
movl %esi, 0xc4(%rsp)
movl 0x50(%rsp), %edx
movl %edx, 0xc8(%rsp)
movl 0x58(%rsp), %edx
movl %edx, 0xcc(%rsp)
jmp 0x494c
movl 0x58(%r13), %esi
jmp 0x44a6
movl 0x40(%r13), %esi
cmpl $0x6, %esi
ja 0x44ae
incl %esi
jmp 0x44a6
xorl %esi, %esi
cmpl $0x0, 0x68(%r13)
sete %sil
movq %r13, %rdi
callq 0x7fae
jmp 0x44ae
movl 0x40(%r13), %esi
testl %esi, %esi
je 0x44ae
decl %esi
jmp 0x44a6
cmpq $0x3d, %r12
jne 0x4aec
movq %r15, %rdi
movl $0x2, %esi
movl $0x2, %edx
jmp 0x49f2
leaq 0x7db1(%rip), %rdx      # 0xc6c8
cmpq (%rdx), %rcx
jne 0x4ba9
cmpq $0x2, 0x38(%rsp)
jne 0x4aec
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 0x4c79
jmp 0x4aec
movl 0x34(%r15), %eax
movl %eax, 0x24(%r15)
jmp 0x4a65
leaq 0x7a68(%rip), %rcx      # 0xc3d8
movl (%rcx), %ecx
testl %ecx, 0x50(%rsp)
je 0x4bca
movl 0x50(%r15), %ecx
testl %ecx, %ecx
je 0x4992
movl 0x2c(%r15), %edx
addl %eax, %edx
cmpl %ecx, %edx
jg 0x4a69
addl %eax, 0x2c(%r15)
jmp 0x4a69
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 0x4a69
cmpl $-0x1, 0x74(%r15)
je 0x4bd4
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
jmp 0x4bdb
movq %r15, %rdi
movl $0x2, %esi
movl $0x3, %edx
callq 0x7c99
jmp 0x4aec
movl 0x54(%rsp), %esi
movq %r15, %rdi
callq 0x741f
jmp 0x4aec
leaq 0x79c4(%rip), %rcx      # 0xc3d8
movl (%rcx), %ecx
testl %ecx, 0x50(%rsp)
je 0x4be5
movl 0x2c(%r15), %ecx
subl %eax, %ecx
cmpl 0x48(%r15), %ecx
jl 0x4a69
movl %ecx, 0x2c(%r15)
jmp 0x4a69
movq (%r14), %rax
movq 0xe8(%rax), %rax
movq 0x10(%r15), %rcx
movslq (%rcx), %rcx
shlq $0x7, %rcx
movl 0x18(%rax,%rcx), %edx
movl 0x34(%r15), %esi
movl 0x2c(%r15), %edi
addl %esi, %edi
subl %edi, %edx
movl %edx, 0x24(%r15)
movl 0x1c(%rax,%rcx), %eax
addl 0x30(%r15), %esi
subl %esi, %eax
movl %eax, 0x28(%r15)
movl 0x24(%r15), %ecx
movl 0x34(%r15), %eax
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
cmpl %eax, %edx
jne 0x4a8b
cmpl $0x0, 0x40(%r15)
je 0x4a8b
movl $0x0, 0x24(%r15)
movl 0x28(%r15), %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
cmpl %eax, %edx
jne 0x4aa9
cmpl $0x0, 0x44(%r15)
je 0x4aa9
movl $0x0, 0x28(%r15)
movq %r15, %rdi
callq 0x73c5
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 0x66d9
cmpl $0x0, (%rbp)
je 0x4b1c
movl $0x0, (%rbp)
leaq 0x7c98(%rip), %rax      # 0xc798
movq (%rax), %r15
testq %r15, %r15
je 0x4b1c
movq 0x8(%r15), %rdi
movq (%r15), %r15
cmpl $0x0, 0x7c(%rdi)
je 0x4b03
callq 0x3da2
jmp 0x4b03
leaq 0x7cb5(%rip), %rax      # 0xc7d8
cmpl $0x0, (%rax)
je 0x4149
jmp 0x4121
leaq 0x78a0(%rip), %rax      # 0xc3d8
movl (%rax), %eax
testl %eax, 0x50(%rsp)
je 0x4bef
movl 0x54(%r15), %eax
testl %eax, %eax
je 0x4b5a
movl 0x30(%r15), %edx
addl %ecx, %edx
cmpl %eax, %edx
jg 0x4a69
addl %ecx, 0x30(%r15)
jmp 0x4a69
leaq 0x786e(%rip), %rax      # 0xc3d8
movl (%rax), %eax
testl %eax, 0x50(%rsp)
je 0x4bf9
movl 0x30(%r15), %eax
subl %ecx, %eax
cmpl 0x4c(%r15), %eax
jl 0x4a69
movl %eax, 0x30(%r15)
jmp 0x4a69
leaq 0x7842(%rip), %rax      # 0xc3d8
movl (%rax), %esi
andl 0x50(%rsp), %esi
movq %r15, %rdi
callq 0x3f1e
jmp 0x4aec
leaq 0x7b30(%rip), %rdx      # 0xc6e0
cmpq (%rdx), %rcx
jne 0x4c03
cmpq $0x2, 0x40(%rsp)
jne 0x4aec
movl 0x38(%rsp), %esi
movq %rax, %rdi
jmp 0x4bdb
addl $0x10, 0x24(%r15)
jmp 0x4a69
movl 0x40(%r13), %esi
movq %r15, %rdi
callq 0x3d5a
jmp 0x4aec
addl $-0x10, 0x24(%r15)
jmp 0x4a69
addl $0x10, 0x28(%r15)
jmp 0x4a69
addl $-0x10, 0x28(%r15)
jmp 0x4a69
leaq 0x7af6(%rip), %rdx      # 0xc700
cmpq (%rdx), %rcx
jne 0x4aec
leaq 0x7aee(%rip), %rcx      # 0xc708
movq (%rcx), %rcx
leaq 0x7aec(%rip), %rdx      # 0xc710
movq (%rdx), %rsi
leaq 0x7aea(%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 0x4c4b
orl $0x2, %edx
jmp 0x4c5c
cmpq %rsi, %r9
jne 0x4c55
orl $0x1, %edx
jmp 0x4c5c
cmpq %rdi, %r9
cmovel %r10d, %edx
incq %r8
cmpq $0x2, %r8
jne 0x4c3c
testl %edx, %edx
je 0x4aec
movl 0x38(%rsp), %esi
movq %rax, %rdi
jmp 0x49f2