	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1DrawStart           ## -- Begin function VIDSoftVdp1DrawStart
	.p2align	4, 0x90
_VIDSoftVdp1DrawStart:                  ## @VIDSoftVdp1DrawStart
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vidsoft_vdp1_thread_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_VidsoftWaitForVdp1Thread
	movq	_vidsoft_vdp1_thread_context@GOTPCREL(%rip), %r15
	movq	32(%r15), %rdi
	movq	_Vdp1Ram@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_memcpy
	movq	_Vdp1Regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	16(%r15), %rdi
	movq	_vdp1backframebuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$262144, %edx                   ## imm = 0x40000
	callq	_memcpy
	movq	16(%r15), %rsi
	movq	%rbx, %rdi
	callq	_VIDSoftVdp1DrawStartBody
	movq	$0, 8(%r15)
	movl	$1, (%r15)
	movq	_YAB_THREAD_VIDSOFT_VDP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_YabThreadWake
	movq	(%r14), %rdi
	movq	(%r12), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Vdp1FakeDrawCommands           ## TAILCALL
LBB0_2:
	movq	_Vdp1Regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_vdp1backframebuffer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_VIDSoftVdp1DrawStartBody
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Vdp1DrawCommands               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vidsoft_vdp1_thread_enabled,8,3 ## @vidsoft_vdp1_thread_enabled
	.comm	_vidsoft_vdp1_thread_context,40,3 ## @vidsoft_vdp1_thread_context
	.comm	_Vdp1Ram,8,3                    ## @Vdp1Ram
	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_vdp1backframebuffer,8,3        ## @vdp1backframebuffer
	.comm	_YAB_THREAD_VIDSOFT_VDP1,4,2    ## @YAB_THREAD_VIDSOFT_VDP1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1DrawStart           ; -- Begin function VIDSoftVdp1DrawStart
	.p2align	2
_VIDSoftVdp1DrawStart:                  ; @VIDSoftVdp1DrawStart
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _vidsoft_vdp1_thread_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vidsoft_vdp1_thread_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_VidsoftWaitForVdp1Thread
Lloh3:
	adrp	x20, _vidsoft_vdp1_thread_context@GOTPAGE
Lloh4:
	ldr	x20, [x20, _vidsoft_vdp1_thread_context@GOTPAGEOFF]
	ldr	x0, [x20, #32]
Lloh5:
	adrp	x21, _Vdp1Ram@GOTPAGE
Lloh6:
	ldr	x21, [x21, _Vdp1Ram@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	w2, #524288
	bl	_memcpy
Lloh7:
	adrp	x22, _Vdp1Regs@GOTPAGE
Lloh8:
	ldr	x22, [x22, _Vdp1Regs@GOTPAGEOFF]
	ldr	x1, [x22]
	add	x19, x20, #24
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x20, #16]
Lloh9:
	adrp	x8, _vdp1backframebuffer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vdp1backframebuffer@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	w2, #262144
	bl	_memcpy
	ldr	x1, [x20, #16]
	mov	x0, x19
	bl	_VIDSoftVdp1DrawStartBody
	str	xzr, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
Lloh12:
	adrp	x8, _YAB_THREAD_VIDSOFT_VDP1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _YAB_THREAD_VIDSOFT_VDP1@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_YabThreadWake
	ldr	x0, [x21]
	ldr	x1, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Vdp1FakeDrawCommands
LBB0_2:
Lloh15:
	adrp	x19, _Vdp1Regs@GOTPAGE
Lloh16:
	ldr	x19, [x19, _Vdp1Regs@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh17:
	adrp	x20, _vdp1backframebuffer@GOTPAGE
Lloh18:
	ldr	x20, [x20, _vdp1backframebuffer@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_VIDSoftVdp1DrawStartBody
Lloh19:
	adrp	x8, _Vdp1Ram@GOTPAGE
Lloh20:
	ldr	x8, [x8, _Vdp1Ram@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	ldr	x1, [x19]
	ldr	x2, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Vdp1DrawCommands
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_vidsoft_vdp1_thread_enabled,8,3 ; @vidsoft_vdp1_thread_enabled
	.comm	_vidsoft_vdp1_thread_context,40,3 ; @vidsoft_vdp1_thread_context
	.comm	_Vdp1Ram,8,3                    ; @Vdp1Ram
	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_vdp1backframebuffer,8,3        ; @vdp1backframebuffer
	.comm	_YAB_THREAD_VIDSOFT_VDP1,4,2    ; @YAB_THREAD_VIDSOFT_VDP1
.subsections_via_symbols
