	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BindArrowKeys                  ## -- Begin function BindArrowKeys
	.p2align	4, 0x90
_BindArrowKeys:                         ## @BindArrowKeys
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GotTermCaps@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.1:
	movq	_VImode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_CcAltMap@GOTPCREL(%rip), %rax
	cmoveq	_CcKeyMap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_CcViCmdMap@GOTPCREL(%rip), %rax
	cmoveq	_CcEmacsMap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_DefaultArrowKeys
	movq	_A_K_NKEYS@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_19
## %bb.2:
	movl	$16, %r12d
	xorl	%r14d, %r14d
	movq	_tstr@GOTPCREL(%rip), %rsi
	movq	_arrow@GOTPCREL(%rip), %rdi
	leaq	-56(%rbp), %r8
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ClearXkey
	movq	%r13, %r8
	movq	_arrow@GOTPCREL(%rip), %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_A_K_NKEYS@GOTPCREL(%rip), %rdx
	movq	_tstr@GOTPCREL(%rip), %rsi
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%rdx), %rax
	addq	$24, %r12
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	movq	(%rdi), %rcx
	movq	-16(%rcx,%r12), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %r15d
	testq	%r15, %r15
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %r13
	movq	%rbx, %rdi
	callq	_str2short
	movl	%eax, -56(%rbp)
	movl	%eax, %edi
	callq	_Strlen
	movq	_arrow@GOTPCREL(%rip), %rdi
	movl	%eax, -52(%rbp)
	movq	(%rdi), %rsi
	movq	-8(%rsi,%r12), %rdx
	movq	_XK_NOD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, 1(%rbx)
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r15,8), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx,%r15,8)
	movq	%r13, %r8
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_F_XKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %rsi
	movq	%r8, %rdi
	callq	_AddXkey
	movq	%r13, %r8
	movq	_arrow@GOTPCREL(%rip), %rdi
	movq	_F_XKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx,%r15,8)
	jmp	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movq	%r13, %r8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_F_UNASSIGNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_A_K_NKEYS@GOTPCREL(%rip), %rdx
	movq	_tstr@GOTPCREL(%rip), %rsi
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r8, %rsi
	movq	%r8, %r13
	callq	_ClearXkey
	movq	_arrow@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rsi
	movq	-8(%rsi,%r12), %rdx
	movq	_XK_CMD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi,%r12), %rax
	movq	%rax, (%rbx,%r15,8)
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_AddXkey
	movq	_arrow@GOTPCREL(%rip), %rdi
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_A_K_NKEYS@GOTPCREL(%rip), %rdx
	movq	_tstr@GOTPCREL(%rip), %rsi
	movq	%r13, %r8
	jmp	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GotTermCaps,4,2                ## @GotTermCaps
	.comm	_VImode,8,3                     ## @VImode
	.comm	_CcAltMap,8,3                   ## @CcAltMap
	.comm	_CcKeyMap,8,3                   ## @CcKeyMap
	.comm	_CcViCmdMap,8,3                 ## @CcViCmdMap
	.comm	_CcEmacsMap,8,3                 ## @CcEmacsMap
	.comm	_A_K_NKEYS,4,2                  ## @A_K_NKEYS
	.comm	_tstr,8,3                       ## @tstr
	.comm	_arrow,8,3                      ## @arrow
	.comm	_XK_NOD,8,3                     ## @XK_NOD
	.comm	_F_XKEY,8,3                     ## @F_XKEY
	.comm	_F_UNASSIGNED,8,3               ## @F_UNASSIGNED
	.comm	_XK_CMD,8,3                     ## @XK_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BindArrowKeys                  ; -- Begin function BindArrowKeys
	.p2align	2
_BindArrowKeys:                         ; @BindArrowKeys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _GotTermCaps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GotTermCaps@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.1:
Lloh3:
	adrp	x8, _VImode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VImode@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CcAltMap@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CcAltMap@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x10, _CcKeyMap@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CcKeyMap@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x19, [x8]
Lloh10:
	adrp	x8, _CcViCmdMap@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CcViCmdMap@GOTPAGEOFF]
Lloh12:
	adrp	x9, _CcEmacsMap@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CcEmacsMap@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	x21, [x8]
	bl	_DefaultArrowKeys
Lloh14:
	adrp	x22, _A_K_NKEYS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _A_K_NKEYS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh16:
	adrp	x25, _tstr@GOTPAGE
Lloh17:
	ldr	x25, [x25, _tstr@GOTPAGEOFF]
Lloh18:
	adrp	x26, _arrow@GOTPAGE
Lloh19:
	ldr	x26, [x26, _arrow@GOTPAGEOFF]
Lloh20:
	adrp	x27, _XK_NOD@GOTPAGE
Lloh21:
	ldr	x27, [x27, _XK_NOD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_ClearXkey
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	ldr	x9, [x9, x23]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w28, [x20]
	cbz	x28, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_str2short
	str	w0, [sp, #8]
	bl	_Strlen
	str	w0, [sp, #12]
	ldr	x8, [x26]
	add	x9, x8, x23
	ldr	x2, [x9, #8]
	ldr	x9, [x27]
	cmp	x2, x9
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x20, #1]
	cbz	w9, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x9, x28, #3
	ldr	x10, [x21, x9]
	ldr	x9, [x19, x9]
Lloh22:
	adrp	x11, _F_XKEY@GOTPAGE
Lloh23:
	ldr	x11, [x11, _F_XKEY@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x10, x9
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x23
	add	x1, x8, #16
	add	x0, sp, #8
	bl	_AddXkey
Lloh25:
	adrp	x8, _F_XKEY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _F_XKEY@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, x28, lsl #3]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, x28, lsl #3]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x8, _F_UNASSIGNED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _F_UNASSIGNED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_ClearXkey
	ldr	x8, [x26]
	add	x8, x8, x23
	ldr	x2, [x8, #8]
Lloh31:
	adrp	x9, _XK_CMD@GOTPAGE
Lloh32:
	ldr	x9, [x9, _XK_CMD@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #16]
	str	x8, [x19, x28, lsl #3]
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x8, #16
	add	x0, sp, #8
	bl	_AddXkey
	b	LBB0_4
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GotTermCaps,4,2                ; @GotTermCaps
	.comm	_VImode,8,3                     ; @VImode
	.comm	_CcAltMap,8,3                   ; @CcAltMap
	.comm	_CcKeyMap,8,3                   ; @CcKeyMap
	.comm	_CcViCmdMap,8,3                 ; @CcViCmdMap
	.comm	_CcEmacsMap,8,3                 ; @CcEmacsMap
	.comm	_A_K_NKEYS,4,2                  ; @A_K_NKEYS
	.comm	_tstr,8,3                       ; @tstr
	.comm	_arrow,8,3                      ; @arrow
	.comm	_XK_NOD,8,3                     ; @XK_NOD
	.comm	_F_XKEY,8,3                     ; @F_XKEY
	.comm	_F_UNASSIGNED,8,3               ; @F_UNASSIGNED
	.comm	_XK_CMD,8,3                     ; @XK_CMD
.subsections_via_symbols
