	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_arrows
_fix_arrows:                            ## @fix_arrows
	.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	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	callq	_getparyx
	movq	(%rbx), %rdi
	callq	_getmaxx
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_getmaxy
	movq	8(%rbx), %rax
	movq	_MOUSE_D@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.3:
	movq	_KEY_PREVIOUS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_KEY_PPAGE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_mouse_mkbutton
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.6:
	movq	_KEY_NEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_KEY_NPAGE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mouse_mkbutton                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MOUSE_D,8,3                    ## @MOUSE_D
	.comm	_KEY_PREVIOUS,4,2               ## @KEY_PREVIOUS
	.comm	_KEY_PPAGE,4,2                  ## @KEY_PPAGE
	.comm	_KEY_NEXT,4,2                   ## @KEY_NEXT
	.comm	_KEY_NPAGE,4,2                  ## @KEY_NPAGE
	.no_dead_strip	_fix_arrows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_arrows
_fix_arrows:                            ; @fix_arrows
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_getparyx
	ldr	x0, [x19]
	bl	_getmaxx
	mov	x20, x0
	ldr	x0, [x19]
	bl	_getmaxy
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x21, _MOUSE_D@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MOUSE_D@GOTPAGEOFF]
Lloh2:
	adrp	x9, _KEY_PREVIOUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KEY_PREVIOUS@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh4:
	adrp	x11, _KEY_PPAGE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _KEY_PPAGE@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w3, [x8]
	mov	x2, x20
	bl	_mouse_mkbutton
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _KEY_NEXT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KEY_NEXT@GOTPAGEOFF]
Lloh8:
	adrp	x10, _KEY_NPAGE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KEY_NPAGE@GOTPAGEOFF]
	ldr	x11, [x21]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mouse_mkbutton
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MOUSE_D,8,3                    ; @MOUSE_D
	.comm	_KEY_PREVIOUS,4,2               ; @KEY_PREVIOUS
	.comm	_KEY_PPAGE,4,2                  ; @KEY_PPAGE
	.comm	_KEY_NEXT,4,2                   ; @KEY_NEXT
	.comm	_KEY_NPAGE,4,2                  ; @KEY_NPAGE
	.no_dead_strip	_fix_arrows
.subsections_via_symbols
