	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1DebugTexture               ## -- Begin function Vdp1DebugTexture
	.p2align	4, 0x90
_Vdp1DebugTexture:                      ## @Vdp1DebugTexture
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	$0, -68(%rbp)
	callq	_Vdp1DebugGetCommandNumberAddr
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	_Vdp1Ram@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_T1ReadWord
	testl	$49152, %eax                    ## imm = 0xC000
	je	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %edx
	leaq	-120(%rbp), %rdi
	movl	%ebx, %esi
	callq	_Vdp1ReadCommand
	movl	-120(%rbp), %eax
	andl	$15, %eax
	leal	-4(%rax), %ecx
	cmpl	$4, %ecx
	jb	LBB0_32
## %bb.6:
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.7:
	movl	-116(%rbp), %eax
	movzbl	%al, %edi
	shrl	$5, %eax
	andl	$504, %eax                      ## imm = 0x1F8
	movl	%eax, (%r13)
	movl	%edi, (%r14)
	imull	(%r13), %edi
	shll	$2, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rbx
	movl	-112(%rbp), %r12d
	testb	$-128, %r12b
	jne	LBB0_10
## %bb.9:
	movl	$0, -68(%rbp)
LBB0_10:
	movl	-104(%rbp), %eax
	shll	$3, %eax
	movl	%eax, -44(%rbp)
	movq	%rbx, -56(%rbp)
	movl	%r12d, %eax
	shrl	$3, %eax
	andl	$7, %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_12:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.13:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	-108(%rbp), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_Vdp2Regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r14d
	andl	$112, %r14d
	shll	$4, %r14d
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%ecx
	cmpl	%eax, %ecx
	jge	LBB0_4
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	-44(%rbp), %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=2
	orl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_ColorRamGetColor
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movl	%eax, (%rcx)
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=2
	addl	$2, %ebx
	movl	-44(%rbp), %esi
	incl	%esi
	movl	%esi, -44(%rbp)
	cmpl	(%r13), %ebx
	jge	LBB0_14
LBB0_20:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadByte
	movl	%eax, %r15d
	testb	$-128, %r12b
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	%r15d, %edi
	sarl	$4, %edi
	movl	$15, %esi
	leaq	-68(%rbp), %rdx
	callq	_CheckEndcode
	testl	%eax, %eax
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	(%r13), %ecx
	movl	$4, (%rsp)
	movl	%eax, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_DoEndcode
	testl	%eax, %eax
	je	LBB0_28
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$15, %r15d
	ja	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	%r12d, %eax
	andl	$64, %eax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
	testb	$-128, %r12b
	je	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=2
	andl	$15, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	%r15d, %edi
	sarl	$4, %edi
	orl	-60(%rbp), %edi                 ## 4-byte Folded Reload
	addl	%r14d, %edi
	callq	_ColorRamGetColor
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movl	%eax, (%rcx)
	testb	$-128, %r12b
	jne	LBB0_26
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=2
	andl	$15, %r15d
	movl	%r15d, %edi
	movl	$15, %esi
	leaq	-68(%rbp), %rdx
	callq	_CheckEndcode
	testl	%eax, %eax
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=2
	leal	1(%rbx), %r8d
	movl	(%r13), %ecx
	movl	$4, (%rsp)
	movl	%eax, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$1, %r9d
	callq	_DoEndcode
	testl	%eax, %eax
	je	LBB0_19
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	%r12d, %eax
	andl	$64, %eax
	orl	%r15d, %eax
	jne	LBB0_18
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
	jmp	LBB0_19
LBB0_32:
	movl	$1, (%r13)
	movl	$1, (%r14)
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.33:
	movq	%rax, %rbx
	movl	-108(%rbp), %esi
	testl	$32768, %esi                    ## imm = 0x8000
	jne	LBB0_37
## %bb.34:
	movl	%esi, %edi
	callq	_ColorRamGetColor
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_37:
	movl	$255, %edi
	callq	_SAT2YAB1
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_39:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.40:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	-108(%rbp), %r14d
	shll	$3, %r14d
	xorl	%ecx, %ecx
	jmp	LBB0_43
LBB0_41:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
LBB0_42:                                ##   in Loop: Header=BB0_43 Depth=1
	incl	%ecx
	cmpl	%eax, %ecx
	jge	LBB0_4
LBB0_43:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 Depth 2
	cmpl	$0, (%r13)
	jle	LBB0_42
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movl	-44(%rbp), %esi
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_47 Depth=2
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=2
	addl	$2, %r15d
	movl	-44(%rbp), %esi
	incl	%esi
	movl	%esi, -44(%rbp)
	cmpl	(%r13), %r15d
	jge	LBB0_41
LBB0_47:                                ##   Parent Loop BB0_43 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadByte
	movl	%eax, %ebx
	testb	$-128, %r12b
	jne	LBB0_50
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	%ebx, %edi
	sarl	$4, %edi
	movl	$15, %esi
	leaq	-68(%rbp), %rdx
	callq	_CheckEndcode
	testl	%eax, %eax
	jle	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	(%r13), %ecx
	movl	$4, (%rsp)
	movl	%eax, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_DoEndcode
	testl	%eax, %eax
	je	LBB0_58
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_47 Depth=2
	cmpl	$15, %ebx
	ja	LBB0_54
## %bb.51:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	%r12d, %eax
	andl	$64, %eax
	jne	LBB0_54
## %bb.52:                              ##   in Loop: Header=BB0_47 Depth=2
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
	testb	$-128, %r12b
	je	LBB0_58
LBB0_53:                                ##   in Loop: Header=BB0_47 Depth=2
	andl	$15, %ebx
	jmp	LBB0_60
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_47 Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	shrl	$3, %esi
	andl	$524286, %esi                   ## imm = 0x7FFFE
	addl	%r14d, %esi
	andl	$524286, %esi                   ## imm = 0x7FFFE
	callq	_T1ReadWord
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	%eax, %edi
	callq	_ColorRamGetColor
	jmp	LBB0_57
LBB0_56:                                ##   in Loop: Header=BB0_47 Depth=2
	movl	$255, %edi
	movl	%eax, %esi
	callq	_SAT2YAB1
LBB0_57:                                ##   in Loop: Header=BB0_47 Depth=2
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movl	%eax, (%rcx)
	testb	$-128, %r12b
	jne	LBB0_53
LBB0_58:                                ##   in Loop: Header=BB0_47 Depth=2
	andl	$15, %ebx
	movl	%ebx, %edi
	movl	$15, %esi
	leaq	-68(%rbp), %rdx
	callq	_CheckEndcode
	testl	%eax, %eax
	jle	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_47 Depth=2
	leal	1(%r15), %r8d
	movl	(%r13), %ecx
	movl	$4, (%rsp)
	movl	%eax, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$1, %r9d
	callq	_DoEndcode
	testl	%eax, %eax
	je	LBB0_46
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_47 Depth=2
	movl	%r12d, %eax
	andl	$64, %eax
	orl	%ebx, %eax
	je	LBB0_45
## %bb.61:                              ##   in Loop: Header=BB0_47 Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	(%r14,%rbx,2), %esi
	andl	$524286, %esi                   ## imm = 0x7FFFE
	callq	_T1ReadWord
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	%eax, %edi
	callq	_ColorRamGetColor
	jmp	LBB0_64
LBB0_63:                                ##   in Loop: Header=BB0_47 Depth=2
	movl	$255, %edi
	movl	%eax, %esi
	callq	_SAT2YAB1
LBB0_64:                                ##   in Loop: Header=BB0_47 Depth=2
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movl	%eax, (%rcx)
	jmp	LBB0_46
LBB0_65:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.66:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	-108(%rbp), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_Vdp2Regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	andl	$112, %ecx
	shll	$4, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ecx
	xorl	%edx, %edx
	andl	$64, %r12d
	movq	%rbx, %r15
	jmp	LBB0_69
LBB0_67:                                ##   in Loop: Header=BB0_69 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rdx, %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_68:                                ##   in Loop: Header=BB0_69 Depth=1
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_4
LBB0_69:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_72 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_68
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=1
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_72
	.p2align	4, 0x90
LBB0_71:                                ##   in Loop: Header=BB0_72 Depth=2
	leaq	4(%r15), %rdx
	movq	%rdx, -56(%rbp)
	movl	%ecx, (%r15)
	incl	%r14d
	movl	(%r13), %ecx
	movq	%rdx, %r15
	cmpl	%ecx, %r14d
	jge	LBB0_67
LBB0_72:                                ##   Parent Loop BB0_69 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ebx
	movl	%ebx, %esi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadByte
	andl	$63, %eax
	incl	%ebx
	movl	%ebx, -44(%rbp)
	movl	%eax, %ecx
	orl	%r12d, %ecx
	movl	$0, %ecx
	je	LBB0_71
## %bb.73:                              ##   in Loop: Header=BB0_72 Depth=2
	orl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edi
	callq	_ColorRamGetColor
	movq	%rax, %rcx
	jmp	LBB0_71
LBB0_74:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.75:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	-108(%rbp), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_Vdp2Regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	andl	$112, %ecx
	shll	$4, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ecx
	xorl	%edx, %edx
	andl	$64, %r12d
	movq	%rbx, %r15
	jmp	LBB0_78
LBB0_76:                                ##   in Loop: Header=BB0_78 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rdx, %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_77:                                ##   in Loop: Header=BB0_78 Depth=1
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_4
LBB0_78:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_81 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_77
## %bb.79:                              ##   in Loop: Header=BB0_78 Depth=1
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_81
	.p2align	4, 0x90
LBB0_80:                                ##   in Loop: Header=BB0_81 Depth=2
	leaq	4(%r15), %rdx
	movq	%rdx, -56(%rbp)
	movl	%ecx, (%r15)
	incl	%r14d
	movl	(%r13), %ecx
	movq	%rdx, %r15
	cmpl	%ecx, %r14d
	jge	LBB0_76
LBB0_81:                                ##   Parent Loop BB0_78 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ebx
	movl	%ebx, %esi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadByte
	andl	$127, %eax
	incl	%ebx
	movl	%ebx, -44(%rbp)
	movl	%eax, %ecx
	orl	%r12d, %ecx
	movl	$0, %ecx
	je	LBB0_80
## %bb.82:                              ##   in Loop: Header=BB0_81 Depth=2
	orl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edi
	callq	_ColorRamGetColor
	movq	%rax, %rcx
	jmp	LBB0_80
LBB0_83:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.84:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	-108(%rbp), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_Vdp2Regs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	andl	$112, %ecx
	shll	$4, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ecx
	xorl	%edx, %edx
	andl	$64, %r12d
	movq	%rbx, %r15
	jmp	LBB0_87
LBB0_85:                                ##   in Loop: Header=BB0_87 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rdx, %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_86:                                ##   in Loop: Header=BB0_87 Depth=1
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_4
LBB0_87:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_90 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_86
## %bb.88:                              ##   in Loop: Header=BB0_87 Depth=1
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_90
	.p2align	4, 0x90
LBB0_89:                                ##   in Loop: Header=BB0_90 Depth=2
	leaq	4(%r15), %rdx
	movq	%rdx, -56(%rbp)
	movl	%ecx, (%r15)
	incl	%r14d
	movl	(%r13), %ecx
	movq	%rdx, %r15
	cmpl	%ecx, %r14d
	jge	LBB0_85
LBB0_90:                                ##   Parent Loop BB0_87 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ebx
	movl	%ebx, %esi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadByte
	incl	%ebx
	movl	%ebx, -44(%rbp)
	movl	%eax, %ecx
	orl	%r12d, %ecx
	movl	$0, %ecx
	je	LBB0_89
## %bb.91:                              ##   in Loop: Header=BB0_90 Depth=2
	orl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edi
	callq	_ColorRamGetColor
	movq	%rax, %rcx
	jmp	LBB0_89
LBB0_92:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.93:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_96
LBB0_94:                                ##   in Loop: Header=BB0_96 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
LBB0_95:                                ##   in Loop: Header=BB0_96 Depth=1
	incl	%ecx
	cmpl	%eax, %ecx
	jge	LBB0_4
LBB0_96:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_100 Depth 2
	cmpl	$0, (%r13)
	jle	LBB0_95
## %bb.97:                              ##   in Loop: Header=BB0_96 Depth=1
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	-44(%rbp), %esi
	jmp	LBB0_100
	.p2align	4, 0x90
LBB0_98:                                ##   in Loop: Header=BB0_100 Depth=2
	movl	$255, %edi
	movl	%r14d, %esi
	callq	_SAT2YAB1
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movl	%eax, (%rcx)
LBB0_99:                                ##   in Loop: Header=BB0_100 Depth=2
	movl	-44(%rbp), %esi
	addl	$2, %esi
	movl	%esi, -44(%rbp)
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_94
LBB0_100:                               ##   Parent Loop BB0_96 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	andl	$524287, %esi                   ## imm = 0x7FFFF
	callq	_T1ReadWord
	movl	%eax, %r14d
	testb	$-128, %r12b
	jne	LBB0_103
## %bb.101:                             ##   in Loop: Header=BB0_100 Depth=2
	movl	%r14d, %edi
	movl	$32767, %esi                    ## imm = 0x7FFF
	leaq	-68(%rbp), %rdx
	callq	_CheckEndcode
	testl	%eax, %eax
	jle	LBB0_103
## %bb.102:                             ##   in Loop: Header=BB0_100 Depth=2
	movl	(%r13), %ecx
	movl	$16, (%rsp)
	movl	%eax, %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_DoEndcode
	testl	%eax, %eax
	je	LBB0_99
	jmp	LBB0_94
	.p2align	4, 0x90
LBB0_103:                               ##   in Loop: Header=BB0_100 Depth=2
	movl	%r12d, %eax
	andl	$64, %eax
	movl	%r14d, %ecx
	andl	$32768, %ecx                    ## imm = 0x8000
	orl	%eax, %ecx
	jne	LBB0_98
## %bb.104:                             ##   in Loop: Header=BB0_100 Depth=2
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
	jmp	LBB0_99
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_65, LBB0_65-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_83, LBB0_83-LJTI0_0
.set L0_0_set_92, LBB0_92-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_39
	.long	L0_0_set_65
	.long	L0_0_set_74
	.long	L0_0_set_83
	.long	L0_0_set_92
	.end_data_region
                                        ## -- End function
	.comm	_Vdp1Ram,4,2                    ## @Vdp1Ram
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1DebugTexture               ; -- Begin function Vdp1DebugTexture
	.p2align	2
_Vdp1DebugTexture:                      ; @Vdp1DebugTexture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x2
	mov	x21, x1
	str	wzr, [sp, #20]
	bl	_Vdp1DebugGetCommandNumberAddr
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x24, _Vdp1Ram@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Vdp1Ram@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_T1ReadWord
	tst	w0, #0xc000
	b.eq	LBB0_4
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	ldr	w2, [x24]
	add	x0, sp, #40
	mov	x1, x19
	bl	_Vdp1ReadCommand
	ldr	w8, [sp, #40]
	and	w8, w8, #0xf
	sub	w9, w8, #4
	cmp	w9, #4
	b.lo	LBB0_31
; %bb.5:
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.6:
	ldr	w8, [sp, #44]
	lsr	w9, w8, #5
	and	w9, w9, #0x1f8
	str	w9, [x21]
	and	w8, w8, #0xff
	str	w8, [x20]
	ldr	w9, [x21]
	mul	w8, w8, w9
	lsl	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.7:
	ldr	w25, [sp, #48]
	tbnz	w25, #7, LBB0_9
; %bb.8:
	str	wzr, [sp, #20]
LBB0_9:
	ldr	w8, [sp, #56]
	lsl	w8, w8, #3
	str	w8, [sp, #36]
	str	x19, [sp, #24]
	ubfx	w8, w25, #3, #3
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.10:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	br	x10
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.12:
	mov	w26, #0
	ldr	w27, [sp, #52]
Lloh4:
	adrp	x9, _Vdp2Regs@GOTPAGE
Lloh5:
	ldr	x9, [x9, _Vdp2Regs@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	w9, [x9]
	lsl	w9, w9, #4
	and	w28, w9, #0x700
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w26, w26, #1
	cmp	w26, w8
	b.ge	LBB0_3
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w22, #0
	ldr	w8, [sp, #36]
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_20 Depth=2
	orr	w8, w23, w27
	add	w0, w8, w28
	bl	_ColorRamGetColor
	ldr	x8, [sp, #24]
	str	w0, [x8], #4
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=2
	str	x8, [sp, #24]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	w22, w22, #2
	ldr	w8, [sp, #36]
	add	w8, w8, #1
	str	w8, [sp, #36]
	ldr	w9, [x21]
	cmp	w22, w9
	b.ge	LBB0_13
LBB0_20:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	and	w1, w8, #0x7ffff
	bl	_T1ReadByte
	mov	x23, x0
	tbnz	w25, #7, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	asr	w0, w23, #4
	add	x2, sp, #20
	mov	w1, #15
	bl	_CheckEndcode
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	w3, [x21]
	add	x1, sp, #36
	add	x2, sp, #24
	mov	x4, x22
	mov	w5, #0
	mov	w6, #4
	bl	_DoEndcode
	cbz	w0, LBB0_27
	b	LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	and	w8, w25, #0x40
	cmp	w23, #15
	ccmp	w8, #0, #0, ls
	b.eq	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	orr	w8, w27, w23, asr #4
	add	w0, w8, w28
	bl	_ColorRamGetColor
	ldr	x8, [sp, #24]
	str	w0, [x8], #4
	str	x8, [sp, #24]
	tbz	w25, #7, LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=2
	and	w23, w23, #0xf
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [sp, #24]
	str	wzr, [x8], #4
	str	x8, [sp, #24]
	tbnz	w25, #7, LBB0_25
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=2
	and	w23, w23, #0xf
	add	x2, sp, #20
	mov	x0, x23
	mov	w1, #15
	bl	_CheckEndcode
	cmp	w0, #1
	b.lt	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=2
	add	w4, w22, #1
	ldr	w3, [x21]
	add	x1, sp, #36
	add	x2, sp, #24
	mov	w5, #1
	mov	w6, #4
	bl	_DoEndcode
	cbz	w0, LBB0_19
	b	LBB0_13
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=2
	and	w8, w25, #0x40
	orr	w8, w23, w8
	cbnz	w8, LBB0_17
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [sp, #24]
	str	wzr, [x8], #4
	b	LBB0_18
LBB0_31:
	mov	w8, #1
	str	w8, [x21]
	str	w8, [x20]
	mov	w0, #4
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.32:
	ldr	w1, [sp, #52]
	tbnz	w1, #15, LBB0_34
; %bb.33:
	mov	x0, x1
	bl	_ColorRamGetColor
	str	w0, [x19]
	b	LBB0_3
LBB0_34:
	mov	w0, #255
	bl	_SAT2YAB1
	str	w0, [x19]
	b	LBB0_3
LBB0_35:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.36:
	mov	w26, #0
	ldr	w9, [sp, #52]
	lsl	w27, w9, #3
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [x20]
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	w26, w26, #1
	cmp	w26, w8
	b.ge	LBB0_3
LBB0_39:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_44 Depth 2
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	w22, #0
	ldr	w8, [sp, #36]
	b	LBB0_44
LBB0_41:                                ;   in Loop: Header=BB0_44 Depth=2
	ldr	x8, [sp, #24]
	str	wzr, [x8], #4
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=2
	str	x8, [sp, #24]
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=2
	add	w22, w22, #2
	ldr	w8, [sp, #36]
	add	w8, w8, #1
	str	w8, [sp, #36]
	ldr	w9, [x21]
	cmp	w22, w9
	b.ge	LBB0_37
LBB0_44:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	and	w1, w8, #0x7ffff
	bl	_T1ReadByte
	mov	x23, x0
	tbnz	w25, #7, LBB0_47
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=2
	asr	w0, w23, #4
	add	x2, sp, #20
	mov	w1, #15
	bl	_CheckEndcode
	cmp	w0, #1
	b.lt	LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_44 Depth=2
	ldr	w3, [x21]
	add	x1, sp, #36
	add	x2, sp, #24
	mov	x4, x22
	mov	w5, #0
	mov	w6, #4
	bl	_DoEndcode
	cbz	w0, LBB0_54
	b	LBB0_37
LBB0_47:                                ;   in Loop: Header=BB0_44 Depth=2
	and	w8, w25, #0x40
	cmp	w23, #15
	ccmp	w8, #0, #0, ls
	b.eq	LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_44 Depth=2
	ldr	w0, [x24]
	lsr	w8, w23, #3
	and	w8, w8, #0x7fffe
	add	w8, w8, w27
	and	w1, w8, #0x7fffe
	bl	_T1ReadWord
	mov	x1, x0
	tbnz	w0, #15, LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=2
	mov	x0, x1
	bl	_ColorRamGetColor
	b	LBB0_53
LBB0_50:                                ;   in Loop: Header=BB0_44 Depth=2
	ldr	x8, [sp, #24]
	str	wzr, [x8], #4
	str	x8, [sp, #24]
	tbz	w25, #7, LBB0_54
LBB0_51:                                ;   in Loop: Header=BB0_44 Depth=2
	and	w23, w23, #0xf
	b	LBB0_56
LBB0_52:                                ;   in Loop: Header=BB0_44 Depth=2
	mov	w0, #255
	bl	_SAT2YAB1
LBB0_53:                                ;   in Loop: Header=BB0_44 Depth=2
	ldr	x8, [sp, #24]
	str	w0, [x8], #4
	str	x8, [sp, #24]
	tbnz	w25, #7, LBB0_51
LBB0_54:                                ;   in Loop: Header=BB0_44 Depth=2
	and	w23, w23, #0xf
	add	x2, sp, #20
	mov	x0, x23
	mov	w1, #15
	bl	_CheckEndcode
	cmp	w0, #1
	b.lt	LBB0_56
; %bb.55:                               ;   in Loop: Header=BB0_44 Depth=2
	add	w4, w22, #1
	ldr	w3, [x21]
	add	x1, sp, #36
	add	x2, sp, #24
	mov	w5, #1
	mov	w6, #4
	bl	_DoEndcode
	cbz	w0, LBB0_43
	b	LBB0_37
LBB0_56:                                ;   in Loop: Header=BB0_44 Depth=2
	and	w8, w25, #0x40
	orr	w8, w23, w8
	cbz	w8, LBB0_41
; %bb.57:                               ;   in Loop: Header=BB0_44 Depth=2
	ldr	w0, [x24]
	add	w8, w27, w23, lsl #1
	and	w1, w8, #0x7fffe
	bl	_T1ReadWord
	mov	x1, x0
	tbnz	w0, #15, LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_44 Depth=2
	mov	x0, x1
	bl	_ColorRamGetColor
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_44 Depth=2
	mov	w0, #255
	bl	_SAT2YAB1
LBB0_60:                                ;   in Loop: Header=BB0_44 Depth=2
	ldr	x8, [sp, #24]
	str	w0, [x8], #4
	b	LBB0_42
LBB0_61:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.62:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w22, #0
	ldr	w23, [sp, #52]
Lloh7:
	adrp	x9, _Vdp2Regs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _Vdp2Regs@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w9, [x9]
	lsl	w9, w9, #4
	and	w26, w9, #0x700
	ldr	w9, [x21]
	mov	x27, x19
	b	LBB0_65
LBB0_63:                                ;   in Loop: Header=BB0_65 Depth=1
	ldp	x8, x19, [sp]                   ; 16-byte Folded Reload
	ldr	w8, [x8]
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_3
LBB0_65:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_69 Depth 2
	cmp	w9, #1
	b.lt	LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	w28, #0
	b	LBB0_69
LBB0_67:                                ;   in Loop: Header=BB0_69 Depth=2
	and	w8, w0, #0x3f
	orr	w8, w8, w23
	add	w0, w8, w26
	bl	_ColorRamGetColor
LBB0_68:                                ;   in Loop: Header=BB0_69 Depth=2
	str	w0, [x27], #4
	str	x27, [sp, #24]
	add	w28, w28, #1
	ldr	w9, [x21]
	cmp	w28, w9
	b.ge	LBB0_63
LBB0_69:                                ;   Parent Loop BB0_65 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w20, w25, #0x40
	ldr	w0, [x24]
	ldr	w19, [sp, #36]
	and	w1, w19, #0x7ffff
	bl	_T1ReadByte
	add	w8, w19, #1
	str	w8, [sp, #36]
	bfxil	w20, w0, #0, #6
	cbnz	w20, LBB0_67
; %bb.70:                               ;   in Loop: Header=BB0_69 Depth=2
	mov	w0, #0
	b	LBB0_68
LBB0_71:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.72:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w22, #0
	ldr	w23, [sp, #52]
Lloh10:
	adrp	x9, _Vdp2Regs@GOTPAGE
Lloh11:
	ldr	x9, [x9, _Vdp2Regs@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w9, [x9]
	lsl	w9, w9, #4
	and	w26, w9, #0x700
	ldr	w9, [x21]
	mov	x27, x19
	b	LBB0_75
LBB0_73:                                ;   in Loop: Header=BB0_75 Depth=1
	ldp	x8, x19, [sp]                   ; 16-byte Folded Reload
	ldr	w8, [x8]
LBB0_74:                                ;   in Loop: Header=BB0_75 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_3
LBB0_75:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_79 Depth 2
	cmp	w9, #1
	b.lt	LBB0_74
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=1
	mov	w28, #0
	b	LBB0_79
LBB0_77:                                ;   in Loop: Header=BB0_79 Depth=2
	orr	w8, w8, w23
	add	w0, w8, w26
	bl	_ColorRamGetColor
LBB0_78:                                ;   in Loop: Header=BB0_79 Depth=2
	str	w0, [x27], #4
	str	x27, [sp, #24]
	add	w28, w28, #1
	ldr	w9, [x21]
	cmp	w28, w9
	b.ge	LBB0_73
LBB0_79:                                ;   Parent Loop BB0_75 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w19, w25, #0x40
	ldr	w0, [x24]
	ldr	w20, [sp, #36]
	and	w1, w20, #0x7ffff
	bl	_T1ReadByte
	and	w8, w0, #0x7f
	add	w9, w20, #1
	str	w9, [sp, #36]
	orr	w9, w8, w19
	cbnz	w9, LBB0_77
; %bb.80:                               ;   in Loop: Header=BB0_79 Depth=2
	mov	w0, #0
	b	LBB0_78
LBB0_81:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.82:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w22, #0
	ldr	w23, [sp, #52]
Lloh13:
	adrp	x9, _Vdp2Regs@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Vdp2Regs@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w9, [x9]
	lsl	w9, w9, #4
	and	w26, w9, #0x700
	ldr	w9, [x21]
	mov	x27, x19
	b	LBB0_85
LBB0_83:                                ;   in Loop: Header=BB0_85 Depth=1
	ldp	x8, x19, [sp]                   ; 16-byte Folded Reload
	ldr	w8, [x8]
LBB0_84:                                ;   in Loop: Header=BB0_85 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_3
LBB0_85:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_89 Depth 2
	cmp	w9, #1
	b.lt	LBB0_84
; %bb.86:                               ;   in Loop: Header=BB0_85 Depth=1
	mov	w28, #0
	b	LBB0_89
LBB0_87:                                ;   in Loop: Header=BB0_89 Depth=2
	orr	w8, w0, w23
	add	w0, w8, w26
	bl	_ColorRamGetColor
LBB0_88:                                ;   in Loop: Header=BB0_89 Depth=2
	str	w0, [x27], #4
	str	x27, [sp, #24]
	add	w28, w28, #1
	ldr	w9, [x21]
	cmp	w28, w9
	b.ge	LBB0_83
LBB0_89:                                ;   Parent Loop BB0_85 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w19, w25, #0x40
	ldr	w0, [x24]
	ldr	w20, [sp, #36]
	and	w1, w20, #0x7ffff
	bl	_T1ReadByte
	add	w8, w20, #1
	str	w8, [sp, #36]
	orr	w8, w0, w19
	cbnz	w8, LBB0_87
; %bb.90:                               ;   in Loop: Header=BB0_89 Depth=2
	mov	w0, #0
	b	LBB0_88
LBB0_91:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.92:
	mov	w26, #0
	b	LBB0_95
LBB0_93:                                ;   in Loop: Header=BB0_95 Depth=1
	ldr	w8, [x20]
LBB0_94:                                ;   in Loop: Header=BB0_95 Depth=1
	add	w26, w26, #1
	cmp	w26, w8
	b.ge	LBB0_3
LBB0_95:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_100 Depth 2
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_94
; %bb.96:                               ;   in Loop: Header=BB0_95 Depth=1
	mov	w22, #0
	ldr	w8, [sp, #36]
	b	LBB0_100
LBB0_97:                                ;   in Loop: Header=BB0_100 Depth=2
	mov	w0, #255
	mov	x1, x23
	bl	_SAT2YAB1
	ldr	x8, [sp, #24]
	str	w0, [x8], #4
LBB0_98:                                ;   in Loop: Header=BB0_100 Depth=2
	str	x8, [sp, #24]
LBB0_99:                                ;   in Loop: Header=BB0_100 Depth=2
	ldr	w8, [sp, #36]
	add	w8, w8, #2
	str	w8, [sp, #36]
	add	w22, w22, #1
	ldr	w9, [x21]
	cmp	w22, w9
	b.ge	LBB0_93
LBB0_100:                               ;   Parent Loop BB0_95 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	and	w1, w8, #0x7ffff
	bl	_T1ReadWord
	mov	x23, x0
	tbnz	w25, #7, LBB0_103
; %bb.101:                              ;   in Loop: Header=BB0_100 Depth=2
	add	x2, sp, #20
	mov	x0, x23
	mov	w1, #32767
	bl	_CheckEndcode
	cmp	w0, #1
	b.lt	LBB0_103
; %bb.102:                              ;   in Loop: Header=BB0_100 Depth=2
	ldr	w3, [x21]
	add	x1, sp, #36
	add	x2, sp, #24
	mov	x4, x22
	mov	w5, #0
	mov	w6, #16
	bl	_DoEndcode
	cbz	w0, LBB0_99
	b	LBB0_93
LBB0_103:                               ;   in Loop: Header=BB0_100 Depth=2
	and	w8, w25, #0x40
	and	w9, w23, #0x8000
	orr	w8, w9, w8
	cbnz	w8, LBB0_97
; %bb.104:                              ;   in Loop: Header=BB0_100 Depth=2
	ldr	x8, [sp, #24]
	str	wzr, [x8], #4
	b	LBB0_98
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_11-LBB0_11)>>2
	.short	(LBB0_35-LBB0_11)>>2
	.short	(LBB0_61-LBB0_11)>>2
	.short	(LBB0_71-LBB0_11)>>2
	.short	(LBB0_81-LBB0_11)>>2
	.short	(LBB0_91-LBB0_11)>>2
                                        ; -- End function
	.comm	_Vdp1Ram,4,2                    ; @Vdp1Ram
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
.subsections_via_symbols
