	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp2DebugStatsRBG0             ## -- Begin function Vdp2DebugStatsRBG0
	.p2align	4, 0x90
_Vdp2DebugStatsRBG0:                    ## @Vdp2DebugStatsRBG0
	.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	$104, %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	_Vdp2Regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	btl	$8, (%rax)
	adcl	$1, %r14d
	testb	$16, 4(%rax)
	jne	LBB0_2
## %bb.1:
	movl	$0, (%rsi)
	jmp	LBB0_25
LBB0_2:
	movq	%rdi, %r15
	movl	$1, (%rsi)
	movl	8(%rax), %ecx
	andl	$3, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	12(%rax), %ebx
	movl	%ebx, %r13d
	andl	$1, %r13d
	shrl	$2, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$65, %edx
	xorl	%eax, %eax
	callq	_AddString
	movb	$1, %r12b
	testl	%r13d, %r13d
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	16(%rax), %eax
	testb	$2, %al
	jne	LBB0_11
## %bb.6:
	movb	$1, %r13b
	testb	$4, %al
	je	LBB0_13
## %bb.7:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	leaq	-128(%rbp), %rsi
	leaq	-124(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	leaq	-116(%rbp), %r8
	movl	$1, %edi
	callq	_CalcWindowCoordinates
	movl	-128(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-124(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-120(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-116(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	jmp	LBB0_13
LBB0_8:
	movl	12(%rax), %ebx
	movl	%ebx, %r13d
	andl	$256, %r13d                     ## imm = 0x100
	shrl	$10, %ebx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	testl	%r13d, %r13d
	je	LBB0_10
LBB0_9:
	andl	$3, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_AddString
LBB0_10:
	movl	%r12d, %r13d
	movq	_Vdp2Regs@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	leaq	-128(%rbp), %rsi
	leaq	-124(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	leaq	-116(%rbp), %r8
	xorl	%edi, %edi
	callq	_CalcWindowCoordinates
	movl	-128(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-124(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-120(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	-116(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
LBB0_12:
	movb	$1, %r13b
LBB0_13:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_AddMosaicString
	movq	(%r12), %rcx
	movl	(%rcx), %esi
	shrl	$12, %esi
	andl	$7, %esi
	movq	%rax, %rdi
	callq	_AddBppString
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax), %esi
	testl	$512, %esi                      ## imm = 0x200
	jne	LBB0_16
## %bb.14:
	movl	24(%rax), %ebx
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	28(%rax), %eax
	shrl	$8, %eax
	testb	%r13b, %r13b
	movl	$3, %ecx
	movl	$48, %edi
	cmovnel	%ecx, %edi
	andl	%eax, %edi
	leaq	-136(%rbp), %rsi
	leaq	-132(%rbp), %rdx
	callq	_Vdp2GetPlaneSize
	movl	-136(%rbp), %edx
	movl	-132(%rbp), %ecx
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_19
## %bb.15:
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	jmp	LBB0_20
LBB0_16:
	shrl	$10, %esi
	andl	$1, %esi
	movl	20(%rax), %ecx
	movl	120(%rax), %edx
	testb	%r13b, %r13b
	jne	LBB0_18
## %bb.17:
	sarl	$4, %ecx
LBB0_18:
	movq	%r15, %rdi
	callq	_AddBitmapInfoString
	jmp	LBB0_24
LBB0_19:
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_AddString
	movl	%ebx, %edx
	shrl	$9, %edx
	andl	$1, %edx
	leaq	L_.str.16(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	%ebx, %edx
	shrl	$8, %edx
	andl	$1, %edx
	leaq	L_.str.17(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	%ebx, %edx
	shrl	$5, %edx
	andl	$7, %edx
	leaq	L_.str.18(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_AddString
	andl	$31, %ebx
	leaq	L_.str.19(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_AddString
LBB0_20:
	movq	(%r12), %rsi
	testb	%r13b, %r13b
	je	LBB0_22
## %bb.21:
	movl	32(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -112(%rbp)
	sarl	$8, %eax
	movl	%eax, -108(%rbp)
	movl	36(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -104(%rbp)
	sarl	$8, %eax
	movl	%eax, -100(%rbp)
	movl	40(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -96(%rbp)
	sarl	$8, %eax
	movl	%eax, -92(%rbp)
	movl	44(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -88(%rbp)
	sarl	$8, %eax
	movl	%eax, -84(%rbp)
	movl	48(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -80(%rbp)
	sarl	$8, %eax
	movl	%eax, -76(%rbp)
	movl	52(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -72(%rbp)
	sarl	$8, %eax
	movl	%eax, -68(%rbp)
	movl	56(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -64(%rbp)
	sarl	$8, %eax
	movl	%eax, -60(%rbp)
	leaq	60(%rsi), %rdx
	movl	$6, %eax
	movl	$8, %ecx
	jmp	LBB0_23
LBB0_22:
	movl	64(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -112(%rbp)
	sarl	$8, %eax
	movl	%eax, -108(%rbp)
	movl	68(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -104(%rbp)
	sarl	$8, %eax
	movl	%eax, -100(%rbp)
	movl	72(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -96(%rbp)
	sarl	$8, %eax
	movl	%eax, -92(%rbp)
	movl	76(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -88(%rbp)
	sarl	$8, %eax
	movl	%eax, -84(%rbp)
	movl	80(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -80(%rbp)
	sarl	$8, %eax
	movl	%eax, -76(%rbp)
	movl	84(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -72(%rbp)
	sarl	$8, %eax
	movl	%eax, -68(%rbp)
	movl	88(%rsi), %eax
	movzbl	%al, %ecx
	movl	%ecx, -64(%rbp)
	sarl	$8, %eax
	movl	%eax, -60(%rbp)
	leaq	92(%rsi), %rdx
	movl	$2, %eax
	movl	$12, %ecx
LBB0_23:
	movl	(%rdx), %edx
	movzbl	%dl, %edi
	movl	%edi, -56(%rbp)
	sarl	$8, %edx
	movl	%edx, -52(%rbp)
	movl	20(%rsi), %r8d
	movl	24(%rsi), %edx
	movl	28(%rsi), %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	andl	$3, %ebx
	movl	%eax, %ecx
	shll	%cl, %r8d
	andl	$448, %r8d                      ## imm = 0x1C0
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	movl	$16, %r9d
	callq	_AddMapInfo
LBB0_24:
	movq	(%r12), %rcx
	movl	116(%rcx), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_AddWindowInfoString
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	96(%rax), %edx
	andl	$7, %edx
	shll	$8, %edx
	leaq	L_.str.20(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	100(%rax), %esi
	sarl	$8, %esi
	movq	%rbx, %rdi
	callq	_AddSpecialPriorityInfo
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	104(%rax), %edx
	andl	$7, %edx
	leaq	L_.str.21(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	108(%rax), %ecx
	movl	112(%rax), %r8d
	andl	$31, %ecx
	shrl	$8, %r8d
	andl	$3, %r8d
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$1, %edx
	callq	_AddColorCalcInfo
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_AddColorOffsetInfo
	movq	(%r12), %rcx
	movl	112(%rcx), %edx
	shrl	$8, %edx
	andl	$3, %edx
	leaq	L_.str.22(%rip), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_AddString
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using Parameter %C\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using Parameter B\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"Parameter A/B switched via coefficients\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"Parameter A/B switched parameter window\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"Rotation Window 0 Enabled\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"Horizontal start = %d\r\n"

L_.str.6:                               ## @.str.6
	.asciz	"Vertical start = %d\r\n"

L_.str.7:                               ## @.str.7
	.asciz	"Horizontal end = %d\r\n"

L_.str.8:                               ## @.str.8
	.asciz	"Vertical end = %d\r\n"

L_.str.9:                               ## @.str.9
	.asciz	"Rotation Window 1 Enabled\r\n"

L_.str.10:                              ## @.str.10
	.asciz	"Coefficient Table Enabled(Mode %d)\r\n"

L_.str.11:                              ## @.str.11
	.asciz	"Tile(%dH x %dV)\r\n"

L_.str.12:                              ## @.str.12
	.asciz	"Plane Size = %dH x %dV\r\n"

L_.str.13:                              ## @.str.13
	.asciz	"Pattern Name data size = 2 words\r\n"

L_.str.14:                              ## @.str.14
	.asciz	"Pattern Name data size = 1 word\r\n"

L_.str.15:                              ## @.str.15
	.asciz	"Character Number Supplement bit = %d\r\n"

L_.str.16:                              ## @.str.16
	.asciz	"Special Priority bit = %d\r\n"

L_.str.17:                              ## @.str.17
	.asciz	"Special Color Calculation bit = %d\r\n"

L_.str.18:                              ## @.str.18
	.asciz	"Supplementary Palette number = %d\r\n"

L_.str.19:                              ## @.str.19
	.asciz	"Supplementary Color number = %d\r\n"

L_.str.20:                              ## @.str.20
	.asciz	"Color Ram Address Offset = %X\r\n"

L_.str.21:                              ## @.str.21
	.asciz	"Priority = %d\r\n"

L_.str.22:                              ## @.str.22
	.asciz	"Special Color Calculation %d\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function Vdp2DebugStatsRBG0
lCPI0_0:
	.long	4294967041                      ; 0xffffff01
	.long	4294967288                      ; 0xfffffff8
	.long	4294967041                      ; 0xffffff01
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Vdp2DebugStatsRBG0
	.p2align	2
_Vdp2DebugStatsRBG0:                    ; @Vdp2DebugStatsRBG0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _Vdp2Regs@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Vdp2Regs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrb	w9, [x8, #4]
	tbnz	w9, #4, LBB0_2
; %bb.1:
	str	wzr, [x1]
	b	LBB0_26
LBB0_2:
	ldr	w9, [x8]
	ubfx	w9, w9, #8, #1
	add	w19, w9, #1
	mov	w9, #1
	str	w9, [x1]
	ldr	w9, [x8, #8]
	and	x9, x9, #0x3
	mov	x20, x0
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	ldr	w8, [x8, #12]
	and	w23, w8, #0x1
	lsr	w24, w8, #2
	mov	w8, #65
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_AddString
	mov	w22, #1
	cbnz	w23, LBB0_9
	b	LBB0_14
LBB0_4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #16]
	tbnz	w8, #1, LBB0_11
; %bb.6:
	tbz	w8, #2, LBB0_13
; %bb.7:
Lloh13:
	adrp	x1, l_.str.9@PAGE
Lloh14:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_AddString
	mov	w22, #1
	add	x1, sp, #44
	add	x2, sp, #40
	add	x3, sp, #36
	add	x4, sp, #32
	mov	w0, #1
	bl	_CalcWindowCoordinates
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #36]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w8, [x8, #12]
	and	w23, w8, #0x100
	lsr	w24, w8, #10
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_AddString
	mov	w22, #0
	cbz	w23, LBB0_14
LBB0_9:
	and	w8, w24, #0x3
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_AddString
	b	LBB0_14
LBB0_11:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_AddString
	add	x1, sp, #44
	add	x2, sp, #40
	add	x3, sp, #36
	add	x4, sp, #32
	mov	w0, #0
	bl	_CalcWindowCoordinates
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #36]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_12:
	mov	x0, x20
	bl	_AddString
LBB0_13:
	mov	w22, #1
LBB0_14:
	mov	x0, x20
	mov	w1, #16
	bl	_AddMosaicString
	ldr	x8, [x21]
	ldr	w8, [x8]
	ubfx	w1, w8, #12, #3
	bl	_AddBppString
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w9, [x8]
	tbnz	w9, #9, LBB0_17
; %bb.15:
	ldr	w23, [x8, #24]
	str	xzr, [sp, #24]
	stp	x19, x19, [sp]
Lloh37:
	adrp	x1, l_.str.11@PAGE
Lloh38:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #28]
	mov	w9, #48
	mov	w10, #3
	cmp	w22, #0
	csel	w9, w10, w9, ne
	and	w0, w9, w8, lsr #8
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_Vdp2GetPlaneSize
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
Lloh39:
	adrp	x1, l_.str.12@PAGE
Lloh40:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_AddString
	tbnz	w23, #15, LBB0_20
; %bb.16:
Lloh41:
	adrp	x1, l_.str.13@PAGE
Lloh42:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_21
LBB0_17:
	ubfx	w1, w9, #10, #1
	ldr	w2, [x8, #120]
	ldr	w3, [x8, #20]
	cbnz	w22, LBB0_19
; %bb.18:
	asr	w3, w3, #4
LBB0_19:
	mov	x0, x20
	bl	_AddBitmapInfoString
	b	LBB0_25
LBB0_20:
Lloh43:
	adrp	x1, l_.str.14@PAGE
Lloh44:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_AddString
	str	xzr, [sp]
Lloh45:
	adrp	x1, l_.str.15@PAGE
Lloh46:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w23, #9, #1
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.16@PAGE
Lloh48:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w23, #8, #1
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.17@PAGE
Lloh50:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w23, #5, #3
	str	x8, [sp]
Lloh51:
	adrp	x1, l_.str.18@PAGE
Lloh52:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x20
	bl	_AddString
	and	w8, w23, #0x1f
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.19@PAGE
Lloh54:
	add	x1, x1, l_.str.19@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_AddString
	ldr	x8, [x21]
	cbz	w22, LBB0_23
; %bb.22:
	ldp	d0, d1, [x8, #32]
	zip1.4s	v0, v0, v0
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v3, v0, v2
Lloh55:
	adrp	x9, lCPI0_0@PAGE
Lloh56:
	ldr	q4, [x9, lCPI0_0@PAGEOFF]
	sshl.4s	v0, v0, v4
	rev64.4s	v3, v3
	trn2.4s	v0, v3, v0
	zip1.4s	v1, v1, v1
	and.16b	v3, v1, v2
	sshl.4s	v1, v1, v4
	rev64.4s	v3, v3
	trn2.4s	v1, v3, v1
	stp	q0, q1, [sp, #48]
	ldr	d0, [x8, #48]
	zip1.4s	v0, v0, v0
	and.16b	v1, v0, v2
	sshl.4s	v0, v0, v4
	rev64.4s	v1, v1
	trn2.4s	v0, v1, v0
	str	q0, [sp, #80]
	ldr	w9, [x8, #56]
	and	w10, w9, #0xff
	asr	w9, w9, #8
	stp	w10, w9, [sp, #96]
	add	x11, x8, #60
	mov	w9, #6
	mov	w10, #8
	b	LBB0_24
LBB0_23:
	ldp	d0, d1, [x8, #64]
	zip1.4s	v0, v0, v0
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v3, v0, v2
Lloh57:
	adrp	x9, lCPI0_0@PAGE
Lloh58:
	ldr	q4, [x9, lCPI0_0@PAGEOFF]
	sshl.4s	v0, v0, v4
	rev64.4s	v3, v3
	trn2.4s	v0, v3, v0
	zip1.4s	v1, v1, v1
	and.16b	v3, v1, v2
	sshl.4s	v1, v1, v4
	rev64.4s	v3, v3
	trn2.4s	v1, v3, v1
	stp	q0, q1, [sp, #48]
	ldr	d0, [x8, #80]
	zip1.4s	v0, v0, v0
	and.16b	v1, v0, v2
	sshl.4s	v0, v0, v4
	rev64.4s	v1, v1
	trn2.4s	v0, v1, v0
	str	q0, [sp, #80]
	ldr	w9, [x8, #88]
	and	w10, w9, #0xff
	asr	w9, w9, #8
	stp	w10, w9, [sp, #96]
	add	x11, x8, #92
	mov	w9, #2
	mov	w10, #12
LBB0_24:
	ldr	w11, [x11]
	and	w12, w11, #0xff
	asr	w11, w11, #8
	stp	w12, w11, [sp, #104]
	ldp	w2, w11, [x8, #24]
	lsr	w10, w11, w10
	and	w3, w10, #0x3
	ldr	w8, [x8, #20]
	lsl	w8, w8, w9
	and	w4, w8, #0x1c0
	add	x6, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	w5, #16
	bl	_AddMapInfo
LBB0_25:
	ldr	x8, [x21]
	ldr	w1, [x8, #116]
	mov	w2, #0
	bl	_AddWindowInfoString
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8, #96]
	ubfiz	w8, w8, #8, #3
	str	x8, [sp]
Lloh59:
	adrp	x1, l_.str.20@PAGE
Lloh60:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #100]
	asr	w1, w8, #8
	mov	x0, x19
	bl	_AddSpecialPriorityInfo
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8, #104]
	and	w8, w8, #0x7
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.21@PAGE
Lloh62:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldp	w9, w8, [x8, #108]
	and	w3, w9, #0x1f
	ubfx	w4, w8, #8, #2
	mov	x0, x19
	mov	w1, #16
	mov	w2, #1
	bl	_AddColorCalcInfo
	mov	w1, #16
	bl	_AddColorOffsetInfo
	ldr	x8, [x21]
	ldr	w8, [x8, #112]
	ubfx	w8, w8, #8, #2
	str	x8, [sp]
Lloh63:
	adrp	x1, l_.str.22@PAGE
Lloh64:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_AddString
LBB0_26:
	ldur	x8, [x29, #-56]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdr	Lloh55, Lloh56
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using Parameter %C\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using Parameter B\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"Parameter A/B switched via coefficients\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"Parameter A/B switched parameter window\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"Rotation Window 0 Enabled\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"Horizontal start = %d\r\n"

l_.str.6:                               ; @.str.6
	.asciz	"Vertical start = %d\r\n"

l_.str.7:                               ; @.str.7
	.asciz	"Horizontal end = %d\r\n"

l_.str.8:                               ; @.str.8
	.asciz	"Vertical end = %d\r\n"

l_.str.9:                               ; @.str.9
	.asciz	"Rotation Window 1 Enabled\r\n"

l_.str.10:                              ; @.str.10
	.asciz	"Coefficient Table Enabled(Mode %d)\r\n"

l_.str.11:                              ; @.str.11
	.asciz	"Tile(%dH x %dV)\r\n"

l_.str.12:                              ; @.str.12
	.asciz	"Plane Size = %dH x %dV\r\n"

l_.str.13:                              ; @.str.13
	.asciz	"Pattern Name data size = 2 words\r\n"

l_.str.14:                              ; @.str.14
	.asciz	"Pattern Name data size = 1 word\r\n"

l_.str.15:                              ; @.str.15
	.asciz	"Character Number Supplement bit = %d\r\n"

l_.str.16:                              ; @.str.16
	.asciz	"Special Priority bit = %d\r\n"

l_.str.17:                              ; @.str.17
	.asciz	"Special Color Calculation bit = %d\r\n"

l_.str.18:                              ; @.str.18
	.asciz	"Supplementary Palette number = %d\r\n"

l_.str.19:                              ; @.str.19
	.asciz	"Supplementary Color number = %d\r\n"

l_.str.20:                              ; @.str.20
	.asciz	"Color Ram Address Offset = %X\r\n"

l_.str.21:                              ; @.str.21
	.asciz	"Priority = %d\r\n"

l_.str.22:                              ; @.str.22
	.asciz	"Special Color Calculation %d\r\n"

.subsections_via_symbols
