	.file	"extr_panels.c___move_to_direction.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__move_to_direction
	.type	__move_to_direction, @function
__move_to_direction:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, r14
	call	__get_cur_panel@PLT
	mov	rax, QWORD PTR [rax]
	mov	r13d, DWORD PTR 8[rax]
	mov	ebp, DWORD PTR 12[rax]
	mov	r12d, DWORD PTR [rax]
	mov	ebx, DWORD PTR 4[rax]
	add	ebp, r13d
	lea	eax, -1[rbp]
	add	ebx, r12d
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR [r14]
	sub	ebx, 1
	test	eax, eax
	jle	.L2
	xor	ebp, ebp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	r15d, 129
	jne	.L7
	cmp	ebx, edi
	je	.L19
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebp, 1
	cmp	DWORD PTR [r14], ebp
	jle	.L2
.L10:
	mov	rdi, r14
	mov	esi, ebp
	call	__get_panel@PLT
	mov	rax, QWORD PTR [rax]
	mov	r8d, DWORD PTR 8[rax]
	mov	ecx, DWORD PTR 12[rax]
	mov	edi, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	add	ecx, r8d
	add	edx, edi
	mov	eax, ecx
	sub	edx, 1
	sub	eax, 1
	cmp	r15d, 130
	je	.L3
	jg	.L4
	cmp	r15d, 128
	jne	.L24
	cmp	r13d, eax
	jne	.L7
.L21:
	cmp	r12d, edx
	jge	.L7
	cmp	ebx, edi
	jle	.L7
.L13:
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, ebp
	call	__set_curnode@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	r15d, 131
	jne	.L7
	cmp	DWORD PTR 4[rsp], r8d
	je	.L21
	add	ebp, 1
	cmp	DWORD PTR [r14], ebp
	jg	.L10
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	r12d, edx
	jne	.L7
.L19:
	cmp	r13d, eax
	jge	.L7
	cmp	DWORD PTR 4[rsp], r8d
	jg	.L13
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__move_to_direction, .-__move_to_direction
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_panels.c___move_to_direction.c"
	.text
	.align	2
	.global	__move_to_direction
	.syntax unified
	.arm
	.fpu softvfp
	.type	__move_to_direction, %function
__move_to_direction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, [r0]
	mov	r9, r0
	mov	r0, r10
	mov	r4, r1
	bl	__get_cur_panel
	ldr	r3, [r0]
	ldr	r2, [r10]
	ldr	r7, [r3]
	ldr	r6, [r3, #12]
	cmp	r2, #0
	ldmib	r3, {r5, r8}
	add	r5, r7, r5
	add	r6, r8, r6
	ble	.L2
	mov	fp, #0
	sub	r5, r5, #1
	sub	r6, r6, #1
	sub	r4, r4, #128
.L10:
	mov	r1, fp
	mov	r0, r10
	bl	__get_panel
	ldr	r2, [r0]
	ldr	r0, [r2, #8]
	ldr	r3, [r2, #12]
	ldm	r2, {r1, ip}
	add	r3, r0, r3
	add	r2, r1, ip
	sub	r2, r2, #1
	sub	r3, r3, #1
	cmp	r4, #3
	ldrls	pc, [pc, r4, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	cmp	r6, r0
	beq	.L16
.L3:
	ldr	r3, [r10]
	add	fp, fp, #1
	cmp	r3, fp
	bgt	.L10
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	cmp	r7, r2
	bne	.L3
.L18:
	cmp	r6, r0
	movgt	r0, #0
	movle	r0, #1
	cmp	r8, r3
	movlt	r3, r0
	orrge	r3, r0, #1
	cmp	r3, #0
	bne	.L3
.L14:
	mov	r1, fp
	mov	r0, r9
	bl	__set_curnode
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	cmp	r8, r3
	bne	.L3
.L16:
	cmp	r5, r1
	movgt	r1, #0
	movle	r1, #1
	cmp	r7, r2
	movlt	r2, r1
	orrge	r2, r1, #1
	cmp	r2, #0
	bne	.L3
	b	.L14
.L7:
	cmp	r5, r1
	bne	.L3
	b	.L18
	.size	__move_to_direction, .-__move_to_direction
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
