	.file	"extr_vf_datascope.c_draw_line.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	draw_line, @function
draw_line:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	edi, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	sub	edi, esi
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 16[rsp], ecx
	mov	DWORD PTR 28[rsp], r8d
	call	FFABS@PLT
	xor	esi, esi
	cmp	ebx, ebp
	mov	edi, r13d
	setg	sil
	sub	edi, r12d
	mov	DWORD PTR 24[rsp], eax
	lea	esi, -1[rsi+rsi]
	mov	DWORD PTR 32[rsp], esi
	call	FFABS@PLT
	xor	esi, esi
	cmp	r13d, r12d
	setg	sil
	mov	edx, eax
	lea	esi, -1[rsi+rsi]
	mov	DWORD PTR 36[rsp], esi
	cmp	DWORD PTR 24[rsp], eax
	jg	.L4
	mov	ebx, eax
	shr	ebx, 31
	add	ebx, eax
	sar	ebx
	neg	ebx
.L6:
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 12[rsp], edx
	mov	r8d, ebp
	not	r8d
	neg	eax
	mov	DWORD PTR 20[rsp], eax
	.p2align 4,,10
	.p2align 3
.L5:
	test	r8d, r8d
	jns	.L12
	test	r12d, r12d
	js	.L12
	cmp	DWORD PTR [r14], ebp
	jle	.L12
	cmp	DWORD PTR 4[r14], r12d
	jg	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	ebp, DWORD PTR 16[rsp]
	jne	.L11
	cmp	r12d, DWORD PTR 28[rsp]
	je	.L38
.L11:
	mov	eax, ebx
	cmp	DWORD PTR 20[rsp], ebx
	jge	.L21
	add	ebp, DWORD PTR 32[rsp]
	sub	eax, DWORD PTR 12[rsp]
	mov	r8d, ebp
	not	r8d
.L21:
	cmp	ebx, DWORD PTR 12[rsp]
	jge	.L22
	add	eax, DWORD PTR 24[rsp]
	add	r12d, DWORD PTR 36[rsp]
.L22:
	mov	ebx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L38:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L37:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r15]
	test	ecx, ecx
	jle	.L12
	mov	rax, r14
	mov	DWORD PTR 40[rsp], ebx
	mov	r14, r15
	xor	r13d, r13d
	mov	DWORD PTR 44[rsp], r8d
	mov	r15, rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	ecx, 1
	je	.L39
	mov	rcx, r13
	mov	edx, r12d
	sal	rcx, 4
	mov	r9, QWORD PTR [r10+rcx]
	mov	rcx, QWORD PTR 16[r14]
	mov	ecx, DWORD PTR [rcx+rdi]
	sar	edx, cl
	mov	ecx, DWORD PTR [rax+rdi]
	imul	ecx, edx
	movsx	rax, ecx
	mov	rcx, QWORD PTR 24[r14]
	mov	ecx, DWORD PTR [rcx+rdi]
	mov	edi, ebp
	sar	edi, cl
	mov	ecx, edi
	add	ecx, ecx
	movsx	rcx, ecx
	add	rax, rcx
	mov	rcx, QWORD PTR [rsi+r13*8]
	mov	esi, DWORD PTR [r9]
	lea	rdi, [rcx+rax*4]
	call	AV_WN16@PLT
.L16:
	mov	ecx, DWORD PTR [r14]
	add	r13, 1
	cmp	ecx, r13d
	jle	.L40
.L20:
	mov	r9, QWORD PTR 32[r14]
	mov	rax, QWORD PTR 112[rsp]
	lea	rdi, 0[0+r13*4]
	mov	rsi, QWORD PTR 16[r15]
	mov	r9, QWORD PTR [r9]
	mov	r10, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[r15]
	cmp	DWORD PTR [r9+r13*4], 8
	jne	.L13
	cmp	ecx, 1
	je	.L41
	mov	rcx, r13
	mov	edx, r12d
	mov	ebx, ebp
	sal	rcx, 4
	mov	rcx, QWORD PTR 8[r10+rcx]
	mov	r9d, DWORD PTR [rcx]
	mov	rcx, QWORD PTR 16[r14]
	mov	ecx, DWORD PTR [rcx+rdi]
	sar	edx, cl
	mov	ecx, DWORD PTR [rax+rdi]
	imul	ecx, edx
	mov	eax, ecx
	mov	rcx, QWORD PTR 24[r14]
	mov	ecx, DWORD PTR [rcx+rdi]
	sar	ebx, cl
	mov	rcx, QWORD PTR [rsi+r13*8]
	add	r13, 1
	add	eax, ebx
	cdqe
	mov	DWORD PTR [rcx+rax*4], r9d
	mov	ecx, DWORD PTR [r14]
	cmp	ecx, r13d
	jg	.L20
.L40:
	mov	rax, r15
	mov	ebx, DWORD PTR 40[rsp]
	mov	r15, r14
	mov	r8d, DWORD PTR 44[rsp]
	mov	r14, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L39:
	xor	ebx, ebx
	mov	rdi, rsi
	mov	rsi, r14
	mov	r14, rbx
	mov	rbx, rsi
.L19:
	mov	rdx, QWORD PTR [r10]
	mov	esi, DWORD PTR [rdx+r14*4]
	mov	rdx, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rdx]
	imul	ecx, ebp
	mov	edx, ecx
	mov	ecx, DWORD PTR [rax]
	add	edx, r14d
	add	r14, 1
	imul	ecx, r12d
	add	edx, edx
	movsx	rdx, edx
	movsx	rax, ecx
	add	rax, rdx
	mov	rdx, QWORD PTR [rdi]
	lea	rdi, [rdx+rax*4]
	call	AV_WN16@PLT
	cmp	r14, 4
	je	.L34
	mov	rax, QWORD PTR 112[rsp]
	mov	rdi, QWORD PTR 16[r15]
	mov	r10, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[r15]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r14, rbx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 24[rsp]
	mov	ebx, eax
	shr	ebx, 31
	add	ebx, eax
	sar	ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r9, QWORD PTR 8[r14]
	mov	r11, QWORD PTR 8[r10]
	mov	r10, QWORD PTR [rsi]
	xor	esi, esi
.L15:
	mov	edx, DWORD PTR [rax]
	mov	edi, DWORD PTR [r9]
	mov	ecx, DWORD PTR [r11+rsi*4]
	imul	edx, r12d
	imul	edi, ebp
	add	edx, edi
	add	edx, esi
	add	rsi, 1
	movsx	rdx, edx
	mov	DWORD PTR [r10+rdx*4], ecx
	cmp	rsi, 4
	jne	.L15
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	draw_line, .-draw_line
	.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_vf_datascope.c_draw_line.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_line, %function
draw_line:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #36
	sub	r0, r3, r1
	mov	r6, r3
	mov	r5, r2
	mov	r4, r1
	str	r3, [sp, #8]
	ldr	r9, [sp, #76]
	bl	FFABS
	mov	r3, r0
	cmp	r6, r4
	str	r3, [sp, #16]
	mov	r6, r3
	movgt	r3, #1
	mvnle	r3, #0
	ldr	r2, [sp, #72]
	str	r3, [sp, #20]
	sub	r0, r2, r5
	bl	FFABS
	ldr	r3, [sp, #72]
	mov	r10, r0
	cmp	r3, r5
	movgt	r3, #1
	mvnle	r3, #0
	cmp	r6, r0
	str	r3, [sp, #24]
	bgt	.L4
	add	r6, r0, r0, lsr #31
	asr	r6, r6, #1
	rsb	r6, r6, #0
.L6:
	mvn	r3, r4
	str	r3, [sp]
	mvn	r3, r5
	str	r3, [sp, #4]
	ldr	r3, [sp, #16]
	rsb	r3, r3, #0
	str	r3, [sp, #12]
	b	.L5
.L29:
	ldr	r3, [sp, #12]
	cmp	r3, r6
	ldrlt	r3, [sp, #20]
	movge	r3, r6
	addlt	r4, r4, r3
	mvnlt	r3, r4
	strlt	r3, [sp]
	sublt	r3, r6, r10
	cmp	r6, r10
	bge	.L20
	ldr	r2, [sp, #24]
	add	r5, r5, r2
	ldr	r2, [sp, #16]
	add	r3, r3, r2
	mvn	r2, r5
	str	r2, [sp, #4]
.L20:
	mov	r6, r3
.L5:
	ldr	r3, [sp]
	ldr	r2, [sp, #4]
	tst	r3, r2
	bpl	.L10
	ldr	r3, [r9]
	cmp	r3, r4
	ble	.L10
	ldr	r3, [r9, #4]
	cmp	r3, r5
	bgt	.L33
.L10:
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #72]
	cmp	r4, r3
	cmpeq	r5, r2
	bne	.L29
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	r0, [r8]
	cmp	r0, #0
	ble	.L10
	str	r6, [sp, #28]
	mov	r7, #0
	ldr	r6, [sp, #80]
	b	.L18
.L11:
	cmp	r0, #1
	beq	.L34
	ldr	lr, [r8, #12]
	ldr	r0, [r8, #8]
	ldr	fp, [lr, r1]
	ldr	lr, [r0, r1]
	asr	fp, r4, fp
	ldr	r0, [r3, r1]
	lsl	fp, fp, #1
	asr	r3, r5, lr
	mla	r3, r0, r3, fp
	ldr	r2, [r2, r7, lsl #3]
	ldr	r0, [ip, r1]
	ldr	r1, [r2]
	add	r0, r0, r3, lsl #2
	bl	AV_WN16
.L14:
	ldr	r0, [r8]
	add	r7, r7, #1
	cmp	r0, r7
	ble	.L35
.L18:
	ldr	r3, [r8, #16]
	ldr	ip, [r9, #12]
	ldr	r3, [r3]
	lsl	r1, r7, #2
	ldr	r2, [r3, r7, lsl #2]
	ldr	r3, [r9, #8]
	cmp	r2, #8
	ldr	r2, [r6]
	bne	.L11
	cmp	r0, #1
	beq	.L36
	ldr	r0, [r8, #8]
	ldr	lr, [r8, #12]
	ldr	r0, [r0, r1]
	ldr	lr, [lr, r1]
	ldr	r3, [r3, r1]
	add	r2, r2, r7, lsl #3
	asr	r0, r5, r0
	asr	lr, r4, lr
	mla	r0, r3, r0, lr
	ldr	r2, [r2, #4]
	ldr	r3, [ip, r1]
	ldr	r2, [r2]
	add	r7, r7, #1
	str	r2, [r3, r0, lsl #2]
	ldr	r0, [r8]
	cmp	r0, r7
	bgt	.L18
.L35:
	ldr	r6, [sp, #28]
	b	.L10
.L34:
	mov	fp, #0
.L17:
	ldr	r1, [r8, #4]
	ldr	r3, [r3]
	ldr	r1, [r1]
	mul	r3, r5, r3
	mla	r1, r4, r1, fp
	ldr	r2, [r2]
	ldr	r0, [ip]
	add	r3, r3, r1, lsl #1
	add	r0, r0, r3, lsl #2
	ldr	r1, [r2, fp, lsl #2]
	add	fp, fp, #1
	bl	AV_WN16
	cmp	fp, #4
	beq	.L14
	ldr	ip, [r9, #12]
	ldr	r3, [r9, #8]
	ldr	r2, [r6]
	b	.L17
.L4:
	ldr	r3, [sp, #16]
	add	r6, r3, r3, lsr #31
	asr	r6, r6, #1
	b	.L6
.L36:
	mov	r1, #0
	ldr	r0, [r2, #4]
	ldr	fp, [ip]
	ldr	lr, [r8, #4]
	sub	r0, r0, #4
.L13:
	ldr	ip, [r3]
	ldr	r2, [lr]
	mla	ip, r5, ip, r1
	mla	r2, r4, r2, ip
	add	r1, r1, #1
	ldr	ip, [r0, #4]!
	cmp	r1, #4
	str	ip, [fp, r2, lsl #2]
	bne	.L13
	b	.L14
	.size	draw_line, .-draw_line
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
