	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp1ReadPriority
_Vdp1ReadPriority:                      ## @Vdp1ReadPriority
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	testb	$32, %sil
	je	LBB0_2
## %bb.1:
	testb	$-128, 1(%rdi)
	jne	LBB0_5
LBB0_2:
	andl	$15, %esi
	cmpl	$7, %esi
	ja	LBB0_13
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_4:
	movl	(%rdi), %ecx
	shrq	$10, %rcx
	jmp	LBB0_11
LBB0_5:
	movl	4(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	movl	(%rdi), %ecx
	shrq	$11, %rcx
	jmp	LBB0_9
LBB0_8:
	movl	(%rdi), %ecx
	shrq	$12, %rcx
LBB0_9:
	andl	$12, %ecx
	jmp	LBB0_12
LBB0_10:
	movl	(%rdi), %ecx
	shrq	$11, %rcx
LBB0_11:
	andl	$28, %ecx
LBB0_12:
	movl	4(%rax,%rcx), %eax
LBB0_6:
	andl	$7, %eax
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_VDP1LOG
	movl	$7, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sprite type %d not implemented\n"

	.no_dead_strip	_Vdp1ReadPriority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp1ReadPriority
_Vdp1ReadPriority:                      ; @Vdp1ReadPriority
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8], #4
	tbz	w9, #5, LBB0_2
; %bb.1:
	ldrb	w10, [x0, #1]
	tbnz	w10, #7, LBB0_5
LBB0_2:
	and	w1, w9, #0xf
	cmp	w1, #7
	b.hi	LBB0_11
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w9, [x0]
	ubfx	x9, x9, #12, #3
	b	LBB0_9
LBB0_5:
	ldr	w8, [x8]
	b	LBB0_10
LBB0_6:
	ldr	w9, [x0]
	ubfx	x9, x9, #13, #2
	b	LBB0_9
LBB0_7:
	ldr	w9, [x0]
	ubfx	x9, x9, #14, #2
	b	LBB0_9
LBB0_8:
	ldr	w9, [x0]
	ubfx	x9, x9, #13, #3
LBB0_9:
	ldr	w8, [x8, x9, lsl #2]
LBB0_10:
	and	w0, w8, #0x7
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_VDP1LOG
	mov	w0, #7
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sprite type %d not implemented\n"

	.no_dead_strip	_Vdp1ReadPriority
.subsections_via_symbols
