	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UPDOWN_KeyPressed
_UPDOWN_KeyPressed:                     ## @UPDOWN_KeyPressed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_VK_UP@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_FLAG_INCR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VK_DOWN@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	cmpl	%esi, (%rax)
	jne	LBB0_8
## %bb.3:
	movq	_FLAG_DECR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_UPDOWN_GetBuddyInt
	movq	_FLAG_ARROW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_FLAG_PRESSED@GOTPCREL(%rip), %rcx
	orl	%r14d, %eax
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	24(%rbx), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_InvalidateRect
	movl	24(%rbx), %edi
	movq	_TIMER_AUTOPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUTOPRESS_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_SetTimer
	movl	$1, %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %esi
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_UPDOWN_DoAction
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_UP,4,2                      ## @VK_UP
	.comm	_FLAG_INCR,4,2                  ## @FLAG_INCR
	.comm	_VK_DOWN,4,2                    ## @VK_DOWN
	.comm	_FLAG_DECR,4,2                  ## @FLAG_DECR
	.comm	_FLAG_ARROW,4,2                 ## @FLAG_ARROW
	.comm	_FLAG_PRESSED,4,2               ## @FLAG_PRESSED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TIMER_AUTOPRESS,4,2            ## @TIMER_AUTOPRESS
	.comm	_AUTOPRESS_DELAY,4,2            ## @AUTOPRESS_DELAY
	.no_dead_strip	_UPDOWN_KeyPressed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UPDOWN_KeyPressed
_UPDOWN_KeyPressed:                     ; @UPDOWN_KeyPressed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _VK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FLAG_INCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAG_INCR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _VK_DOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VK_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _FLAG_DECR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLAG_DECR@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_UPDOWN_GetBuddyInt
Lloh10:
	adrp	x8, _FLAG_ARROW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLAG_ARROW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh13:
	adrp	x9, _FLAG_PRESSED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FLAG_PRESSED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #24]
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x8, _TIMER_AUTOPRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIMER_AUTOPRESS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _AUTOPRESS_DELAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AUTOPRESS_DELAY@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_SetTimer
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x8]
	b	LBB0_8
LBB0_7:
	mov	w1, #1
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_UPDOWN_DoAction
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_UP,4,2                      ; @VK_UP
	.comm	_FLAG_INCR,4,2                  ; @FLAG_INCR
	.comm	_VK_DOWN,4,2                    ; @VK_DOWN
	.comm	_FLAG_DECR,4,2                  ; @FLAG_DECR
	.comm	_FLAG_ARROW,4,2                 ; @FLAG_ARROW
	.comm	_FLAG_PRESSED,4,2               ; @FLAG_PRESSED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TIMER_AUTOPRESS,4,2            ; @TIMER_AUTOPRESS
	.comm	_AUTOPRESS_DELAY,4,2            ; @AUTOPRESS_DELAY
	.no_dead_strip	_UPDOWN_KeyPressed
.subsections_via_symbols
