	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp2DrawStart           ## -- Begin function VIDSoftVdp2DrawStart
	.p2align	4, 0x90
_VIDSoftVdp2DrawStart:                  ## @VIDSoftVdp2DrawStart
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_Vdp2Regs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testl	$512, %ecx                      ## imm = 0x200
	jne	LBB0_1
## %bb.2:
	movq	_TITAN_BLEND_TOP@GOTPCREL(%rip), %rax
	testl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_TITAN_BLEND_BOTTOM@GOTPCREL(%rip), %rax
	testl	$256, %ecx                      ## imm = 0x100
	je	LBB0_5
LBB0_4:
	movq	_TITAN_BLEND_ADD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_TitanSetBlendingMode
	xorl	%eax, %eax
	callq	_Vdp2DrawBackScreen
	xorl	%eax, %eax
	callq	_Vdp2DrawLineScreen
	movq	(%rbx), %rax
	cmpl	$21862, 4(%rax)                 ## imm = 0x5566
	jne	LBB0_13
## %bb.6:
	cmpl	$18431, 8(%rax)                 ## imm = 0x47FF
	jne	LBB0_13
## %bb.7:
	cmpl	$65535, 12(%rax)                ## imm = 0xFFFF
	jne	LBB0_13
## %bb.8:
	cmpl	$65535, 16(%rax)                ## imm = 0xFFFF
	jne	LBB0_13
## %bb.9:
	cmpl	$4863, 20(%rax)                 ## imm = 0x12FF
	jne	LBB0_13
## %bb.10:
	cmpl	$1023, 24(%rax)                 ## imm = 0x3FF
	jne	LBB0_13
## %bb.11:
	cmpl	$65535, 28(%rax)                ## imm = 0xFFFF
	jne	LBB0_13
## %bb.12:
	movl	$1, %ecx
	cmpl	$65535, 32(%rax)                ## imm = 0xFFFF
	je	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movq	_bad_cycle_setting@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TITAN_NBG3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TITAN_BLEND_TOP,4,2            ## @TITAN_BLEND_TOP
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_TITAN_BLEND_ADD,4,2            ## @TITAN_BLEND_ADD
	.comm	_TITAN_BLEND_BOTTOM,4,2         ## @TITAN_BLEND_BOTTOM
	.comm	_bad_cycle_setting,8,3          ## @bad_cycle_setting
	.comm	_TITAN_NBG3,8,3                 ## @TITAN_NBG3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp2DrawStart           ; -- Begin function VIDSoftVdp2DrawStart
	.p2align	2
_VIDSoftVdp2DrawStart:                  ; @VIDSoftVdp2DrawStart
	.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	x19, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Vdp2Regs@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _TITAN_BLEND_TOP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TITAN_BLEND_TOP@GOTPAGEOFF]
Lloh4:
	adrp	x10, _TITAN_BLEND_BOTTOM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _TITAN_BLEND_BOTTOM@GOTPAGEOFF]
	tst	w8, #0x200
	csel	x9, x9, x10, eq
Lloh6:
	adrp	x10, _TITAN_BLEND_ADD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TITAN_BLEND_ADD@GOTPAGEOFF]
	tst	w8, #0x100
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_TitanSetBlendingMode
	bl	_Vdp2DrawBackScreen
	bl	_Vdp2DrawLineScreen
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	mov	w10, #21862
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.1:
	ldr	w9, [x8, #8]
	mov	w10, #18431
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.2:
	ldr	w10, [x8, #12]
	mov	w9, #65535
	cmp	w10, w9
	b.ne	LBB0_9
; %bb.3:
	ldr	w10, [x8, #16]
	cmp	w10, w9
	b.ne	LBB0_9
; %bb.4:
	ldr	w9, [x8, #20]
	mov	w10, #4863
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.5:
	ldr	w9, [x8, #24]
	cmp	w9, #1023
	b.ne	LBB0_9
; %bb.6:
	ldr	w10, [x8, #28]
	mov	w9, #65535
	cmp	w10, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x8, #32]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #1
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
Lloh8:
	adrp	x9, _bad_cycle_setting@GOTPAGE
Lloh9:
	ldr	x9, [x9, _bad_cycle_setting@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _TITAN_NBG3@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TITAN_NBG3@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TITAN_BLEND_TOP,4,2            ; @TITAN_BLEND_TOP
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_TITAN_BLEND_ADD,4,2            ; @TITAN_BLEND_ADD
	.comm	_TITAN_BLEND_BOTTOM,4,2         ; @TITAN_BLEND_BOTTOM
	.comm	_bad_cycle_setting,8,3          ; @bad_cycle_setting
	.comm	_TITAN_NBG3,8,3                 ; @TITAN_NBG3
.subsections_via_symbols
