	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___move_to_direction            ## -- Begin function __move_to_direction
	.p2align	4, 0x90
___move_to_direction:                   ## @__move_to_direction
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	___get_cur_panel
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx,%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %r14d
	movl	12(%rax), %eax
	addl	%r14d, %eax
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	addl	$-128, %r15d
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	cmpl	$3, %r15d
	ja	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rsi
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	leal	(%rax,%rcx), %edx
	decl	%edx
	movl	8(%rsi), %ecx
	movl	12(%rsi), %esi
	addl	%ecx, %esi
	decl	%esi
	movslq	(%r13,%r15,4), %rdi
	addq	%r13, %rdi
	jmpq	*%rdi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %esi
	jne	LBB0_13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	jne	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %esi
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_13
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	___set_curnode
	movl	$1, %eax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___move_to_direction            ; -- Begin function __move_to_direction
	.p2align	2
___move_to_direction:                   ; @__move_to_direction
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	___get_cur_panel
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w21, #0
	ldr	x8, [x0]
	ldp	w23, w9, [x8]
	add	w9, w23, w9
	sub	w24, w9, #1
	ldp	w25, w8, [x8, #8]
	add	w8, w25, w8
	sub	w26, w8, #1
	sub	w22, w22, #128
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w26
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ccmp	w10, w23, #4, eq
	ccmp	w24, w8, #4, gt
	b.gt	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	___get_panel
	cmp	w22, #3
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x0]
	ldp	w8, w9, [x11]
	add	w9, w8, w9
	sub	w10, w9, #1
	ldp	w9, w11, [x11, #8]
	add	w11, w9, w11
	sub	w11, w11, #1
	adr	x12, LBB0_2
	ldrb	w13, [x27, x22]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, w25
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w24
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w10, w23
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ccmp	w11, w25, #4, eq
	ccmp	w26, w9, #4, gt
	b.le	LBB0_4
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	___set_curnode
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
.subsections_via_symbols
