	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function VIDSoftVdp1DrawStartBody
LCPI0_0:
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	8                               ## 0x8
LCPI0_1:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VIDSoftVdp1DrawStartBody
	.p2align	4, 0x90
_VIDSoftVdp1DrawStartBody:              ## @VIDSoftVdp1DrawStartBody
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$21, %xmm0, %xmm0               ## xmm0 = xmm0[1,1,1,0]
	pand	LCPI0_0(%rip), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	movmskps	%xmm0, %eax
	movl	%eax, %r8d
	andb	$4, %r8b
	shrb	$2, %r8b
	movl	%eax, %edx
	andb	$2, %dl
	shrb	%dl
	movl	%eax, %ecx
	shrb	$3, %cl
	movzbl	%cl, %r9d
	movl	$2, %r10d
	subl	%r9d, %r10d
	movzbl	%dl, %edx
	shll	$9, %edx
	addl	$512, %edx                      ## imm = 0x200
	testb	%r8b, %r8b
	movl	$512, %r9d                      ## imm = 0x200
	cmovel	%edx, %r9d
	movq	_vdp1interlace@GOTPCREL(%rip), %rdx
	movl	%r10d, (%rdx)
	andl	$1, %eax
	shll	$8, %eax
	addl	$256, %eax                      ## imm = 0x100
	movzbl	%r8b, %edx
	incl	%edx
	movq	_vdp1width@GOTPCREL(%rip), %rcx
	movl	%r9d, (%rcx)
	movq	_vdp1height@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_vdp1pixelsize@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	popq	%rbp
	jmp	_VIDSoftVdp1EraseFrameBuffer    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp1interlace,4,2              ## @vdp1interlace
	.comm	_vdp1width,4,2                  ## @vdp1width
	.comm	_vdp1height,4,2                 ## @vdp1height
	.comm	_vdp1pixelsize,4,2              ## @vdp1pixelsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1DrawStartBody       ; -- Begin function VIDSoftVdp1DrawStartBody
	.p2align	2
_VIDSoftVdp1DrawStartBody:              ; @VIDSoftVdp1DrawStartBody
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	tst	w8, #0x8
	mov	w8, #1
Lloh0:
	adrp	x10, _vdp1interlace@GOTPAGE
Lloh1:
	ldr	x10, [x10, _vdp1interlace@GOTPAGEOFF]
	cinc	w11, w8, ne
Lloh2:
	str	w11, [x10]
	tst	w9, #0x2
	mov	w10, #512
	mov	w11, #1024
	csel	w11, w11, w10, eq
	mov	w12, #3
	bics	wzr, w12, w9
	mov	w12, #256
	csel	w12, w10, w12, eq
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	cinc	w8, w8, eq
Lloh3:
	adrp	x10, _vdp1width@GOTPAGE
Lloh4:
	ldr	x10, [x10, _vdp1width@GOTPAGEOFF]
Lloh5:
	str	w9, [x10]
Lloh6:
	adrp	x9, _vdp1height@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vdp1height@GOTPAGEOFF]
Lloh8:
	str	w12, [x9]
Lloh9:
	adrp	x9, _vdp1pixelsize@GOTPAGE
Lloh10:
	ldr	x9, [x9, _vdp1pixelsize@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	b	_VIDSoftVdp1EraseFrameBuffer
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp1interlace,4,2              ; @vdp1interlace
	.comm	_vdp1width,4,2                  ; @vdp1width
	.comm	_vdp1height,4,2                 ; @vdp1height
	.comm	_vdp1pixelsize,4,2              ; @vdp1pixelsize
.subsections_via_symbols
