	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1Draw                       ## -- Begin function Vdp1Draw
	.p2align	4, 0x90
_Vdp1Draw:                              ## @Vdp1Draw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Vdp1External@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_Vdp1Regs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	$0, (%rax)
	sarl	4(%rax)
	movl	$0, 8(%rax)
	movq	_VIDCore@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	xorl	%eax, %eax
	callq	*8(%rcx)
	movq	(%rbx), %rax
	orl	$2, 4(%rax)
	movl	(%rax), %ecx
	sarl	$3, %ecx
	movl	%ecx, 8(%rax)
	xorl	%eax, %eax
	callq	_ScuSendDrawEnd
	movq	(%r14), %rcx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rcx)                         ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Vdp1NoDraw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp1External,4,2               ## @Vdp1External
	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_VIDCore,8,3                    ## @VIDCore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1Draw                       ; -- Begin function Vdp1Draw
	.p2align	2
_Vdp1Draw:                              ; @Vdp1Draw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Vdp1External@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp1External@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _Vdp1Regs@GOTPAGE
Lloh4:
	ldr	x19, [x19, _Vdp1Regs@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	asr	w9, w9, #1
	stp	wzr, w9, [x8]
	str	wzr, [x8, #8]
Lloh5:
	adrp	x20, _VIDCore@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VIDCore@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	blr	x8
	ldr	x8, [x19]
	ldr	d0, [x8]
	sshr.2s	v1, v0, #3
	orr.2s	v0, #2
	ext.8b	v0, v0, v1, #4
	stur	d0, [x8, #4]
	bl	_ScuSendDrawEnd
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Vdp1NoDraw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp1External,4,2               ; @Vdp1External
	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_VIDCore,8,3                    ; @VIDCore
.subsections_via_symbols
