	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___direction_panels_cursor_cb   ## -- Begin function __direction_panels_cursor_cb
	.p2align	4, 0x90
___direction_panels_cursor_cb:          ## @__direction_panels_cursor_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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
	movq	(%rax), %rax
	movl	$1, (%rax)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_19
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	(%r15), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_13
## %bb.8:
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.9:
	decl	%ecx
	movl	%ecx, 4(%rax)
LBB0_10:
	movl	8(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_19
## %bb.11:
	cmpl	%edx, %ecx
	jge	LBB0_19
## %bb.12:
	decl	%edx
	movl	%edx, 8(%rax)
	jmp	LBB0_19
LBB0_5:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.6:
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get_i
	movq	(%r14), %rcx
	addl	%eax, 12(%rcx)
	jmp	LBB0_19
LBB0_2:
	movq	(%r15), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_19
## %bb.3:
	cmpl	$0, 12(%rax)
	jle	LBB0_19
## %bb.4:
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get_i
	movq	(%r14), %rcx
	subl	%eax, 12(%rcx)
	jmp	LBB0_19
LBB0_15:
	movslq	16(%rax), %rsi
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	movq	(%r15), %rdi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	incl	%edx
	cmpl	$0, (%rdi)
	movl	%edx, 4(%rax)
	je	LBB0_17
## %bb.16:
	imulq	$1431655766, %rsi, %rsi         ## imm = 0x55555556
	movq	%rsi, %rdi
	shrq	$63, %rdi
	shrq	$32, %rsi
	addl	%edi, %esi
	subl	%ecx, %edx
	cmpl	%esi, %edx
	jle	LBB0_19
LBB0_17:
	incl	%ecx
	jmp	LBB0_18
LBB0_13:
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.14:
	decl	4(%rax)
	decl	%ecx
LBB0_18:
	movl	%ecx, 8(%rax)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"graph.scroll"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___direction_panels_cursor_cb   ; -- Begin function __direction_panels_cursor_cb
	.p2align	2
___direction_panels_cursor_cb:          ; @__direction_panels_cursor_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
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x8]
	sub	w9, w21, #128
	cmp	w9, #3
	b.hi	LBB0_18
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	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	x9, [x20]
	ldr	w9, [x9]
	cbz	w9, LBB0_15
; %bb.3:
	ldr	w9, [x8, #4]
	subs	w10, w9, #1
	b.lt	LBB0_5
; %bb.4:
	str	w10, [x8, #4]
	mov	x9, x10
LBB0_5:
	ldr	w11, [x8, #8]
	subs	w10, w11, #1
	ccmp	w9, w11, #0, ge
	b.ge	LBB0_18
; %bb.6:
	str	w10, [x8, #8]
	b	LBB0_18
LBB0_7:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbnz	w8, LBB0_18
; %bb.8:
	ldr	w0, [x20, #12]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get_i
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	add	w9, w9, w0
	str	w9, [x8, #12]
	b	LBB0_18
LBB0_9:
	ldr	x9, [x20]
	ldr	w9, [x9]
	cbnz	w9, LBB0_18
; %bb.10:
	ldr	w8, [x8, #12]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:
	ldr	w0, [x20, #12]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get_i
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	sub	w9, w9, w0
	str	w9, [x8, #12]
	b	LBB0_18
LBB0_12:
	ldrsw	x10, [x8, #16]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	str	w9, [x20, #8]
	ldr	x9, [x20]
	ldr	w12, [x9]
	ldp	w11, w9, [x8, #4]
	add	w11, w11, #1
	str	w11, [x8, #4]
	cbz	w12, LBB0_14
; %bb.13:
	mov	w12, #21846
	movk	w12, #21845, lsl #16
	mul	x10, x10, x12
	lsr	x12, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w12
	sub	w11, w11, w9
	cmp	w11, w10
	b.le	LBB0_18
LBB0_14:
	add	w9, w9, #1
	b	LBB0_17
LBB0_15:
	ldr	w9, [x8, #8]
	subs	w9, w9, #1
	b.lt	LBB0_18
; %bb.16:
	ldr	w10, [x8, #4]
	sub	w10, w10, #1
	str	w10, [x8, #4]
LBB0_17:
	str	w9, [x8, #8]
LBB0_18:
	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
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"graph.scroll"

.subsections_via_symbols
