	.file	"extr_flush-sh4.c_sh4__flush_purge_region.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sh4__flush_purge_region, @function
sh4__flush_purge_region:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	register_align@PLT
	mov	esi, DWORD PTR L1_CACHE_BYTES[rip]
	mov	ecx, eax
	mov	ebp, esi
	add	ecx, r12d
	neg	ebp
	mov	ebx, ebp
	and	ebx, eax
	lea	eax, -1[rsi+rcx]
	and	ebp, eax
	sub	ebp, ebx
	mov	eax, ebp
	cdq
	idiv	esi
	mov	r12d, eax
	cmp	eax, 7
	jle	.L2
	mov	ebp, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	sub	r12d, 8
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	cmp	r12d, 7
	jg	.L3
	and	ebp, 7
	mov	r12d, ebp
.L2:
	test	r12d, r12d
	je	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, ebx
	call	__ocbp@PLT
	add	ebx, DWORD PTR L1_CACHE_BYTES[rip]
	sub	r12d, 1
	jne	.L5
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sh4__flush_purge_region, .-sh4__flush_purge_region
	.comm	L1_CACHE_BYTES,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_flush-sh4.c_sh4__flush_purge_region.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh4__flush_purge_region, %function
sh4__flush_purge_region:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	register_align
	ldr	r7, .L13
	add	r3, r0, r5
	ldr	r1, [r7]
	add	r3, r3, r1
	rsb	r4, r1, #0
	sub	r3, r3, #1
	and	r3, r3, r4
	and	r4, r4, r0
	sub	r0, r3, r4
	bl	__aeabi_idiv
	cmp	r0, #7
	mov	r5, r0
	ble	.L2
	mov	r6, r0
.L3:
	mov	r0, r4
	bl	__ocbp
	ldr	r0, [r7]
	sub	r6, r6, #8
	add	r4, r4, r0
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	add	r4, r4, r3
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	add	r4, r4, r3
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	add	r4, r4, r3
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	add	r4, r4, r3
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	add	r4, r4, r3
	mov	r0, r4
	bl	__ocbp
	ldr	r0, [r7]
	add	r4, r4, r0
	mov	r0, r4
	bl	__ocbp
	ldr	r0, [r7]
	cmp	r6, #7
	add	r4, r4, r0
	bgt	.L3
	and	r5, r5, #7
.L2:
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	__ocbp
	ldr	r3, [r7]
	subs	r5, r5, #1
	add	r4, r4, r3
	bne	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	L1_CACHE_BYTES
	.size	sh4__flush_purge_region, .-sh4__flush_purge_region
	.comm	L1_CACHE_BYTES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
