	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___direction_stack_cb           ## -- Begin function __direction_stack_cb
	.p2align	4, 0x90
___direction_stack_cb:                  ## @__direction_stack_cb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	callq	___get_cur_panel
	movq	%rax, %r14
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get_i
	testl	%eax, %eax
	movl	$16, %r12d
	cmovgl	%eax, %r12d
	movq	8(%r14), %rax
	movl	$1, (%rax)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	(%r15), %ebx
	leaq	L_.str.1(%rip), %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_r_config_get_i
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_r_config_set_i
	movq	(%r14), %rax
	subl	%r12d, (%rax)
	jmp	LBB0_12
LBB0_3:
	movq	8(%r15), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___cursor_right                 ## TAILCALL
LBB0_5:
	movq	8(%r15), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___cursor_left                  ## TAILCALL
LBB0_7:
	movl	(%r15), %ebx
	leaq	L_.str.1(%rip), %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_r_config_get_i
	subl	%r12d, %eax
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_r_config_set_i
	movq	(%r14), %rax
	addl	%r12d, (%rax)
	jmp	LBB0_12
LBB0_8:
	incl	4(%rax)
	jmp	LBB0_11
LBB0_9:
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.10:
	decl	%ecx
	movl	%ecx, 4(%rax)
LBB0_11:
	movl	$1, (%rax)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hex.cols"

L_.str.1:                               ## @.str.1
	.asciz	"stack.delta"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___direction_stack_cb           ; -- Begin function __direction_stack_cb
	.p2align	2
___direction_stack_cb:                  ; @__direction_stack_cb
	.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	x21, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
	bl	___get_cur_panel
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get_i
	mov	w8, #16
	cmp	w0, #1
	csel	w22, w8, w0, lt
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8]
	sub	w9, w21, #128
	cmp	w9, #3
	b.hi	LBB0_12
; %bb.1:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w20, [x20]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_r_config_get_i
	add	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_r_config_set_i
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, w22
	b	LBB0_8
LBB0_3:
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_9
; %bb.4:
	mov	x0, 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	___cursor_right
LBB0_5:
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_10
; %bb.6:
	mov	x0, 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	___cursor_left
LBB0_7:
	ldr	w20, [x20]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_r_config_get_i
	sub	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_r_config_set_i
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, w22
LBB0_8:
	str	w9, [x8]
	b	LBB0_12
LBB0_9:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	b	LBB0_11
LBB0_10:
	ldr	w9, [x8, #4]
	subs	w9, w9, #1
	b.lt	LBB0_12
LBB0_11:
	mov	w10, #1
	stp	w10, w9, [x8]
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hex.cols"

l_.str.1:                               ; @.str.1
	.asciz	"stack.delta"

.subsections_via_symbols
