	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp2DrawBackScreen
_Vdp2DrawBackScreen:                    ## @Vdp2DrawBackScreen
	.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	$104, %rsp
	.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
	movb	1(%rax), %cl
	shrb	$7, %cl
	movl	4(%rax), %edx
	movl	%edx, %esi
	shll	$16, %esi
	movzbl	%cl, %ebx
	shll	$18, %ebx
	orl	$196608, %ebx                   ## imm = 0x30000
	andl	%esi, %ebx
	orl	8(%rax), %ebx
	addl	%ebx, %ebx
	testl	$32768, %edx                    ## imm = 0x8000
	jne	LBB0_1
## %bb.4:
	movq	_Vdp2Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_T1ReadWord
	movl	$255, %edi
	movl	%eax, %esi
	callq	_SAT2YAB32
	movq	_op_poly_hdr@GOTPCREL(%rip), %rsi
	movq	%rax, 96(%rsi)
	movq	_PVR_LIST_OP_POLY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$4, %edx
	callq	_pvr_list_prim
	movq	_PVR_CMD_VERTEX_EOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -144(%rbp)
	movq	_vdp2height@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movq	$1036831949, -136(%rbp)         ## imm = 0x3DCCCCCD
	movabsq	$4453159312402939904, %rcx      ## imm = 0x3DCCCCCD00000000
	movq	%rcx, -128(%rbp)
	movq	_vdp2width@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -64(%rbp)
	movq	%rcx, -120(%rbp)
	movq	%rdx, -72(%rbp)
	movl	%eax, -112(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -88(%rbp)
	movl	(%rbx), %edi
	leaq	-144(%rbp), %rsi
	movl	$104, %edx
	callq	_pvr_list_prim
	jmp	LBB0_5
LBB0_1:
	movq	_vdp2height@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	xorl	%r15d, %r15d
	movq	_PVR_LIST_OP_POLY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Vdp2Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_T1ReadWord
	addl	$2, %ebx
	movl	$255, %edi
	movl	%eax, %esi
	callq	_SAT2YAB32
	movq	_op_poly_hdr@GOTPCREL(%rip), %rsi
	movq	%rax, 96(%rsi)
	movl	(%r12), %edi
	movl	$4, %edx
	callq	_pvr_list_prim
	movq	_PVR_CMD_VERTEX_EOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -144(%rbp)
	leal	1(%r15), %r13d
	movl	%r13d, -140(%rbp)
	movq	$1036831949, -136(%rbp)         ## imm = 0x3DCCCCCD
	movl	%r15d, -128(%rbp)
	movl	$1036831949, -124(%rbp)         ## imm = 0x3DCCCCCD
	movq	_vdp2width@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	%r15d, -120(%rbp)
	movl	$1036831949, -116(%rbp)         ## imm = 0x3DCCCCCD
	movq	%rax, -72(%rbp)
	movl	%r13d, -112(%rbp)
	leaq	-104(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movl	(%r12), %edi
	leaq	-144(%rbp), %rsi
	movl	$104, %edx
	callq	_pvr_list_prim
	movl	%r13d, %r15d
	cmpl	(%r14), %r13d
	jl	LBB0_3
LBB0_5:
	addq	$104, %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	_op_poly_hdr,104,3              ## @op_poly_hdr
	.comm	_PVR_LIST_OP_POLY,4,2           ## @PVR_LIST_OP_POLY
	.comm	_PVR_CMD_VERTEX_EOL,8,3         ## @PVR_CMD_VERTEX_EOL
	.comm	_vdp2width,8,3                  ## @vdp2width
	.no_dead_strip	_Vdp2DrawBackScreen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function Vdp2DrawBackScreen
lCPI0_0:
	.long	0x3dcccccd                      ; float 0.100000001
	.long	0x00000000                      ; float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_Vdp2DrawBackScreen:                    ; @Vdp2DrawBackScreen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrb	w9, [x8, #1]
	tst	w9, #0x80
	mov	w9, #458752
	mov	w10, #196608
	csel	w9, w10, w9, eq
	ldp	w10, w8, [x8, #4]
	and	w9, w9, w10, lsl #16
	orr	w8, w9, w8
	lsl	w19, w8, #1
	tbnz	w10, #15, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _Vdp2Ram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Vdp2Ram@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_T1ReadWord
	mov	x1, x0
	mov	w0, #255
	bl	_SAT2YAB32
Lloh6:
	adrp	x1, _op_poly_hdr@GOTPAGE
Lloh7:
	ldr	x1, [x1, _op_poly_hdr@GOTPAGEOFF]
	str	x0, [x1, #96]
Lloh8:
	adrp	x19, _PVR_LIST_OP_POLY@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PVR_LIST_OP_POLY@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w2, #4
	bl	_pvr_list_prim
Lloh10:
	adrp	x8, _PVR_CMD_VERTEX_EOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PVR_CMD_VERTEX_EOL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [sp, #96]
Lloh13:
	adrp	x8, _vdp2height@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vdp2height@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh16:
	adrp	x9, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	mov	x9, #225180840361984
	movk	x9, #15820, lsl #48
Lloh18:
	adrp	x10, _vdp2width@GOTPAGE
Lloh19:
	ldr	x10, [x10, _vdp2width@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	stp	x9, x9, [sp, #24]
	stp	x10, x10, [sp, #80]
	str	w8, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #104
	bl	_pvr_list_prim
	b	LBB0_5
LBB0_2:
Lloh21:
	adrp	x23, _vdp2height@GOTPAGE
Lloh22:
	ldr	x23, [x23, _vdp2height@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
	add	x8, sp, #8
	add	x22, x8, #40
Lloh23:
	adrp	x20, _op_poly_hdr@GOTPAGE
Lloh24:
	ldr	x20, [x20, _op_poly_hdr@GOTPAGEOFF]
Lloh25:
	adrp	x24, _PVR_LIST_OP_POLY@GOTPAGE
Lloh26:
	ldr	x24, [x24, _PVR_LIST_OP_POLY@GOTPAGEOFF]
Lloh27:
	adrp	x25, _PVR_CMD_VERTEX_EOL@GOTPAGE
Lloh28:
	ldr	x25, [x25, _PVR_CMD_VERTEX_EOL@GOTPAGEOFF]
Lloh29:
	adrp	x8, lCPI0_0@PAGE
Lloh30:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w26, #52429
	movk	w26, #15820, lsl #16
Lloh31:
	adrp	x28, _vdp2width@GOTPAGE
Lloh32:
	ldr	x28, [x28, _vdp2width@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh33:
	adrp	x8, _Vdp2Ram@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Vdp2Ram@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_T1ReadWord
	mov	x1, x0
	add	w19, w19, #2
	mov	w0, #255
	bl	_SAT2YAB32
	str	x0, [x20, #96]
	ldr	w0, [x24]
	mov	x1, x20
	mov	w2, #4
	bl	_pvr_list_prim
	ldr	x9, [x25]
	add	w27, w21, #1
	stp	wzr, w27, [sp, #8]
	str	d8, [sp, #16]
	stp	w21, w26, [sp, #24]
	ldr	x8, [x28]
	stp	w21, w26, [sp, #32]
	stp	x8, x9, [sp, #88]
	str	x8, [sp, #80]
	str	w27, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x22]
	ldr	w0, [x24]
	add	x1, sp, #8
	mov	w2, #104
	bl	_pvr_list_prim
	ldr	w8, [x23]
	mov	x21, x27
	cmp	w27, w8
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_Vdp2Ram,4,2                    ; @Vdp2Ram
	.comm	_op_poly_hdr,104,3              ; @op_poly_hdr
	.comm	_PVR_LIST_OP_POLY,4,2           ; @PVR_LIST_OP_POLY
	.comm	_PVR_CMD_VERTEX_EOL,8,3         ; @PVR_CMD_VERTEX_EOL
	.comm	_vdp2width,8,3                  ; @vdp2width
	.no_dead_strip	_Vdp2DrawBackScreen
.subsections_via_symbols
