	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp1LineDraw             ## -- Begin function VIDGCDVdp1LineDraw
	.p2align	4, 0x90
_VIDGCDVdp1LineDraw:                    ## @VIDGCDVdp1LineDraw
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_Vdp1Regs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	_Vdp1Ram@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_cmd@GOTPCREL(%rip), %rdi
	callq	_Vdp1ReadCommand
	movq	(%rbx), %rax
	movl	16(%rax), %r14d
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$12, %rsi
	callq	_T1ReadWord
	addl	%eax, %r14d
	movq	(%rbx), %rax
	movl	8(%rax), %r15d
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$14, %rsi
	callq	_T1ReadWord
	addl	%eax, %r15d
	movq	(%rbx), %rax
	movl	16(%rax), %r12d
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$16, %rsi
	callq	_T1ReadWord
	addl	%eax, %r12d
	movq	(%rbx), %rax
	movl	8(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$18, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_getlinelength
	movq	_gouraudA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%eax, %ecx
	callq	_gouraudLineSetup
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## xmm2 = mem[0],zero
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DrawLine
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd,4,2                        ## @cmd
	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_Vdp1Ram,4,2                    ## @Vdp1Ram
	.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	_VIDGCDVdp1LineDraw             ; -- Begin function VIDGCDVdp1LineDraw
	.p2align	2
_VIDGCDVdp1LineDraw:                    ; @VIDGCDVdp1LineDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x22, _Vdp1Regs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Vdp1Regs@GOTPAGEOFF]
	str	xzr, [sp, #8]
	ldr	x8, [x22]
	ldr	x1, [x8]
Lloh2:
	adrp	x23, _Vdp1Ram@GOTPAGE
Lloh3:
	ldr	x23, [x23, _Vdp1Ram@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x0, _cmd@GOTPAGE
Lloh5:
	ldr	x0, [x0, _cmd@GOTPAGEOFF]
	bl	_Vdp1ReadCommand
	ldr	x8, [x22]
	ldr	w19, [x8, #16]
	ldr	w0, [x23]
	ldr	x8, [x8]
	add	x1, x8, #12
	bl	_T1ReadWord
	add	w19, w0, w19
	ldr	x8, [x22]
	ldr	w20, [x8, #8]
	ldr	w0, [x23]
	ldr	x8, [x8]
	add	x1, x8, #14
	bl	_T1ReadWord
	add	w20, w0, w20
	ldr	x8, [x22]
	ldr	w21, [x8, #16]
	ldr	w0, [x23]
	ldr	x8, [x8]
	add	x1, x8, #16
	bl	_T1ReadWord
	add	w21, w0, w21
	ldr	x8, [x22]
	ldr	w22, [x8, #8]
	ldr	w0, [x23]
	ldr	x8, [x8]
	add	x1, x8, #18
	bl	_T1ReadWord
	add	w22, w0, w22
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_getlinelength
	mov	x3, x0
Lloh6:
	adrp	x8, _gouraudA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gouraudA@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _gouraudB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gouraudB@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	add	x0, sp, #24
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #16]
	ldr	d2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	w4, #0
	mov	w5, #0
	bl	_DrawLine
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd,4,2                        ; @cmd
	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_Vdp1Ram,4,2                    ; @Vdp1Ram
	.comm	_gouraudA,4,2                   ; @gouraudA
	.comm	_gouraudB,4,2                   ; @gouraudB
.subsections_via_symbols
