	.file	"extr_vdp_ctrl.c_vdp_68k_data_r_m5.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdp_68k_data_r_m5, @function
vdp_68k_data_r_m5:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR code[rip]
	mov	edx, DWORD PTR addr[rip]
	mov	QWORD PTR pending[rip], 0
	and	eax, 15
	cmp	eax, 8
	je	.L2
	jg	.L3
	test	eax, eax
	je	.L4
	cmp	eax, 4
	jne	.L8
	mov	rax, QWORD PTR vsram[rip]
	mov	ecx, edx
	and	ecx, 126
	mov	eax, DWORD PTR [rax+rcx*4]
.L6:
	mov	rcx, QWORD PTR reg[rip]
	add	edx, DWORD PTR 120[rcx]
	mov	DWORD PTR addr[rip], edx
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	eax, 12
	jne	.L8
	mov	rax, QWORD PTR vram[rip]
	mov	ecx, edx
	and	ecx, 65534
	movzx	eax, BYTE PTR [rax+rcx*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR vram[rip]
	mov	ecx, edx
	and	ecx, 65534
	mov	eax, DWORD PTR [rax+rcx*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR cram[rip]
	mov	ecx, edx
	and	ecx, 126
	mov	ecx, DWORD PTR [rax+rcx*4]
	lea	eax, 0[0+rcx*8]
	lea	esi, 0[0+rcx*4]
	add	ecx, ecx
	and	eax, 3584
	and	esi, 224
	and	ecx, 14
	or	eax, esi
	or	eax, ecx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	vdp_68k_data_r_m5, .-vdp_68k_data_r_m5
	.comm	vsram,8,8
	.comm	vram,8,8
	.comm	v_counter,4,4
	.comm	reg,8,8
	.comm	pending,8,8
	.comm	m68k,4,4
	.comm	cram,8,8
	.comm	code,4,4
	.comm	addr,4,4
	.comm	MCYCLES_PER_LINE,4,4
	.comm	M68K_REG_PC,4,4
	.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_vdp_ctrl.c_vdp_68k_data_r_m5.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdp_68k_data_r_m5, %function
vdp_68k_data_r_m5:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	mov	r0, #0
	ldr	r3, .L10
	ldr	r1, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10+8
	and	r3, r3, #15
	str	r0, [r1]
	ldr	r1, [r2]
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L4:
	.word	.L7
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L6
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L5
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L3
.L8:
	mov	r0, #0
.L2:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	ldr	r3, [r3, #60]
	add	r3, r3, r1
	str	r3, [r2]
	bx	lr
.L3:
	ldr	r0, .L10+16
	ldr	r3, .L10+20
	ldr	r0, [r0]
	and	r3, r3, r1
	ldrb	r0, [r0, r3, lsl #2]	@ zero_extendqisi2
	b	.L2
.L7:
	ldr	r0, .L10+16
	ldr	r3, .L10+20
	ldr	r0, [r0]
	and	r3, r3, r1
	ldr	r0, [r0, r3, lsl #2]
	b	.L2
.L6:
	ldr	r0, .L10+24
	and	r3, r1, #126
	ldr	r0, [r0]
	ldr	r0, [r0, r3, lsl #2]
	b	.L2
.L5:
	ldr	r0, .L10+28
	and	r3, r1, #126
	ldr	r0, [r0]
	ldr	r3, [r0, r3, lsl #2]
	lsl	r0, r3, #3
	lsl	ip, r3, #2
	and	r0, r0, #3584
	and	ip, ip, #224
	lsl	r3, r3, #1
	orr	r0, r0, ip
	and	r3, r3, #14
	orr	r0, r0, r3
	b	.L2
.L11:
	.align	2
.L10:
	.word	code
	.word	pending
	.word	addr
	.word	reg
	.word	vram
	.word	65534
	.word	vsram
	.word	cram
	.size	vdp_68k_data_r_m5, .-vdp_68k_data_r_m5
	.comm	vsram,4,4
	.comm	vram,4,4
	.comm	v_counter,4,4
	.comm	reg,4,4
	.comm	pending,4,4
	.comm	m68k,4,4
	.comm	cram,4,4
	.comm	code,4,4
	.comm	addr,4,4
	.comm	MCYCLES_PER_LINE,4,4
	.comm	M68K_REG_PC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
