	.file	"extr_videoport.c_DmaFill.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DmaFill len %i inc %i [%i]"
	.text
	.p2align 4
	.type	DmaFill, @function
DmaFill:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r9d, edi
	mov	r15d, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	sar	r9d, 8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR Pico[rip+8]
	movzx	r12d, WORD PTR Pico[rip]
	mov	DWORD PTR 12[rsp], r9d
	mov	rbx, QWORD PTR Pico[rip+32]
	movzx	r13d, BYTE PTR 15[rax]
	xor	eax, eax
	call	GetDmaLength@PLT
	mov	r14d, eax
	xor	eax, eax
	call	SekCyclesDone@PLT
	mov	edi, DWORD PTR EL_VDPDMA[rip]
	movzx	ecx, r13b
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	r8d, eax
	call	elprintf@PLT
	movzx	eax, r12w
	movzx	esi, r13b
	add	DWORD PTR Pico[rip+24], r14d
	or	DWORD PTR Pico[rip+16], 2
	lea	edi, [rsi+r12]
	mov	BYTE PTR [rbx+rax], r15b
	test	r13b, r13b
	jne	.L2
	mov	r9d, DWORD PTR 12[rsp]
	movzx	eax, di
	mov	BYTE PTR [rbx+rax], r9b
.L3:
	mov	rax, QWORD PTR Pico[rip+8]
	xor	edx, edx
	mov	WORD PTR Pico[rip], di
	mov	WORD PTR 19[rax], dx
	mov	eax, DWORD PTR PDRAW_DIRTY_SPRITES[rip]
	or	DWORD PTR rendstatus[rip], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	r14d, r14d
	je	.L3
	mov	edx, edi
	mov	eax, r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	ecx, dx
	add	edx, esi
	mov	BYTE PTR [rbx+rcx], bpl
	sub	eax, 1
	jne	.L4
	sub	r14d, 1
	add	edi, esi
	imul	esi, r14d
	add	edi, esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	DmaFill, .-DmaFill
	.comm	rendstatus,4,4
	.comm	Pico,40,32
	.comm	PDRAW_DIRTY_SPRITES,4,4
	.comm	EL_VDPDMA,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_videoport.c_DmaFill.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DmaFill len %i inc %i [%i]\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DmaFill, %function
DmaFill:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L11
	sub	sp, sp, #12
	ldr	r3, [r6, #4]
	ldrh	r9, [r6]
	ldrb	r10, [r3, #15]	@ zero_extendqisi2
	ldr	r5, [r6, #16]
	mov	r8, r0
	asr	r4, r0, #8
	bl	GetDmaLength
	ldr	r1, .L11+4
	mov	r7, r0
	ldr	fp, [r1]
	bl	SekCyclesDone
	mov	r2, r0
	ldr	r1, .L11+8
	str	r2, [sp]
	mov	r3, r10
	mov	r2, r7
	mov	r0, fp
	bl	elprintf
	ldr	r0, [r6, #12]
	ldr	r2, [r6, #8]
	add	r1, r10, r9
	orr	r2, r2, #2
	lsl	r1, r1, #16
	and	r4, r4, #255
	cmp	r10, #0
	add	r0, r0, r7
	str	r2, [r6, #8]
	str	r0, [r6, #12]
	lsr	r2, r1, #16
	strb	r8, [r5, r9]
	strbeq	r4, [r5, r1, lsr #16]
	beq	.L3
	cmp	r7, #0
	beq	.L3
	mov	r3, r10
	mov	r1, r2
	mov	ip, r7
.L4:
	add	lr, r3, r1
	strb	r4, [r5, r1]
	subs	ip, ip, #1
	lsl	r1, lr, #16
	lsr	r1, r1, #16
	bne	.L4
	add	r2, r3, r2
	sub	r7, r7, #1
	mla	r3, r7, r3, r2
	lsl	r2, r3, #16
	lsr	r2, r2, #16
.L3:
	mov	r1, #0
	ldr	r0, .L11+12
	ldr	ip, .L11+16
	ldr	r3, [r0]
	ldr	ip, [ip]
	strh	r2, [r6]	@ movhi
	ldr	r2, [r6, #4]
	orr	r3, r3, ip
	str	r3, [r0]
	strb	r1, [r2, #20]
	strb	r1, [r2, #19]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	Pico
	.word	EL_VDPDMA
	.word	.LC0
	.word	rendstatus
	.word	PDRAW_DIRTY_SPRITES
	.size	DmaFill, .-DmaFill
	.comm	rendstatus,4,4
	.comm	Pico,20,4
	.comm	PDRAW_DIRTY_SPRITES,4,4
	.comm	EL_VDPDMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
