	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HandleEvents
_HandleEvents:                          ## @HandleEvents
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dpy@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_59
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	-96(%rbp), %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##     Child Loop BB0_13 Depth 2
	movq	_qtrue@GOTPCREL(%rip), %r15
	jmp	LBB0_3
LBB0_40:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$-1, %edx
LBB0_41:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MOUSE1@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r15), %ecx
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %edi
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
	movq	_cls@GOTPCREL(%rip), %r13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14), %edi
	callq	_XPending
	testq	%rax, %rax
	je	LBB0_57
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=3
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_XNextEvent
	movl	-96(%rbp), %eax
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=3
	movl	-72(%rbp), %edi
	callq	_Sys_XTimeToSysTime
	movl	%eax, %ebx
	cmpl	$0, (%r13)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=3
	movq	%r12, %rdi
	callq	_repeated_press
	cmpl	(%r15), %eax
	je	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_XLateKey
	movq	_SE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %edi
	callq	_Sys_XTimeToSysTime
	movq	_mouse_active@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_in_dgamouse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-68(%rbp), %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	cmpl	$2, %ecx
	setae	%cl
	shll	%cl, %edx
	movl	-64(%rbp), %ebx
	movq	_mx@GOTPCREL(%rip), %rsi
	addl	(%rsi), %edx
	movl	%ebx, %ecx
	negl	%ecx
	cmovsl	%ebx, %ecx
	cmpl	$2, %ecx
	setae	%cl
	shll	%cl, %ebx
	movl	%edx, (%rsi)
	movq	_my@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movl	%ebx, (%rcx)
	movl	%eax, %ecx
	movq	_mouseResetTime@GOTPCREL(%rip), %rsi
	subl	(%rsi), %ecx
	movq	_MOUSE_RESET_DELAY@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jle	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_MOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_my@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_mx@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %edi
	callq	_Sys_XTimeToSysTime
	movl	%eax, %r13d
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_XLateKey
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	%r13d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movb	(%rbx), %al
	testb	%al, %al
	jne	LBB0_12
	jmp	LBB0_3
LBB0_54:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %ecx
	jmp	LBB0_55
LBB0_56:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-92(%rbp), %eax
	movl	-88(%rbp), %ecx
LBB0_55:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_win_x@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_win_y@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_42:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %edi
	callq	_Sys_XTimeToSysTime
	movl	-76(%rbp), %ecx
	decl	%ecx
	cmpl	$6, %ecx
	ja	LBB0_52
## %bb.43:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%edx, %edx
	leaq	LJTI0_1(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_48:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$2, %edx
	jmp	LBB0_53
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-72(%rbp), %edi
	callq	_Sys_XTimeToSysTime
	movl	-76(%rbp), %ecx
	decl	%ecx
	cmpl	$6, %ecx
	ja	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%edx, %edx
	leaq	LJTI0_2(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$2, %edx
	jmp	LBB0_41
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movq	_glConfig@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	cmpl	%edi, %esi
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	4(%rbx), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	cmpl	%edi, %edx
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_mwx@GOTPCREL(%rip), %rcx
	movl	%esi, (%rcx)
	movq	_mwy@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movl	%eax, %ecx
	movq	_mouseResetTime@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movq	_MOUSE_RESET_DELAY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_MOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_mx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_my@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	jmp	LBB0_21
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%esi, %eax
	movq	_mwx@GOTPCREL(%rip), %r8
	subl	(%r8), %eax
	movl	%edx, %edi
	movq	_mwy@GOTPCREL(%rip), %rbx
	subl	(%rbx), %edi
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	$2, %ecx
	setae	%cl
	shll	%cl, %eax
	movq	_mx@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	%edi, %eax
	negl	%eax
	cmovsl	%edi, %eax
	cmpl	$2, %eax
	setae	%cl
	shll	%cl, %edi
	movq	_my@GOTPCREL(%rip), %rax
	addl	%edi, (%rax)
	movl	%esi, (%r8)
	movl	%edx, (%rbx)
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_52:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$-1, %edx
	jmp	LBB0_53
LBB0_49:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edx
	jmp	LBB0_53
LBB0_44:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MWHEELUP@GOTPCREL(%rip), %rcx
	jmp	LBB0_45
LBB0_47:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MWHEELDOWN@GOTPCREL(%rip), %rcx
LBB0_45:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%rcx), %edx
	jmp	LBB0_46
LBB0_50:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$3, %edx
	jmp	LBB0_53
LBB0_51:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$4, %edx
LBB0_53:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MOUSE1@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
LBB0_46:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_33
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edx
	jmp	LBB0_41
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MWHEELUP@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_K_MWHEELDOWN@GOTPCREL(%rip), %rcx
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%rcx), %edx
	jmp	LBB0_32
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$3, %edx
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$4, %edx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_SE_CHAR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	movsbl	%al, %edx
	movl	%r13d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_2
LBB0_57:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_59
## %bb.58:
	movl	(%r14), %edi
	movq	_None@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_win@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	subq	$8, %rsp
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	$0
	callq	_XWarpPointer
	addq	$32, %rsp
LBB0_59:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_54
	.long	L0_0_set_56
	.long	L0_0_set_42
	.long	L0_0_set_28
.set L0_1_set_53, LBB0_53-LJTI0_1
.set L0_1_set_48, LBB0_48-LJTI0_1
.set L0_1_set_49, LBB0_49-LJTI0_1
.set L0_1_set_44, LBB0_44-LJTI0_1
.set L0_1_set_47, LBB0_47-LJTI0_1
.set L0_1_set_50, LBB0_50-LJTI0_1
.set L0_1_set_51, LBB0_51-LJTI0_1
LJTI0_1:
	.long	L0_1_set_53
	.long	L0_1_set_48
	.long	L0_1_set_49
	.long	L0_1_set_44
	.long	L0_1_set_47
	.long	L0_1_set_50
	.long	L0_1_set_51
.set L0_2_set_41, LBB0_41-LJTI0_2
.set L0_2_set_36, LBB0_36-LJTI0_2
.set L0_2_set_37, LBB0_37-LJTI0_2
.set L0_2_set_30, LBB0_30-LJTI0_2
.set L0_2_set_35, LBB0_35-LJTI0_2
.set L0_2_set_38, LBB0_38-LJTI0_2
.set L0_2_set_39, LBB0_39-LJTI0_2
LJTI0_2:
	.long	L0_2_set_41
	.long	L0_2_set_36
	.long	L0_2_set_37
	.long	L0_2_set_30
	.long	L0_2_set_35
	.long	L0_2_set_38
	.long	L0_2_set_39
	.end_data_region
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_dpy,4,2                        ## @dpy
	.comm	_SE_KEY,4,2                     ## @SE_KEY
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_SE_CHAR,4,2                    ## @SE_CHAR
	.comm	_cls,4,2                        ## @cls
	.comm	_mouse_active,4,2               ## @mouse_active
	.comm	_in_dgamouse,8,3                ## @in_dgamouse
	.comm	_mx,4,2                         ## @mx
	.comm	_my,4,2                         ## @my
	.comm	_mouseResetTime,4,2             ## @mouseResetTime
	.comm	_MOUSE_RESET_DELAY,4,2          ## @MOUSE_RESET_DELAY
	.comm	_SE_MOUSE,4,2                   ## @SE_MOUSE
	.comm	_glConfig,8,2                   ## @glConfig
	.comm	_mwx,4,2                        ## @mwx
	.comm	_mwy,4,2                        ## @mwy
	.comm	_K_MWHEELUP,4,2                 ## @K_MWHEELUP
	.comm	_K_MWHEELDOWN,4,2               ## @K_MWHEELDOWN
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_win_x,4,2                      ## @win_x
	.comm	_win_y,4,2                      ## @win_y
	.comm	_None,4,2                       ## @None
	.comm	_win,4,2                        ## @win
	.no_dead_strip	_HandleEvents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HandleEvents
_HandleEvents:                          ; @HandleEvents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x22, _dpy@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dpy@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_56
; %bb.1:
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	add	x8, sp, #16
Lloh5:
	adrp	x25, _cls@GOTPAGE
Lloh6:
	ldr	x25, [x25, _cls@GOTPAGEOFF]
Lloh7:
	adrp	x26, _qtrue@GOTPAGE
Lloh8:
	ldr	x26, [x26, _qtrue@GOTPAGEOFF]
Lloh9:
	adrp	x27, _SE_KEY@GOTPAGE
Lloh10:
	ldr	x27, [x27, _SE_KEY@GOTPAGEOFF]
Lloh11:
	adrp	x28, lJTI0_0@PAGE
Lloh12:
	add	x28, x28, lJTI0_0@PAGEOFF
	add	x19, x8, #24
	movi.2s	v8, #1
Lloh13:
	adrp	x23, _SE_CHAR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SE_CHAR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #60
	mov	x0, x19
	bl	_XLateKey
	ldr	w1, [x27]
	ldr	w2, [sp, #60]
Lloh15:
	adrp	x8, _qfalse@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	w0, [x22]
	bl	_XPending
	cbz	x0, LBB0_54
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	add	x1, sp, #16
	bl	_XNextEvent
	ldr	w8, [sp, #16]
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #40]
	bl	_Sys_XTimeToSysTime
	mov	x20, x0
	ldr	w8, [x25]
	cbnz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_repeated_press
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_4
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #40]
	bl	_Sys_XTimeToSysTime
Lloh18:
	adrp	x8, _mouse_active@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mouse_active@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _in_dgamouse@GOTPAGE
Lloh22:
	ldr	x8, [x8, _in_dgamouse@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_31
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	d0, [sp, #44]
	abs.2s	v1, v0
	cmhi.2s	v1, v1, v8
	mov.s	w8, v1[1]
	fmov	w9, s1
	mov.s	w10, v0[1]
	fmov	w11, s0
	and	x9, x9, #0x1
	lsl	w9, w11, w9
Lloh24:
	adrp	x12, _mx@GOTPAGE
Lloh25:
	ldr	x12, [x12, _mx@GOTPAGEOFF]
	ldr	w11, [x12]
	add	w2, w11, w9
	str	w2, [x12]
	and	x8, x8, #0x1
	lsl	w8, w10, w8
Lloh26:
	adrp	x10, _my@GOTPAGE
Lloh27:
	ldr	x10, [x10, _my@GOTPAGEOFF]
	ldr	w9, [x10]
	add	w3, w9, w8
	str	w3, [x10]
Lloh28:
	adrp	x8, _mouseResetTime@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mouseResetTime@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MOUSE_RESET_DELAY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MOUSE_RESET_DELAY@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x8, _SE_MOUSE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SE_MOUSE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh37:
	adrp	x8, _my@GOTPAGE
Lloh38:
	ldr	x8, [x8, _my@GOTPAGEOFF]
Lloh39:
	str	wzr, [x8]
Lloh40:
	adrp	x8, _mx@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mx@GOTPAGEOFF]
Lloh42:
	str	wzr, [x8]
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #40]
	bl	_Sys_XTimeToSysTime
	mov	x20, x0
	add	x1, sp, #60
	mov	x0, x19
	bl	_XLateKey
	mov	x21, x0
	ldr	w2, [sp, #60]
	cbz	w2, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x23]
	sxtb	w2, w8
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_21
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [sp, #28]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [sp, #20]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh43:
	adrp	x10, _win_x@GOTPAGE
Lloh44:
	ldr	x10, [x10, _win_x@GOTPAGEOFF]
Lloh45:
	str	w8, [x10]
Lloh46:
	adrp	x8, _win_y@GOTPAGE
Lloh47:
	ldr	x8, [x8, _win_y@GOTPAGEOFF]
Lloh48:
	str	w9, [x8]
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #40]
	bl	_Sys_XTimeToSysTime
	ldr	w8, [sp, #36]
	sub	w9, w8, #1
	cmp	w9, #6
	b.hi	LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
Lloh49:
	adrp	x12, lJTI0_1@PAGE
Lloh50:
	add	x12, x12, lJTI0_1@PAGEOFF
	adr	x10, LBB0_27
	ldrb	w11, [x12, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #2
	b	LBB0_43
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #40]
	bl	_Sys_XTimeToSysTime
	ldr	w8, [sp, #36]
	sub	w9, w8, #1
	cmp	w9, #6
	b.hi	LBB0_45
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
Lloh51:
	adrp	x12, lJTI0_2@PAGE
Lloh52:
	add	x12, x12, lJTI0_2@PAGEOFF
	adr	x10, LBB0_30
	ldrb	w11, [x12, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #2
	b	LBB0_52
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh53:
	adrp	x11, _glConfig@GOTPAGE
Lloh54:
	ldr	x11, [x11, _glConfig@GOTPAGEOFF]
	ldr	w8, [x11]
	cmp	w8, #0
	cinc	w10, w8, lt
	ldp	w9, w8, [sp, #52]
	cmp	w9, w10, asr #1
	b.ne	LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x11, #4]
	cmp	w10, #0
	cinc	w10, w10, lt
	cmp	w8, w10, asr #1
	b.ne	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh55:
	adrp	x10, _mwx@GOTPAGE
Lloh56:
	ldr	x10, [x10, _mwx@GOTPAGEOFF]
Lloh57:
	str	w9, [x10]
Lloh58:
	adrp	x9, _mwy@GOTPAGE
Lloh59:
	ldr	x9, [x9, _mwy@GOTPAGEOFF]
Lloh60:
	str	w8, [x9]
Lloh61:
	adrp	x8, _mouseResetTime@GOTPAGE
Lloh62:
	ldr	x8, [x8, _mouseResetTime@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _MOUSE_RESET_DELAY@GOTPAGE
Lloh65:
	ldr	x9, [x9, _MOUSE_RESET_DELAY@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.le	LBB0_15
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh67:
	adrp	x8, _SE_MOUSE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SE_MOUSE@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
Lloh70:
	adrp	x8, _mx@GOTPAGE
Lloh71:
	ldr	x8, [x8, _mx@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
Lloh73:
	adrp	x8, _my@GOTPAGE
Lloh74:
	ldr	x8, [x8, _my@GOTPAGEOFF]
Lloh75:
	ldr	w3, [x8]
	b	LBB0_14
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh76:
	adrp	x13, _mwx@GOTPAGE
Lloh77:
	ldr	x13, [x13, _mwx@GOTPAGEOFF]
	ldr	w10, [x13]
	subs	w10, w9, w10
Lloh78:
	adrp	x14, _mwy@GOTPAGE
Lloh79:
	ldr	x14, [x14, _mwy@GOTPAGEOFF]
	ldr	w11, [x14]
	sub	w11, w8, w11
	cneg	w12, w10, mi
	cmp	w12, #1
	cset	w12, hi
	lsl	w10, w10, w12
Lloh80:
	adrp	x15, _mx@GOTPAGE
Lloh81:
	ldr	x15, [x15, _mx@GOTPAGEOFF]
	ldr	w12, [x15]
	add	w10, w12, w10
	str	w10, [x15]
	cmp	w11, #0
	cneg	w10, w11, mi
	cmp	w10, #1
	cset	w10, hi
	lsl	w10, w11, w10
Lloh82:
	adrp	x12, _my@GOTPAGE
Lloh83:
	ldr	x12, [x12, _my@GOTPAGEOFF]
	ldr	w11, [x12]
	add	w10, w11, w10
	str	w10, [x12]
	str	w9, [x13]
	str	w8, [x14]
	ldr	w24, [x26]
	b	LBB0_4
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #-1
	b	LBB0_43
LBB0_37:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	b	LBB0_43
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh84:
	adrp	x8, _K_MWHEELUP@GOTPAGE
Lloh85:
	ldr	x8, [x8, _K_MWHEELUP@GOTPAGEOFF]
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh86:
	adrp	x8, _K_MWHEELDOWN@GOTPAGE
Lloh87:
	ldr	x8, [x8, _K_MWHEELDOWN@GOTPAGEOFF]
LBB0_40:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x8]
	b	LBB0_44
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #3
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #4
LBB0_43:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh88:
	adrp	x9, _K_MOUSE1@GOTPAGE
Lloh89:
	ldr	x9, [x9, _K_MOUSE1@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	add	w2, w9, w8
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh91:
	adrp	x8, _qfalse@GOTPAGE
Lloh92:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh93:
	ldr	w3, [x8]
	b	LBB0_3
LBB0_45:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #-1
	b	LBB0_52
LBB0_46:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	b	LBB0_52
LBB0_47:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh94:
	adrp	x8, _K_MWHEELUP@GOTPAGE
Lloh95:
	ldr	x8, [x8, _K_MWHEELUP@GOTPAGEOFF]
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh96:
	adrp	x8, _K_MWHEELDOWN@GOTPAGE
Lloh97:
	ldr	x8, [x8, _K_MWHEELDOWN@GOTPAGEOFF]
LBB0_49:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x8]
	b	LBB0_53
LBB0_50:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #3
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #4
LBB0_52:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh98:
	adrp	x9, _K_MOUSE1@GOTPAGE
Lloh99:
	ldr	x9, [x9, _K_MOUSE1@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	add	w2, w9, w8
LBB0_53:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x26]
	b	LBB0_3
LBB0_54:
	cbz	w24, LBB0_56
; %bb.55:
	ldr	w0, [x22]
Lloh101:
	adrp	x8, _None@GOTPAGE
Lloh102:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
Lloh104:
	adrp	x8, _win@GOTPAGE
Lloh105:
	ldr	x8, [x8, _win@GOTPAGEOFF]
Lloh106:
	ldr	w2, [x8]
Lloh107:
	adrp	x9, _glConfig@GOTPAGE
Lloh108:
	ldr	x9, [x9, _glConfig@GOTPAGEOFF]
	ldp	w8, w9, [x9]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w7, w8, #1
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	str	w8, [sp]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_XWarpPointer
LBB0_56:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotStr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotStr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_25-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_43-LBB0_27)>>2
	.byte	(LBB0_27-LBB0_27)>>2
	.byte	(LBB0_37-LBB0_27)>>2
	.byte	(LBB0_38-LBB0_27)>>2
	.byte	(LBB0_39-LBB0_27)>>2
	.byte	(LBB0_41-LBB0_27)>>2
	.byte	(LBB0_42-LBB0_27)>>2
lJTI0_2:
	.byte	(LBB0_52-LBB0_30)>>2
	.byte	(LBB0_30-LBB0_30)>>2
	.byte	(LBB0_46-LBB0_30)>>2
	.byte	(LBB0_47-LBB0_30)>>2
	.byte	(LBB0_48-LBB0_30)>>2
	.byte	(LBB0_50-LBB0_30)>>2
	.byte	(LBB0_51-LBB0_30)>>2
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_dpy,4,2                        ; @dpy
	.comm	_SE_KEY,4,2                     ; @SE_KEY
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_SE_CHAR,4,2                    ; @SE_CHAR
	.comm	_cls,4,2                        ; @cls
	.comm	_mouse_active,4,2               ; @mouse_active
	.comm	_in_dgamouse,8,3                ; @in_dgamouse
	.comm	_mx,4,2                         ; @mx
	.comm	_my,4,2                         ; @my
	.comm	_mouseResetTime,4,2             ; @mouseResetTime
	.comm	_MOUSE_RESET_DELAY,4,2          ; @MOUSE_RESET_DELAY
	.comm	_SE_MOUSE,4,2                   ; @SE_MOUSE
	.comm	_glConfig,8,2                   ; @glConfig
	.comm	_mwx,4,2                        ; @mwx
	.comm	_mwy,4,2                        ; @mwy
	.comm	_K_MWHEELUP,4,2                 ; @K_MWHEELUP
	.comm	_K_MWHEELDOWN,4,2               ; @K_MWHEELDOWN
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_win_x,4,2                      ; @win_x
	.comm	_win_y,4,2                      ; @win_y
	.comm	_None,4,2                       ; @None
	.comm	_win,4,2                        ; @win
	.no_dead_strip	_HandleEvents
.subsections_via_symbols
