	.file	"extr_viddc.c_Vdp1ReadPriority.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sprite type %d not implemented\n"
	.text
	.p2align 4
	.type	Vdp1ReadPriority, @function
Vdp1ReadPriority:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR Vdp2Regs[rip]
	mov	esi, DWORD PTR [rax]
	lea	r8, 4[rax]
	test	sil, 32
	je	.L2
	test	DWORD PTR [rdi], 32768
	jne	.L23
.L2:
	and	esi, 15
	cmp	esi, 7
	ja	.L4
	lea	rcx, .L6[rip]
	mov	edx, esi
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L9-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR [rdi]
	sar	eax, 12
	and	eax, 7
	mov	eax, DWORD PTR [r8+rax*4]
	and	eax, 7
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR [rdi]
	sar	eax, 13
	and	eax, 3
	mov	eax, DWORD PTR [r8+rax*4]
	and	eax, 7
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR 4[rax]
	and	eax, 7
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR [rdi]
	sar	eax, 14
	and	eax, 3
	mov	eax, DWORD PTR [r8+rax*4]
	and	eax, 7
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR [rdi]
	sar	eax, 13
	and	eax, 7
	mov	eax, DWORD PTR [r8+rax*4]
	and	eax, 7
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, .LC0[rip]
	call	VDP1LOG@PLT
	mov	eax, 7
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	Vdp1ReadPriority, .-Vdp1ReadPriority
	.comm	Vdp2Regs,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_viddc.c_Vdp1ReadPriority.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sprite type %d not implemented\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Vdp1ReadPriority, %function
Vdp1ReadPriority:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L24
	ldr	r2, [r3]
	mov	r3, r2
	ldr	r1, [r3], #4
	tst	r1, #32
	beq	.L2
	ldr	ip, [r0]
	tst	ip, #32768
	bne	.L23
.L2:
	and	r1, r1, #15
	cmp	r1, #7
	ldrls	pc, [pc, r1, asl #2]
	b	.L4
.L6:
	.word	.L12
	.word	.L11
	.word	.L4
	.word	.L9
	.word	.L9
	.word	.L5
	.word	.L5
	.word	.L5
.L5:
	ldr	r2, [r0]
	asr	r2, r2, #12
	and	r2, r2, #7
	ldr	r0, [r3, r2, lsl #2]
	and	r0, r0, #7
	bx	lr
.L9:
	ldr	r2, [r0]
	asr	r2, r2, #13
	and	r2, r2, #3
	ldr	r0, [r3, r2, lsl #2]
	and	r0, r0, #7
	bx	lr
.L23:
	ldr	r0, [r2, #4]
	and	r0, r0, #7
	bx	lr
.L12:
	ldr	r2, [r0]
	asr	r2, r2, #14
	and	r2, r2, #3
	ldr	r0, [r3, r2, lsl #2]
	and	r0, r0, #7
	bx	lr
.L11:
	ldr	r2, [r0]
	asr	r2, r2, #13
	and	r2, r2, #7
	ldr	r0, [r3, r2, lsl #2]
	and	r0, r0, #7
	bx	lr
.L4:
	push	{r4, lr}
	ldr	r0, .L24+4
	bl	VDP1LOG
	mov	r0, #7
	pop	{r4, pc}
.L25:
	.align	2
.L24:
	.word	Vdp2Regs
	.word	.LC0
	.size	Vdp1ReadPriority, .-Vdp1ReadPriority
	.comm	Vdp2Regs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
