	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp2DrawScreens          ## -- Begin function VIDGCDVdp2DrawScreens
	.p2align	4, 0x90
_VIDGCDVdp2DrawScreens:                 ## @VIDGCDVdp2DrawScreens
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Vdp2Regs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_VIDGCDVdp2SetResolution
	movq	(%rbx), %rax
	movl	(%rax), %edi
	andl	$7, %edi
	callq	_VIDGCDVdp2SetPriorityNBG0
	movq	(%rbx), %rax
	movl	(%rax), %edi
	shrl	$8, %edi
	andl	$7, %edi
	callq	_VIDGCDVdp2SetPriorityNBG1
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	andl	$7, %edi
	callq	_VIDGCDVdp2SetPriorityNBG2
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	shrl	$8, %edi
	andl	$7, %edi
	callq	_VIDGCDVdp2SetPriorityNBG3
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	andl	$7, %edi
	callq	_VIDGCDVdp2SetPriorityRBG0
	movl	$1, %ebx
	movq	_nbg1priority@GOTPCREL(%rip), %r12
	movq	_nbg0priority@GOTPCREL(%rip), %r13
	movq	_rbg0priority@GOTPCREL(%rip), %r14
	movq	_vdp1draw_info@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	cmpq	$8, %rbx
	je	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_nbg3priority@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_Vdp2DrawNBG3
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_nbg2priority@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_Vdp2DrawNBG2
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_Vdp2DrawNBG1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_Vdp2DrawNBG0
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_Vdp2DrawRBG0
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_Vdp1DrawPriority
	movq	(%r15), %rax
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_nbg3priority,4,2               ## @nbg3priority
	.comm	_nbg2priority,4,2               ## @nbg2priority
	.comm	_nbg1priority,4,2               ## @nbg1priority
	.comm	_nbg0priority,4,2               ## @nbg0priority
	.comm	_rbg0priority,4,2               ## @rbg0priority
	.comm	_vdp1draw_info,8,3              ## @vdp1draw_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp2DrawScreens          ; -- Begin function VIDGCDVdp2DrawScreens
	.p2align	2
_VIDGCDVdp2DrawScreens:                 ; @VIDGCDVdp2DrawScreens
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x19, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Vdp2Regs@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_VIDGCDVdp2SetResolution
	ldr	x8, [x19]
	ldr	w8, [x8]
	and	w0, w8, #0x7
	bl	_VIDGCDVdp2SetPriorityNBG0
	ldr	x8, [x19]
	ldr	w8, [x8]
	ubfx	w0, w8, #8, #3
	bl	_VIDGCDVdp2SetPriorityNBG1
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	and	w0, w8, #0x7
	bl	_VIDGCDVdp2SetPriorityNBG2
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	ubfx	w0, w8, #8, #3
	bl	_VIDGCDVdp2SetPriorityNBG3
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	and	w0, w8, #0x7
	bl	_VIDGCDVdp2SetPriorityRBG0
	mov	w19, #1
Lloh2:
	adrp	x20, _nbg3priority@GOTPAGE
Lloh3:
	ldr	x20, [x20, _nbg3priority@GOTPAGEOFF]
Lloh4:
	adrp	x21, _nbg2priority@GOTPAGE
Lloh5:
	ldr	x21, [x21, _nbg2priority@GOTPAGEOFF]
Lloh6:
	adrp	x22, _nbg1priority@GOTPAGE
Lloh7:
	ldr	x22, [x22, _nbg1priority@GOTPAGEOFF]
Lloh8:
	adrp	x23, _nbg0priority@GOTPAGE
Lloh9:
	ldr	x23, [x23, _nbg0priority@GOTPAGEOFF]
Lloh10:
	adrp	x24, _rbg0priority@GOTPAGE
Lloh11:
	ldr	x24, [x24, _rbg0priority@GOTPAGEOFF]
Lloh12:
	adrp	x25, _vdp1draw_info@GOTPAGE
Lloh13:
	ldr	x25, [x25, _vdp1draw_info@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x8, x19, lsl #3]
	add	x19, x19, #1
	cmp	x19, #8
	b.eq	LBB0_14
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	x19, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_Vdp2DrawNBG3
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cmp	x19, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_Vdp2DrawNBG2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cmp	x19, x8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_Vdp2DrawNBG1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	cmp	x19, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_Vdp2DrawNBG0
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	cmp	x19, x8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_Vdp2DrawRBG0
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x8, x19, lsl #3]
	cbz	x9, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_Vdp1DrawPriority
	ldr	x8, [x25]
	b	LBB0_1
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_nbg3priority,4,2               ; @nbg3priority
	.comm	_nbg2priority,4,2               ; @nbg2priority
	.comm	_nbg1priority,4,2               ; @nbg1priority
	.comm	_nbg0priority,4,2               ; @nbg0priority
	.comm	_rbg0priority,4,2               ; @rbg0priority
	.comm	_vdp1draw_info,8,3              ; @vdp1draw_info
.subsections_via_symbols
