	.file	"extr_screen-redraw.c_screen_redraw_cell_border1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	screen_redraw_cell_border1, @function
screen_redraw_cell_border1:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 16[rdi]
	cmp	rcx, rsi
	jg	.L2
	mov	r8, QWORD PTR 8[rdi]
	add	r8, rcx
	cmp	r8, rsi
	jle	.L2
	cmp	rdx, rax
	jl	.L2
	mov	r9, QWORD PTR 24[rdi]
	xor	r8d, r8d
	add	r9, rax
	cmp	r9, rdx
	jg	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	test	rax, rax
	jne	.L28
.L4:
	mov	r8, QWORD PTR 24[rdi]
	add	r8, rax
	cmp	r8, rdx
	jl	.L5
	test	rcx, rcx
	je	.L6
	lea	r9, -1[rcx]
	mov	r8d, 1
	cmp	r9, rsi
	je	.L1
	mov	r8, QWORD PTR 8[rdi]
	add	r8, rcx
	cmp	rsi, r8
	je	.L19
.L11:
	cmp	rsi, r9
	jl	.L15
	add	rcx, QWORD PTR 8[rdi]
.L9:
	cmp	rsi, rcx
	jg	.L15
	test	rax, rax
	je	.L10
	lea	rcx, -1[rax]
	cmp	rcx, rdx
	je	.L16
.L10:
	add	rax, QWORD PTR 24[rdi]
	xor	r8d, r8d
	cmp	rax, rdx
	sete	r8b
	lea	r8d, -1[r8+r8*4]
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	lea	r8, -1[rax]
	cmp	r8, rdx
	jle	.L4
.L5:
	lea	r9, -1[rcx]
	test	rcx, rcx
	jne	.L11
	mov	rcx, QWORD PTR 8[rdi]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR 8[rdi]
	cmp	rsi, rcx
	jne	.L9
.L19:
	mov	r8d, 2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r8d, 3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r8d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	screen_redraw_cell_border1, .-screen_redraw_cell_border1
	.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_screen-redraw.c_screen_redraw_cell_border1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	screen_redraw_cell_border1, %function
screen_redraw_cell_border1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	push	{r4, lr}
	cmp	ip, r1
	ldr	r3, [r0, #8]
	bgt	.L2
	ldr	lr, [r0, #4]
	add	lr, ip, lr
	cmp	lr, r1
	ble	.L2
	cmp	r2, r3
	blt	.L2
	ldr	lr, [r0, #12]
	add	lr, r3, lr
	cmp	lr, r2
	bgt	.L12
.L2:
	cmp	r3, #0
	bne	.L29
.L4:
	ldr	lr, [r0, #12]
	add	lr, r3, lr
	cmp	lr, r2
	blt	.L5
	cmp	ip, #0
	beq	.L6
	sub	lr, ip, #1
	cmp	lr, r1
	beq	.L30
	ldr	r4, [r0, #4]
	add	r4, ip, r4
	cmp	r1, r4
	beq	.L19
.L11:
	cmp	r1, lr
	blt	.L15
	ldr	lr, [r0, #4]
	add	ip, ip, lr
.L9:
	cmp	r1, ip
	bgt	.L15
	cmp	r3, #0
	beq	.L10
	sub	r1, r3, #1
	cmp	r1, r2
	beq	.L16
.L10:
	ldr	r1, [r0, #12]
	add	r3, r3, r1
	cmp	r3, r2
	mvnne	r0, #0
	moveq	r0, #4
	pop	{r4, pc}
.L29:
	sub	lr, r3, #1
	cmp	lr, r2
	ble	.L4
.L5:
	cmp	ip, #0
	subne	lr, ip, #1
	bne	.L11
	ldr	ip, [r0, #4]
	b	.L9
.L6:
	ldr	ip, [r0, #4]
	cmp	r1, ip
	bne	.L9
.L19:
	mov	r0, #2
	pop	{r4, pc}
.L16:
	mov	r0, #3
	pop	{r4, pc}
.L12:
	mov	r0, #0
	pop	{r4, pc}
.L30:
	mov	r0, #1
	pop	{r4, pc}
.L15:
	mvn	r0, #0
	pop	{r4, pc}
	.size	screen_redraw_cell_border1, .-screen_redraw_cell_border1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
