	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function VIDGCDVdp2DrawEnd
LCPI0_0:
	.long	7                               ## 0x7
	.long	7                               ## 0x7
	.long	7                               ## 0x7
	.long	7                               ## 0x7
LCPI0_1:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.long	256                             ## 0x100
	.long	256                             ## 0x100
	.space	4
	.space	4
LCPI0_3:
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VIDGCDVdp2DrawEnd
	.p2align	4, 0x90
_VIDGCDVdp2DrawEnd:                     ## @VIDGCDVdp2DrawEnd
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_dispbuffer@GOTPCREL(%rip), %rsi
	movq	_vdp2framebuffer@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	_Vdp1External@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.5:
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%rdx), %eax
	movl	8(%rdx), %ecx
	movd	%eax, %xmm0
	shrl	$8, %eax
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	shrl	$8, %ecx
	pinsrd	$3, %ecx, %xmm0
	movl	(%rdx), %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [7,7,7,7]
	pand	%xmm1, %xmm0
	movdqa	%xmm0, -80(%rbp)
	movl	12(%rdx), %eax
	movl	16(%rdx), %ecx
	movd	%eax, %xmm0
	shrl	$8, %eax
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	movq	(%rsi), %r12
	shrl	$8, %ecx
	pinsrd	$3, %ecx, %xmm0
	pand	%xmm1, %xmm0
	movdqa	%xmm0, -64(%rbp)
	movl	20(%rdx), %ebx
	movl	%edi, -200(%rbp)                ## 4-byte Spill
	movl	%edi, %eax
	andl	$15, %eax
	movq	_vdp1spritetype@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testb	$64, 24(%rdx)
	jne	LBB0_6
LBB0_13:
	testb	$64, 56(%rdx)
	jne	LBB0_14
## %bb.19:
	movq	_DoNothing@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_1:
	movq	_vdp2width@GOTPCREL(%rip), %r15
	movq	_vdp2height@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	imull	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_46
## %bb.2:
	movl	(%r14), %edi
	callq	_COLSATSTRIPPRIORITY
	movq	_dispbuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %eax
	imull	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_46
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_COLSATSTRIPPRIORITY
	movq	_dispbuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	movslq	(%r12), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_46
LBB0_6:
	testb	$64, 28(%rdx)
	jne	LBB0_7
## %bb.8:
	movq	44(%rdx), %xmm1                 ## xmm1 = mem[0],zero
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,0,0,0,0,0,0,0,0]
	pand	%xmm1, %xmm2
	pand	LCPI0_2(%rip), %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_3(%rip), %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, -192(%rbp)
	pextrd	$1, %xmm0, -188(%rbp)
	movl	52(%rdx), %ecx
	jmp	LBB0_9
LBB0_14:
	movq	_DoColorCalc@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_7:
	movq	32(%rdx), %xmm1                 ## xmm1 = mem[0],zero
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,0,0,0,0,0,0,0,0]
	pand	%xmm1, %xmm2
	pand	LCPI0_2(%rip), %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_3(%rip), %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, -192(%rbp)
	pextrd	$1, %xmm0, -188(%rbp)
	movl	40(%rdx), %ecx
LBB0_9:
	movzbl	%cl, %eax
	movl	%eax, -184(%rbp)
	testl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_15
## %bb.10:
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm0
	movmskpd	%xmm0, %ecx
	testb	$1, %cl
	je	LBB0_16
## %bb.11:
	shrb	%cl
	je	LBB0_16
## %bb.12:
	testl	%eax, %eax
	je	LBB0_13
LBB0_16:
	testb	$64, 56(%rdx)
	jne	LBB0_17
LBB0_18:
	movq	_DoColorOffset@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	orl	$-256, %ecx
	movl	%ecx, -184(%rbp)
	testb	$64, 56(%rdx)
	je	LBB0_18
LBB0_17:
	movq	_DoColorCalcWithColorOffset@GOTPCREL(%rip), %rax
LBB0_20:
	movq	%rax, -176(%rbp)
	movl	60(%rdx), %r15d
	sarl	$8, %r15d
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -96(%rbp)
	movapd	%xmm0, -112(%rbp)
	movapd	%xmm0, -128(%rbp)
	movapd	%xmm0, -144(%rbp)
	leaq	-144(%rbp), %rsi
	movl	%r15d, %edi
	callq	_ReadWindowData
	movl	$0, -164(%rbp)
	movl	$0, -168(%rbp)
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	-204(%rbp), %rdi
	leaq	-168(%rbp), %rdx
	leaq	-164(%rbp), %rcx
	movl	%r15d, %esi
	callq	_ReadLineWindowData
	movq	_vdp2height@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_46
## %bb.21:
	andl	$112, %ebx
	shll	$4, %ebx
	movl	%ebx, -196(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_22 Depth=1
	incl	%ebx
	movq	_vdp2height@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_46
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	-204(%rbp), %edi
	movq	_Vdp2Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	leaq	-144(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	leaq	-164(%rbp), %rcx
	callq	_ReadLineWindowClip
	movq	_vdp2width@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_45
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	4(%r14), %edi
	addq	$4, %r14
	callq	_COLSATSTRIPPRIORITY
	movl	%eax, (%r12)
LBB0_44:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$4, %r12
	incq	%r13
	movq	_vdp2width@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_45
LBB0_24:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	movl	$2, %esi
	movl	$1, %edx
	leaq	-144(%rbp), %rcx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	callq	_TestWindow
	testl	%eax, %eax
	je	LBB0_42
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	%r15d, %edi
	movl	$8, %esi
	movl	$4, %edx
	leaq	-112(%rbp), %rcx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	callq	_TestWindow
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	_vdp1width@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ebx, %rcx
	imulq	%rax, %rcx
	addq	%r13, %rcx
	movq	_vdp1pixelsize@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	_vdp1frontframebuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	movl	%esi, -156(%rbp)
	jne	LBB0_40
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	testl	%esi, %esi
	je	LBB0_42
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	testl	$32768, %esi                    ## imm = 0x8000
	je	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	-200(%rbp), %eax                ## 4-byte Reload
	andl	$32, %eax
	je	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	-80(%rbp), %eax
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movl	(%r14), %edi
	callq	_Vdp2GetPixelPriority
	cmpl	%eax, -152(%rbp)                ## 4-byte Folded Reload
	jl	LBB0_42
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	-156(%rbp), %esi
	cmpl	$32768, %esi                    ## imm = 0x8000
	jne	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	_vdp1spritetype@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpl	$7, %eax
	ja	LBB0_42
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testb	$16, (%rax)
	jne	LBB0_42
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-176(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	$255, %edi
	callq	_COLSAT2YAB16
	jmp	LBB0_37
LBB0_40:                                ##   in Loop: Header=BB0_24 Depth=2
	testl	%esi, %esi
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_24 Depth=2
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	jmp	LBB0_42
LBB0_38:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	$0, -160(%rbp)
	movq	_vdp1spritetype@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-156(%rbp), %rsi
	leaq	-212(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	leaq	-208(%rbp), %r8
	callq	_Vdp1ProcessSpritePixel
	movslq	-160(%rbp), %rax
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movl	(%r14), %edi
	callq	_Vdp2GetPixelPriority
	cmpl	%eax, -152(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_39
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	(%r14), %edi
	callq	_COLSATSTRIPPRIORITY
LBB0_43:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	%eax, (%r12)
	addq	$4, %r14
	jmp	LBB0_44
LBB0_39:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-176(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	-156(%rbp), %edi
	addl	-196(%rbp), %edi                ## 4-byte Folded Reload
	callq	_Vdp2ColorRamGetColor
	movl	$255, %edi
	movl	%eax, %esi
	callq	_COLSAT2YAB32
LBB0_37:                                ##   in Loop: Header=BB0_24 Depth=2
	leaq	-192(%rbp), %rdi
	movl	%eax, %esi
	callq	*-152(%rbp)                     ## 8-byte Folded Reload
	jmp	LBB0_43
LBB0_46:
	xorl	%eax, %eax
	callq	_VIDGCDVdp1SwapFrameBuffer
	xorl	%eax, %eax
	callq	_OSDUseBuffer
	testq	%rax, %rax
	je	LBB0_48
## %bb.47:
	movq	_dispbuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_vdp2width@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vdp2height@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_OSDDisplayMessages
LBB0_48:
	xorl	%eax, %eax
	callq	_YuiSwapBuffers
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.49:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_dispbuffer,8,3                 ## @dispbuffer
	.comm	_vdp2framebuffer,8,3            ## @vdp2framebuffer
	.comm	_Vdp1External,8,3               ## @Vdp1External
	.comm	_vdp1spritetype,4,2             ## @vdp1spritetype
	.comm	_vdp2height,4,2                 ## @vdp2height
	.comm	_Vdp2Ram,4,2                    ## @Vdp2Ram
	.comm	_vdp2width,4,2                  ## @vdp2width
	.comm	_vdp1pixelsize,4,2              ## @vdp1pixelsize
	.comm	_vdp1frontframebuffer,8,3       ## @vdp1frontframebuffer
	.comm	_vdp1width,4,2                  ## @vdp1width
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8-bit Color Bank draw - %02X\n"

	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_outputheight,8,3               ## @outputheight
	.comm	_outputwidth,8,3                ## @outputwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp2DrawEnd              ; -- Begin function VIDGCDVdp2DrawEnd
	.p2align	2
_VIDGCDVdp2DrawEnd:                     ; @VIDGCDVdp2DrawEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x9, _dispbuffer@GOTPAGE
Lloh4:
	ldr	x9, [x9, _dispbuffer@GOTPAGEOFF]
Lloh5:
	adrp	x19, _vdp2framebuffer@GOTPAGE
Lloh6:
	ldr	x19, [x19, _vdp2framebuffer@GOTPAGEOFF]
Lloh7:
	adrp	x8, _Vdp1External@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Vdp1External@GOTPAGEOFF]
	ldr	x27, [x19]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x25, _vdp2width@GOTPAGE
Lloh11:
	ldr	x25, [x25, _vdp2width@GOTPAGEOFF]
Lloh12:
	adrp	x23, _vdp2height@GOTPAGE
Lloh13:
	ldr	x23, [x23, _vdp2height@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
Lloh14:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x8]
	ldr	x24, [x9]
	ldp	w11, w8, [x2]
	and	w9, w8, #0x7
	ubfx	w8, w8, #8, #3
	stp	w9, w8, [sp, #128]
	ldp	w8, w9, [x2, #8]
	and	w10, w8, #0x7
	ubfx	w8, w8, #8, #3
	stp	w10, w8, [sp, #136]
	and	w8, w9, #0x7
	ubfx	w9, w9, #8, #3
	stp	w8, w9, [sp, #144]
	ldp	w8, w21, [x2, #16]
	and	w9, w8, #0x7
	ubfx	w8, w8, #8, #3
	stp	w9, w8, [sp, #152]
	str	w11, [sp, #4]                   ; 4-byte Folded Spill
	and	w8, w11, #0xf
Lloh17:
	adrp	x9, _vdp1spritetype@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vdp1spritetype@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	ldrb	w8, [x2, #24]
	tbnz	w8, #6, LBB0_8
LBB0_2:
	ldrb	w8, [x2, #56]
	tbnz	w8, #6, LBB0_10
; %bb.3:
Lloh20:
	adrp	x8, _DoNothing@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DoNothing@GOTPAGEOFF]
	b	LBB0_20
LBB0_4:
	ldr	w8, [x25]
	ldr	w9, [x23]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_50
; %bb.5:
	ldr	w0, [x27]
	bl	_COLSATSTRIPPRIORITY
Lloh22:
	adrp	x8, _dispbuffer@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dispbuffer@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	w0, [x8]
	ldr	w8, [x25]
	ldr	w9, [x23]
	mul	w8, w9, w8
	cmp	w8, #2
	b.lt	LBB0_50
; %bb.6:
	mov	w20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x21, x20, #2
	ldr	w0, [x8, x21]
	bl	_COLSATSTRIPPRIORITY
Lloh25:
	adrp	x8, _dispbuffer@GOTPAGE
Lloh26:
	ldr	x8, [x8, _dispbuffer@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	w0, [x8, x21]
	add	x20, x20, #1
	ldrsw	x8, [x25]
	ldrsw	x9, [x23]
	mul	x8, x9, x8
	cmp	x20, x8
	b.lt	LBB0_7
	b	LBB0_50
LBB0_8:
	ldrb	w8, [x2, #28]
	tbnz	w8, #6, LBB0_11
; %bb.9:
	ldur	d0, [x2, #44]
	movi	d1, #0x0000ff000000ff
	and.8b	v1, v0, v1
	movi.2s	v2, #1, lsl #8
	cmtst.2s	v0, v0, v2
	bic.2s	v0, #255
	orr.8b	v0, v0, v1
	str	d0, [sp, #32]
	ldr	w9, [x2, #52]
	b	LBB0_12
LBB0_10:
Lloh28:
	adrp	x8, _DoColorCalc@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DoColorCalc@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
	ldr	d0, [x2, #32]
	movi	d1, #0x0000ff000000ff
	and.8b	v1, v0, v1
	movi.2s	v2, #1, lsl #8
	cmtst.2s	v0, v0, v2
	bic.2s	v0, #255
	orr.8b	v0, v0, v1
	str	d0, [sp, #32]
	ldr	w9, [x2, #40]
LBB0_12:
	and	w8, w9, #0xff
	str	w8, [sp, #40]
	tbnz	w9, #8, LBB0_18
; %bb.13:
	cmeq.2s	v0, v0, #0
	fmov	w9, s0
	tbz	w9, #0, LBB0_16
; %bb.14:
	mov.s	w9, v0[1]
	tbz	w9, #0, LBB0_16
; %bb.15:
	cbz	w8, LBB0_2
LBB0_16:
	ldrb	w8, [x2, #56]
	tbnz	w8, #6, LBB0_19
LBB0_17:
Lloh30:
	adrp	x8, _DoColorOffset@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DoColorOffset@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	orr	w8, w9, #0xffffff00
	str	w8, [sp, #40]
	ldrb	w8, [x2, #56]
	tbz	w8, #6, LBB0_17
LBB0_19:
Lloh32:
	adrp	x8, _DoColorCalcWithColorOffset@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DoColorCalcWithColorOffset@GOTPAGEOFF]
LBB0_20:
	str	x8, [sp, #48]
	ldr	w8, [x2, #60]
	asr	w19, w8, #8
	add	x22, sp, #64
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #96]
	add	x1, sp, #64
	mov	x0, x19
	bl	_ReadWindowData
	stp	wzr, wzr, [sp, #20]
Lloh34:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh35:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh36:
	ldr	x4, [x8]
	add	x0, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x1, x19
	bl	_ReadLineWindowData
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_50
; %bb.21:
	mov	w20, #0
	lsl	w8, w21, #4
	and	w8, w8, #0x700
	str	w8, [sp]                        ; 4-byte Folded Spill
Lloh37:
	adrp	x26, _vdp1pixelsize@GOTPAGE
Lloh38:
	ldr	x26, [x26, _vdp1pixelsize@GOTPAGEOFF]
Lloh39:
	adrp	x28, _vdp1frontframebuffer@GOTPAGE
Lloh40:
	ldr	x28, [x28, _vdp1frontframebuffer@GOTPAGEOFF]
	add	x21, x22, #32
Lloh41:
	adrp	x22, _vdp1width@GOTPAGE
Lloh42:
	ldr	x22, [x22, _vdp1width@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w20, w20, #1
Lloh43:
	adrp	x23, _vdp2height@GOTPAGE
Lloh44:
	ldr	x23, [x23, _vdp2height@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_50
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	ldr	w0, [sp, #28]
Lloh45:
	adrp	x8, _Vdp2Ram@GOTPAGE
Lloh46:
	ldr	x8, [x8, _Vdp2Ram@GOTPAGEOFF]
Lloh47:
	ldr	w4, [x8]
Lloh48:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh49:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh50:
	ldr	x5, [x8]
	add	x1, sp, #64
	add	x2, sp, #24
	add	x3, sp, #20
	bl	_ReadLineWindowClip
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x23, #0
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w0, [x27], #4
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=2
	bl	_COLSATSTRIPPRIORITY
	str	w0, [x24]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	add	x24, x24, #4
	ldr	w8, [x25]
	add	x23, x23, #1
	cmp	w23, w8
	b.ge	LBB0_22
LBB0_28:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, sp, #64
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	mov	x4, x23
	mov	x5, x20
	bl	_TestWindow
	cbz	w0, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	x0, x19
	mov	w1, #8
	mov	w2, #4
	mov	x3, x21
	mov	x4, x23
	mov	x5, x20
	bl	_TestWindow
	cbz	w0, LBB0_40
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=2
	ldr	w8, [x26]
	ldr	x9, [x28]
	ldrsw	x10, [x22]
	sxtw	x11, w20
	madd	x10, x11, x10, x23
	ldr	w1, [x9, x10, lsl #2]
	str	w1, [sp, #60]
	cmp	w8, #2
	b.ne	LBB0_41
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=2
	cbz	w1, LBB0_43
; %bb.32:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	x25, x22
	mov	x22, x28
	mov	x28, x26
	tbz	w1, #15, LBB0_44
; %bb.33:                               ;   in Loop: Header=BB0_28 Depth=2
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	tbz	w8, #5, LBB0_44
; %bb.34:                               ;   in Loop: Header=BB0_28 Depth=2
	ldr	w26, [sp, #128]
	ldr	w0, [x27]
	bl	_Vdp2GetPixelPriority
	cmp	w26, w0
	b.lt	LBB0_45
; %bb.35:                               ;   in Loop: Header=BB0_28 Depth=2
	ldr	w1, [sp, #60]
	cmp	w1, #8, lsl #12                 ; =32768
	b.ne	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_28 Depth=2
Lloh51:
	adrp	x8, _vdp1spritetype@GOTPAGE
Lloh52:
	ldr	x8, [x8, _vdp1spritetype@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_28 Depth=2
	cmp	w8, #7
	b.hi	LBB0_45
; %bb.38:                               ;   in Loop: Header=BB0_28 Depth=2
Lloh54:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh55:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldrb	w8, [x8]
	tbnz	w8, #4, LBB0_45
LBB0_39:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	x26, [sp, #48]
	mov	w0, #255
	bl	_COLSAT2YAB16
	b	LBB0_47
LBB0_40:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w0, [x27, #4]!
	b	LBB0_26
LBB0_41:                                ;   in Loop: Header=BB0_28 Depth=2
	cbz	w1, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_28 Depth=2
Lloh57:
	adrp	x0, l_.str@PAGE
Lloh58:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
LBB0_43:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w0, [x27]
	bl	_COLSATSTRIPPRIORITY
	str	w0, [x24]
	b	LBB0_49
LBB0_44:                                ;   in Loop: Header=BB0_28 Depth=2
	str	wzr, [sp, #16]
Lloh59:
	adrp	x8, _vdp1spritetype@GOTPAGE
Lloh60:
	ldr	x8, [x8, _vdp1spritetype@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	add	x1, sp, #60
	add	x2, sp, #12
	add	x3, sp, #16
	add	x4, sp, #8
	bl	_Vdp1ProcessSpritePixel
	ldrsw	x8, [sp, #16]
	add	x9, sp, #128
	ldr	w26, [x9, x8, lsl #2]
	ldr	w0, [x27]
	bl	_Vdp2GetPixelPriority
	cmp	w26, w0
	b.ge	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w0, [x27]
	bl	_COLSATSTRIPPRIORITY
	b	LBB0_48
LBB0_46:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	x26, [sp, #48]
	ldr	w8, [sp, #60]
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	add	w0, w8, w9
	bl	_Vdp2ColorRamGetColor
	mov	x1, x0
	mov	w0, #255
	bl	_COLSAT2YAB32
LBB0_47:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	x1, x0
	add	x0, sp, #32
	blr	x26
LBB0_48:                                ;   in Loop: Header=BB0_28 Depth=2
	str	w0, [x24]
	mov	x26, x28
	mov	x28, x22
	mov	x22, x25
Lloh62:
	adrp	x25, _vdp2width@GOTPAGE
Lloh63:
	ldr	x25, [x25, _vdp2width@GOTPAGEOFF]
LBB0_49:                                ;   in Loop: Header=BB0_28 Depth=2
	add	x27, x27, #4
	b	LBB0_27
LBB0_50:
	bl	_VIDGCDVdp1SwapFrameBuffer
	bl	_OSDUseBuffer
	cbz	x0, LBB0_52
; %bb.51:
Lloh64:
	adrp	x8, _dispbuffer@GOTPAGE
Lloh65:
	ldr	x8, [x8, _dispbuffer@GOTPAGEOFF]
Lloh66:
	ldr	x0, [x8]
	ldr	w1, [x25]
	ldr	w2, [x23]
	bl	_OSDDisplayMessages
LBB0_52:
	bl	_YuiSwapBuffers
	ldur	x8, [x29, #-96]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.53:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_54:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_dispbuffer,8,3                 ; @dispbuffer
	.comm	_vdp2framebuffer,8,3            ; @vdp2framebuffer
	.comm	_Vdp1External,8,3               ; @Vdp1External
	.comm	_vdp1spritetype,4,2             ; @vdp1spritetype
	.comm	_vdp2height,4,2                 ; @vdp2height
	.comm	_Vdp2Ram,4,2                    ; @Vdp2Ram
	.comm	_vdp2width,4,2                  ; @vdp2width
	.comm	_vdp1pixelsize,4,2              ; @vdp1pixelsize
	.comm	_vdp1frontframebuffer,8,3       ; @vdp1frontframebuffer
	.comm	_vdp1width,4,2                  ; @vdp1width
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8-bit Color Bank draw - %02X\n"

	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_outputheight,8,3               ; @outputheight
	.comm	_outputwidth,8,3                ; @outputwidth
.subsections_via_symbols
