	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp2DebugStatsNBG3             ## -- Begin function Vdp2DebugStatsNBG3
	.p2align	4, 0x90
_Vdp2DebugStatsNBG3:                    ## @Vdp2DebugStatsNBG3
	.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	$40, %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
	testb	$8, (%rax)
	jne	LBB0_1
## %bb.5:
	movl	$0, (%rsi)
	jmp	LBB0_6
LBB0_1:
	movl	4(%rax), %r15d
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	btl	$4, 8(%rax)
	movl	$0, %r14d
	adcl	$1, %r14d
	movl	$1, (%rsi)
	movl	$8, %esi
	callq	_AddMosaicString
	movq	(%r12), %rcx
	movl	8(%rcx), %esi
	shrl	$5, %esi
	andl	$1, %esi
	movq	%rax, %rdi
	callq	_AddBppString
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	4(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	12(%rax), %edi
	shrl	$6, %edi
	andl	$3, %edi
	leaq	-72(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	callq	_Vdp2GetPlaneSize
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	testl	$32768, %r13d                   ## imm = 0x8000
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_AddString
	movl	%r15d, %edx
	shrl	$9, %edx
	andl	$1, %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	%r15d, %edx
	shrl	$8, %edx
	andl	$1, %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movl	%r15d, %edx
	shrl	$5, %edx
	andl	$7, %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	andl	$31, %r15d
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_AddString
LBB0_4:
	movq	(%r12), %rax
	movl	16(%rax), %ecx
	movzbl	%cl, %edx
	movl	%edx, -64(%rbp)
	sarl	$8, %ecx
	movl	%ecx, -60(%rbp)
	movl	20(%rax), %ecx
	movzbl	%cl, %edx
	movl	%edx, -56(%rbp)
	sarl	$8, %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rax), %edx
	movl	12(%rax), %ecx
	shrl	$6, %ecx
	andl	$3, %ecx
	movl	24(%rax), %r8d
	shrl	$6, %r8d
	andl	$448, %r8d                      ## imm = 0x1C0
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %r9d
	callq	_AddMapInfo
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	$511, %ecx                      ## imm = 0x1FF
	movl	28(%rax), %edx
	andl	%ecx, %edx
	negl	%edx
	andl	32(%rax), %ecx
	negl	%ecx
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	36(%rax), %esi
	sarl	$8, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_AddWindowInfoString
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	$28672, %edx                    ## imm = 0x7000
	andl	40(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	44(%rax), %esi
	sarl	$6, %esi
	movq	%rbx, %rdi
	callq	_AddSpecialPriorityInfo
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	48(%rax), %edx
	shrl	$8, %edx
	andl	$7, %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_AddString
	movq	(%r12), %rax
	movl	52(%rax), %ecx
	movl	56(%rax), %r8d
	shrl	$8, %ecx
	andl	$31, %ecx
	shrl	$6, %r8d
	andl	$3, %r8d
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$6, %edx
	callq	_AddColorCalcInfo
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_AddColorOffsetInfo
	movq	(%r12), %rcx
	movl	56(%rcx), %edx
	shrl	$6, %edx
	andl	$3, %edx
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_AddString
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tile(%dH x %dV)\r\n"

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

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

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

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

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

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"Screen Scroll x = %d, y = %d\r\n"

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

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

L_.str.12:                              ## @.str.12
	.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
	.globl	_Vdp2DebugStatsNBG3             ; -- Begin function Vdp2DebugStatsNBG3
	.p2align	2
_Vdp2DebugStatsNBG3:                    ; @Vdp2DebugStatsNBG3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Vdp2Regs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrb	w9, [x8]
	tbnz	w9, #3, LBB0_2
; %bb.1:
	str	wzr, [x1]
	b	LBB0_6
LBB0_2:
	str	xzr, [sp, #24]
	ldp	w22, w8, [x8, #4]
	ubfx	w8, w8, #4, #1
	add	w19, w8, #1
	mov	w8, #1
	str	w8, [x1]
	mov	w1, #8
	bl	_AddMosaicString
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	ubfx	w1, w8, #5, #1
	bl	_AddBppString
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w23, [x8, #4]
	stp	x19, x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #12]
	ubfx	w0, w8, #6, #2
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_Vdp2GetPlaneSize
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_AddString
	tbnz	w23, #15, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_AddString
	str	xzr, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w22, #9, #1
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w22, #8, #1
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_AddString
	ubfx	w8, w22, #5, #3
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_AddString
	and	w8, w22, #0x1f
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_AddString
	ldr	x8, [x21]
	ldr	d0, [x8, #16]
	zip1.4s	v0, v0, v0
	movi.2d	v1, #0x0000ff000000ff
	and.16b	v1, v0, v1
	sshr.4s	v0, v0, #8
	rev64.4s	v1, v1
	trn2.4s	v0, v1, v0
	str	q0, [sp, #32]
	ldr	w2, [x8, #4]
	ldr	w9, [x8, #12]
	ubfx	w3, w9, #6, #2
	ldr	w8, [x8, #24]
	lsr	w8, w8, #6
	and	w4, w8, #0x1c0
	add	x6, sp, #32
	mov	x0, x20
	mov	x1, x19
	mov	w5, #4
	bl	_AddMapInfo
	mov	x19, x0
	ldr	x8, [x21]
	ldp	w9, w8, [x8, #28]
	and	w9, w9, #0x1ff
	neg	w9, w9
	and	w8, w8, #0x1ff
	neg	w8, w8
	stp	x9, x8, [sp]
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #36]
	asr	w1, w8, #8
	mov	x0, x19
	mov	w2, #0
	bl	_AddWindowInfoString
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8, #40]
	and	w8, w8, #0x7000
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldr	w8, [x8, #44]
	asr	w1, w8, #6
	mov	x0, x19
	bl	_AddSpecialPriorityInfo
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8, #48]
	ubfx	w8, w8, #8, #3
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_AddString
	ldr	x8, [x21]
	ldp	w9, w8, [x8, #52]
	ubfx	w3, w9, #8, #5
	ubfx	w4, w8, #6, #2
	mov	x0, x19
	mov	w1, #8
	mov	w2, #6
	bl	_AddColorCalcInfo
	mov	w1, #8
	bl	_AddColorOffsetInfo
	ldr	x8, [x21]
	ldr	w8, [x8, #56]
	ubfx	w8, w8, #6, #2
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.12@PAGE
Lloh27:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_AddString
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tile(%dH x %dV)\r\n"

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

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

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

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

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

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"Screen Scroll x = %d, y = %d\r\n"

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

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

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

.subsections_via_symbols
