	.file	"extr_vidsoft.c_VIDSoftVdp1LineDraw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	VIDSoftVdp1LineDraw
	.type	VIDSoftVdp1LineDraw, @function
VIDSoftVdp1LineDraw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rdx
	mov	rdx, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r14, 28[rsp]
	mov	QWORD PTR 32[rsp], 0x000000000
	mov	QWORD PTR 40[rsp], 0x000000000
	mov	rdi, r14
	mov	QWORD PTR 48[rsp], 0x000000000
	call	Vdp1ReadCommand@PLT
	mov	eax, DWORD PTR [rbx]
	mov	r13, QWORD PTR 16[rbx]
	mov	rdi, rbp
	lea	esi, 12[rax]
	call	T1ReadWord@PLT
	mov	r15, QWORD PTR 8[rbx]
	mov	rdi, rbp
	add	r13d, eax
	mov	eax, DWORD PTR [rbx]
	lea	esi, 14[rax]
	call	T1ReadWord@PLT
	mov	rdi, rbp
	lea	r10d, [r15+rax]
	mov	eax, DWORD PTR [rbx]
	mov	r15, QWORD PTR 16[rbx]
	mov	DWORD PTR 12[rsp], r10d
	lea	esi, 16[rax]
	call	T1ReadWord@PLT
	mov	rdi, rbp
	lea	r11d, [r15+rax]
	mov	eax, DWORD PTR [rbx]
	mov	r15, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[rsp], r11d
	lea	esi, 18[rax]
	call	T1ReadWord@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	xor	r9d, r9d
	mov	edi, r13d
	push	r12
	.cfi_def_cfa_offset 144
	add	r15d, eax
	mov	r8d, 1
	push	rbp
	.cfi_def_cfa_offset 152
	mov	ecx, r15d
	push	r14
	.cfi_def_cfa_offset 160
	push	rbx
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	mov	r11d, DWORD PTR 52[rsp]
	mov	r10d, DWORD PTR 60[rsp]
	mov	edx, r11d
	mov	esi, r10d
	mov	DWORD PTR 56[rsp], r11d
	mov	DWORD PTR 52[rsp], r10d
	call	iterateOverLine@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR gouraudB[rip]
	mov	r8d, DWORD PTR gouraudA[rip]
	lea	rdx, 40[rsp]
	lea	rsi, 48[rsp]
	mov	ecx, eax
	lea	rdi, 32[rsp]
	push	r12
	.cfi_def_cfa_offset 136
	push	r14
	.cfi_def_cfa_offset 144
	push	rbx
	.cfi_def_cfa_offset 152
	push	rbp
	.cfi_def_cfa_offset 160
	call	gouraudLineSetup@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 136
	xor	r9d, r9d
	xor	r8d, r8d
	push	r12
	.cfi_def_cfa_offset 144
	mov	ecx, r15d
	mov	edi, r13d
	push	rbp
	.cfi_def_cfa_offset 152
	push	r14
	.cfi_def_cfa_offset 160
	push	rbx
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	mov	r11d, DWORD PTR 56[rsp]
	mov	r10d, DWORD PTR 52[rsp]
	movsd	xmm2, QWORD PTR 96[rsp]
	movsd	xmm1, QWORD PTR 88[rsp]
	movsd	xmm0, QWORD PTR 80[rsp]
	mov	edx, r11d
	mov	esi, r10d
	call	DrawLine@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 72
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	VIDSoftVdp1LineDraw, .-VIDSoftVdp1LineDraw
	.comm	gouraudB,4,4
	.comm	gouraudA,4,4
	.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_vidsoft.c_VIDSoftVdp1LineDraw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	VIDSoftVdp1LineDraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	VIDSoftVdp1LineDraw, %function
VIDSoftVdp1LineDraw:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r2
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r8, #0
	mov	r9, #0
	mov	r5, r0
	sub	sp, sp, #108
	ldr	ip, .L6
	add	r7, sp, #68
	mov	r2, r0
	str	r3, [sp, #60]
	ldr	r1, [r1]
	mov	r0, r7
	ldr	ip, [ip]
	str	ip, [sp, #100]
	mov	ip,#0
	str	r8, [sp, #72]
	str	r9, [sp, #76]
	str	r8, [sp, #80]
	str	r9, [sp, #84]
	str	r8, [sp, #88]
	str	r9, [sp, #92]
	bl	Vdp1ReadCommand
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #12
	ldr	r8, [r4, #8]
	bl	T1ReadWord
	mov	r3, r0
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #14
	add	r8, r8, r3
	ldr	r9, [r4, #4]
	bl	T1ReadWord
	mov	r3, r0
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #16
	add	r9, r9, r3
	ldr	r10, [r4, #8]
	bl	T1ReadWord
	mov	r3, r0
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #18
	add	r10, r10, r3
	ldr	fp, [r4, #4]
	bl	T1ReadWord
	mov	r6, #0
	mov	ip, #1
	ldr	r3, [sp, #60]
	add	fp, fp, r0
	str	ip, [sp]
	mov	r2, r10
	mov	r1, r9
	str	r3, [sp, #24]
	str	r5, [sp, #20]
	mov	r3, fp
	str	r4, [sp, #12]
	mov	r0, r8
	str	r7, [sp, #16]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	bl	iterateOverLine
	ldr	r1, .L6+4
	ldr	r2, .L6+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	mov	r3, r0
	ldr	r0, [sp, #60]
	str	r4, [sp, #12]
	str	r0, [sp, #20]
	str	r5, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	add	r1, sp, #88
	add	r2, sp, #80
	str	r7, [sp, #16]
	add	r0, sp, #72
	bl	gouraudLineSetup
	ldr	ip, [sp, #60]
	mov	r3, fp
	mov	r2, r10
	str	r5, [sp, #48]
	str	r4, [sp, #40]
	mov	r1, r9
	add	r5, sp, #88
	ldmia	r5, {r4-r5}
	mov	r0, r8
	str	r4, [sp, #32]
	str	r5, [sp, #36]
	add	r5, sp, #80
	ldmia	r5, {r4-r5}
	str	ip, [sp, #52]
	str	r4, [sp, #24]
	str	r5, [sp, #28]
	add	r5, sp, #72
	ldmia	r5, {r4-r5}
	str	r7, [sp, #44]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r6, [sp]
	bl	DrawLine
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	gouraudB
	.word	gouraudA
	.size	VIDSoftVdp1LineDraw, .-VIDSoftVdp1LineDraw
	.comm	gouraudB,4,4
	.comm	gouraudA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
