	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp2DrawEnd             ## -- Begin function VIDSoftVdp2DrawEnd
	.p2align	4, 0x90
_VIDSoftVdp2DrawEnd:                    ## @VIDSoftVdp2DrawEnd
	.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	_vidsoft_num_layer_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	_vidsoft_thread_context@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TITAN_NBG0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_2
## %bb.3:
	movq	_TITAN_NBG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_4
## %bb.5:
	movq	_TITAN_NBG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_6
## %bb.7:
	movq	_TITAN_NBG3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_8
## %bb.9:
	movq	_TITAN_RBG0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_10
## %bb.11:
	movq	_TITAN_SPRITE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_12
LBB0_13:
	movq	_dispbuffer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_TitanRender
	xorl	%eax, %eax
	callq	_VIDSoftVdp1SwapFrameBuffer
	xorl	%eax, %eax
	callq	_OSDUseBuffer
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%rbx), %rdi
	movq	_vdp2width@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vdp2height@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_OSDDisplayMessages
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_YuiSwapBuffers                 ## TAILCALL
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_vidsoft_num_layer_threads,8,3  ## @vidsoft_num_layer_threads
	.comm	_vidsoft_thread_context,8,3     ## @vidsoft_thread_context
	.comm	_TITAN_NBG0,8,3                 ## @TITAN_NBG0
	.comm	_TITAN_NBG1,8,3                 ## @TITAN_NBG1
	.comm	_TITAN_NBG2,8,3                 ## @TITAN_NBG2
	.comm	_TITAN_NBG3,8,3                 ## @TITAN_NBG3
	.comm	_TITAN_RBG0,8,3                 ## @TITAN_RBG0
	.comm	_TITAN_SPRITE,8,3               ## @TITAN_SPRITE
	.comm	_dispbuffer,8,3                 ## @dispbuffer
	.comm	_vdp2width,4,2                  ## @vdp2width
	.comm	_vdp2height,4,2                 ## @vdp2height
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp2DrawEnd             ; -- Begin function VIDSoftVdp2DrawEnd
	.p2align	2
_VIDSoftVdp2DrawEnd:                    ; @VIDSoftVdp2DrawEnd
	.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, _vidsoft_num_layer_threads@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vidsoft_num_layer_threads@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _vidsoft_thread_context@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vidsoft_thread_context@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TITAN_NBG0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TITAN_NBG0@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_10
; %bb.2:
Lloh9:
	adrp	x9, _TITAN_NBG1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TITAN_NBG1@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_11
; %bb.3:
Lloh12:
	adrp	x9, _TITAN_NBG2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TITAN_NBG2@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_12
; %bb.4:
Lloh15:
	adrp	x9, _TITAN_NBG3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TITAN_NBG3@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_13
; %bb.5:
Lloh18:
	adrp	x9, _TITAN_RBG0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TITAN_RBG0@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_14
; %bb.6:
Lloh21:
	adrp	x9, _TITAN_SPRITE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TITAN_SPRITE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_15
LBB0_7:
Lloh24:
	adrp	x19, _dispbuffer@GOTPAGE
Lloh25:
	ldr	x19, [x19, _dispbuffer@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_TitanRender
	bl	_VIDSoftVdp1SwapFrameBuffer
	bl	_OSDUseBuffer
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
Lloh26:
	adrp	x8, _vdp2width@GOTPAGE
Lloh27:
	ldr	x8, [x8, _vdp2width@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _vdp2height@GOTPAGE
Lloh30:
	ldr	x8, [x8, _vdp2height@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_OSDDisplayMessages
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_YuiSwapBuffers
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_13
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_14
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_vidsoft_num_layer_threads,8,3  ; @vidsoft_num_layer_threads
	.comm	_vidsoft_thread_context,8,3     ; @vidsoft_thread_context
	.comm	_TITAN_NBG0,8,3                 ; @TITAN_NBG0
	.comm	_TITAN_NBG1,8,3                 ; @TITAN_NBG1
	.comm	_TITAN_NBG2,8,3                 ; @TITAN_NBG2
	.comm	_TITAN_NBG3,8,3                 ; @TITAN_NBG3
	.comm	_TITAN_RBG0,8,3                 ; @TITAN_RBG0
	.comm	_TITAN_SPRITE,8,3               ; @TITAN_SPRITE
	.comm	_dispbuffer,8,3                 ; @dispbuffer
	.comm	_vdp2width,4,2                  ; @vdp2width
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
.subsections_via_symbols
