	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp2DrawLineScreen
_Vdp2DrawLineScreen:                    ## @Vdp2DrawLineScreen
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movb	9(%rax), %cl
	shrb	$7, %cl
	movl	16(%rax), %edx
	addl	%edx, %edx
	movzbl	%cl, %r15d
	shll	$19, %r15d
	orl	$524286, %r15d                  ## imm = 0x7FFFE
	andl	%edx, %r15d
	movl	12(%rax), %r14d
	addl	%r14d, %r14d
	andl	$62, %r14d
	testb	$-128, 21(%rax)
	jne	LBB0_2
## %bb.5:
	movq	_Vdp2Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_T1ReadWord
	andl	$2047, %eax                     ## imm = 0x7FF
	movq	_Vdp2ColorRam@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Vdp2ColorRamGetColor
	movq	_vdp2height@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.6:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_COLSAT2YAB32
	movl	$1, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_TitanPutLineHLine
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_2:
	movq	_vdp2height@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_Vdp2ColorRam@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Vdp2Ram@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r15d, %esi
	callq	_T1ReadWord
	andl	$2047, %eax                     ## imm = 0x7FF
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_Vdp2ColorRamGetColor
	addl	$2, %r15d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_COLSAT2YAB32
	movl	$1, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_TitanPutLineHLine
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_vdp2height,4,2                 ## @vdp2height
	.comm	_Vdp2Ram,4,2                    ## @Vdp2Ram
	.comm	_Vdp2ColorRam,4,2               ## @Vdp2ColorRam
	.no_dead_strip	_Vdp2DrawLineScreen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp2DrawLineScreen
_Vdp2DrawLineScreen:                    ; @Vdp2DrawLineScreen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.1:
	ldrb	w9, [x8, #9]
	tst	w9, #0x80
	mov	w9, #1048574
	mov	w10, #524286
	csel	w9, w10, w9, eq
	ldp	w11, w10, [x8, #12]
	and	w20, w9, w10, lsl #1
	ubfiz	w19, w11, #1, #5
	ldrb	w8, [x8, #21]
	tbnz	w8, #7, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _Vdp2Ram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Vdp2Ram@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_T1ReadWord
	and	w0, w0, #0x7ff
Lloh6:
	adrp	x8, _Vdp2ColorRam@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Vdp2ColorRam@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Vdp2ColorRamGetColor
Lloh9:
	adrp	x22, _vdp2height@GOTPAGE
Lloh10:
	ldr	x22, [x22, _vdp2height@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, x0
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_COLSAT2YAB32
	mov	x2, x0
	mov	w0, #1
	mov	x1, x21
	bl	_TitanPutLineHLine
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x22, _vdp2height@GOTPAGE
Lloh12:
	ldr	x22, [x22, _vdp2height@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w21, #0
Lloh13:
	adrp	x23, _Vdp2Ram@GOTPAGE
Lloh14:
	ldr	x23, [x23, _Vdp2Ram@GOTPAGEOFF]
Lloh15:
	adrp	x24, _Vdp2ColorRam@GOTPAGE
Lloh16:
	ldr	x24, [x24, _Vdp2ColorRam@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_T1ReadWord
	and	w0, w0, #0x7ff
	ldr	w1, [x24]
	bl	_Vdp2ColorRamGetColor
	mov	x1, x0
	add	w20, w20, #2
	mov	x0, x19
	bl	_COLSAT2YAB32
	mov	x2, x0
	mov	w0, #1
	mov	x1, x21
	bl	_TitanPutLineHLine
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_Vdp2Ram,4,2                    ; @Vdp2Ram
	.comm	_Vdp2ColorRam,4,2               ; @Vdp2ColorRam
	.no_dead_strip	_Vdp2DrawLineScreen
.subsections_via_symbols
