	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1LineDraw            ## -- Begin function VIDSoftVdp1LineDraw
	.p2align	4, 0x90
_VIDSoftVdp1LineDraw:                   ## @VIDSoftVdp1LineDraw
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movl	(%rsi), %esi
	leaq	-44(%rbp), %rdi
	movq	%r15, %rdx
	callq	_Vdp1ReadCommand
	movl	(%r14), %esi
	movl	16(%r14), %ebx
	addl	$12, %esi
	movq	%r15, %rdi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	8(%r14), %r12d
	addl	$14, %esi
	movq	%r15, %rdi
	callq	_T1ReadWord
	addl	%eax, %r12d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	(%r14), %esi
	movl	16(%r14), %ebx
	addl	$16, %esi
	movq	%r15, %rdi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	(%r14), %esi
	movl	8(%r14), %r13d
	addl	$18, %esi
	movq	%r15, %rdi
	callq	_T1ReadWord
	addl	%eax, %r13d
	subq	$8, %rsp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	pushq	%r15
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r14
	pushq	$0
	callq	_iterateOverLine
	addq	$48, %rsp
	movq	_gouraudA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-80(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movl	%eax, %ecx
	pushq	%r12
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r14
	pushq	%r15
	callq	_gouraudLineSetup
	addq	$32, %rsp
	movsd	-80(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-72(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	-64(%rbp), %xmm2                ## xmm2 = mem[0],zero
	subq	$8, %rsp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	%r15
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r14
	pushq	$0
	callq	_DrawLine
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gouraudA,4,2                   ## @gouraudA
	.comm	_gouraudB,4,2                   ## @gouraudB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1LineDraw            ; -- Begin function VIDSoftVdp1LineDraw
	.p2align	2
_VIDSoftVdp1LineDraw:                   ; @VIDSoftVdp1LineDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #48]
	str	xzr, [sp, #40]
	ldr	w1, [x1]
	add	x26, sp, #36
	add	x0, sp, #36
	mov	x2, x21
	bl	_Vdp1ReadCommand
	ldr	w22, [x19, #16]
	ldr	w8, [x19]
	add	w1, w8, #12
	mov	x0, x21
	bl	_T1ReadWord
	add	w22, w0, w22
	ldr	w23, [x19, #8]
	ldr	w8, [x19]
	add	w1, w8, #14
	mov	x0, x21
	bl	_T1ReadWord
	add	w23, w0, w23
	ldr	w24, [x19, #16]
	ldr	w8, [x19]
	add	w1, w8, #16
	mov	x0, x21
	bl	_T1ReadWord
	add	w24, w0, w24
	ldr	w25, [x19, #8]
	ldr	w8, [x19]
	add	w1, w8, #18
	mov	x0, x21
	bl	_T1ReadWord
	add	w25, w0, w25
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #1
	mov	x5, #0
	mov	x6, #0
	mov	x7, x19
	bl	_iterateOverLine
	mov	x3, x0
Lloh0:
	adrp	x8, _gouraudA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gouraudA@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _gouraudB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gouraudB@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	stp	x26, x20, [sp]
	add	x0, sp, #56
	add	x1, sp, #40
	add	x2, sp, #48
	mov	x6, x21
	mov	x7, x19
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #48]
	ldr	d2, [sp, #40]
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	x7, x19
	bl	_DrawLine
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gouraudA,4,2                   ; @gouraudA
	.comm	_gouraudB,4,2                   ; @gouraudB
.subsections_via_symbols
