	.file	"extr_vdp_ctrl.c_vdp_dma_68k_ram.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdp_dma_68k_ram, @function
vdp_dma_68k_ram:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR reg[rip]
	mov	edx, DWORD PTR 92[rax]
	mov	eax, DWORD PTR dma_src[rip]
	mov	ebx, edx
	add	eax, eax
	sal	ebx, 17
	or	ebx, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR reg[rip]
	mov	edx, DWORD PTR 92[rax]
.L3:
	mov	rax, QWORD PTR work_ram[rip]
	movzx	ecx, bx
	add	ebx, 2
	sal	edx, 17
	and	ebx, 131071
	mov	edi, DWORD PTR [rcx+rax]
	or	ebx, edx
	call	vdp_bus_w@PLT
	sub	ebp, 1
	jne	.L6
	sar	ebx
	and	ebx, 65535
	mov	DWORD PTR dma_src[rip], ebx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vdp_dma_68k_ram, .-vdp_dma_68k_ram
	.comm	work_ram,8,8
	.comm	reg,8,8
	.comm	dma_src,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_dma_68k_ram.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdp_dma_68k_ram, %function
vdp_dma_68k_ram:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, .L7
	ldr	r7, .L7+4
	ldr	r3, [r10]
	ldr	r4, [r7]
	ldr	r3, [r3, #92]
	mov	r8, r0
	lsl	r3, r3, #17
	ldr	r9, .L7+8
	ldr	r5, .L7+12
	ldr	r6, .L7+16
	orr	r4, r3, r4, lsl #1
	b	.L3
.L6:
	ldr	r3, [r10]
	ldr	r3, [r3, #92]
	lsl	r3, r3, #17
.L3:
	ldr	r1, [r9]
	add	r2, r4, #2
	and	r4, r4, r5
	ldr	r0, [r4, r1]
	and	r2, r2, r6
	orr	r4, r3, r2
	bl	vdp_bus_w
	subs	r8, r8, #1
	bne	.L6
	and	r4, r5, r4, asr #1
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	reg
	.word	dma_src
	.word	work_ram
	.word	65535
	.word	131071
	.size	vdp_dma_68k_ram, .-vdp_dma_68k_ram
	.comm	work_ram,4,4
	.comm	reg,4,4
	.comm	dma_src,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
