	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp1PolylineDraw         ## -- Begin function VIDGCDVdp1PolylineDraw
	.p2align	4, 0x90
_VIDGCDVdp1PolylineDraw:                ## @VIDGCDVdp1PolylineDraw
	.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	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_Vdp1Regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	movq	_Vdp1Ram@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_cmd@GOTPCREL(%rip), %rdi
	callq	_Vdp1ReadCommand
	movq	(%r14), %rax
	movl	16(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$12, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$14, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	16(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$16, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %r12d
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$18, %rsi
	callq	_T1ReadWord
	addl	%eax, %r12d
	movq	(%r14), %rax
	movl	16(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$20, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %r15d
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$22, %rsi
	callq	_T1ReadWord
	addl	%eax, %r15d
	movq	(%r14), %rax
	movl	16(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$24, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %ebx
	movl	(%r13), %edi
	movq	(%rax), %rsi
	addq	$26, %rsi
	callq	_T1ReadWord
	addl	%eax, %ebx
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_getlinelength
	movq	_gouraudA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%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	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DrawLine
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_getlinelength
	movq	_gouraudB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%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	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DrawLine
	movl	%ebx, %edi
	movl	%ebx, %r13d
	movl	%r15d, %esi
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_getlinelength
	movq	_gouraudD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%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	%ebx, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DrawLine
	movl	%r14d, %edi
	movl	%r14d, %r13d
	movl	%ebx, %esi
	movl	%ebx, %r14d
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_getlinelength
	movq	_gouraudA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_gouraudD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%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	%ebx, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DrawLine
	addq	$56, %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
	.comm	_gouraudC,4,2                   ## @gouraudC
	.comm	_gouraudD,4,2                   ## @gouraudD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp1PolylineDraw         ; -- Begin function VIDGCDVdp1PolylineDraw
	.p2align	2
_VIDGCDVdp1PolylineDraw:                ; @VIDGCDVdp1PolylineDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x23, _Vdp1Regs@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Vdp1Regs@GOTPAGEOFF]
	str	xzr, [sp, #8]
	ldr	x8, [x23]
	ldr	x1, [x8]
Lloh2:
	adrp	x27, _Vdp1Ram@GOTPAGE
Lloh3:
	ldr	x27, [x27, _Vdp1Ram@GOTPAGEOFF]
	ldr	w2, [x27]
Lloh4:
	adrp	x0, _cmd@GOTPAGE
Lloh5:
	ldr	x0, [x0, _cmd@GOTPAGEOFF]
	bl	_Vdp1ReadCommand
	ldr	x8, [x23]
	ldr	w19, [x8, #16]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #12
	bl	_T1ReadWord
	add	w19, w0, w19
	ldr	x8, [x23]
	ldr	w20, [x8, #8]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #14
	bl	_T1ReadWord
	add	w20, w0, w20
	ldr	x8, [x23]
	ldr	w21, [x8, #16]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #16
	bl	_T1ReadWord
	add	w24, w0, w21
	ldr	x8, [x23]
	ldr	w21, [x8, #8]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #18
	bl	_T1ReadWord
	add	w26, w0, w21
	ldr	x8, [x23]
	ldr	w21, [x8, #16]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #20
	bl	_T1ReadWord
	add	w22, w0, w21
	ldr	x8, [x23]
	ldr	w21, [x8, #8]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #22
	bl	_T1ReadWord
	add	w25, w0, w21
	ldr	x8, [x23]
	ldr	w21, [x8, #16]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #24
	bl	_T1ReadWord
	add	w21, w0, w21
	ldr	x8, [x23]
	ldr	w23, [x8, #8]
	ldr	w0, [x27]
	ldr	x8, [x8]
	add	x1, x8, #26
	bl	_T1ReadWord
	add	w23, w0, w23
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x26
	bl	_getlinelength
	mov	x3, x0
Lloh6:
	adrp	x27, _gouraudA@GOTPAGE
Lloh7:
	ldr	x27, [x27, _gouraudA@GOTPAGEOFF]
	ldr	w4, [x27]
Lloh8:
	adrp	x28, _gouraudB@GOTPAGE
Lloh9:
	ldr	x28, [x28, _gouraudB@GOTPAGEOFF]
	ldr	w5, [x28]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #16]
	ldr	d2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x26
	mov	w4, #0
	mov	w5, #0
	bl	_DrawLine
	mov	x0, x24
	mov	x1, x26
	mov	x2, x22
	mov	x3, x25
	bl	_getlinelength
	mov	x3, x0
	ldr	w4, [x28]
Lloh10:
	adrp	x28, _gouraudC@GOTPAGE
Lloh11:
	ldr	x28, [x28, _gouraudC@GOTPAGEOFF]
	ldr	w5, [x28]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #16]
	ldr	d2, [sp, #8]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x22
	mov	x3, x25
	mov	w4, #0
	mov	w5, #0
	bl	_DrawLine
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	mov	x3, x23
	bl	_getlinelength
	mov	x3, x0
Lloh12:
	adrp	x24, _gouraudD@GOTPAGE
Lloh13:
	ldr	x24, [x24, _gouraudD@GOTPAGEOFF]
	ldr	w4, [x24]
	ldr	w5, [x28]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #16]
	ldr	d2, [sp, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x25
	mov	w4, #0
	mov	w5, #0
	bl	_DrawLine
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x20
	bl	_getlinelength
	mov	x3, x0
	ldr	w4, [x27]
	ldr	w5, [x24]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_gouraudLineSetup
	ldp	d1, d0, [sp, #16]
	ldr	d2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	bl	_DrawLine
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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
	.comm	_gouraudC,4,2                   ; @gouraudC
	.comm	_gouraudD,4,2                   ; @gouraudD
.subsections_via_symbols
