	.file	"extr_c-r3k.c_r3k_flush_dcache_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r3k_flush_dcache_range, @function
r3k_flush_dcache_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, QWORD PTR dcache_size[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR KSEG0[rip]
	cmp	rbp, rsi
	jnb	.L14
.L4:
	xor	eax, eax
	call	read_c0_status@PLT
	mov	rdi, QWORD PTR ST0_ISC[rip]
	mov	r12, rax
	or	rdi, rax
	mov	rax, QWORD PTR ST0_IEC[rip]
	not	rax
	and	rdi, rax
	call	write_c0_status@PLT
	test	rbp, rbp
	je	.L5
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, [rbx+rax]
#APP
# 41 "data/linux/arch/mips/mm/extr_c-r3k.c_r3k_flush_dcache_range.c" 1
	sb	$0, 0x000(rdx)
	sb	$0, 0x004(rdx)
	sb	$0, 0x008(rdx)
	sb	$0, 0x00c(rdx)
	sb	$0, 0x010(rdx)
	sb	$0, 0x014(rdx)
	sb	$0, 0x018(rdx)
	sb	$0, 0x01c(rdx)
	sb	$0, 0x020(rdx)
	sb	$0, 0x024(rdx)
	sb	$0, 0x028(rdx)
	sb	$0, 0x02c(rdx)
	sb	$0, 0x030(rdx)
	sb	$0, 0x034(rdx)
	sb	$0, 0x038(rdx)
	sb	$0, 0x03c(rdx)
	sb	$0, 0x040(rdx)
	sb	$0, 0x044(rdx)
	sb	$0, 0x048(rdx)
	sb	$0, 0x04c(rdx)
	sb	$0, 0x050(rdx)
	sb	$0, 0x054(rdx)
	sb	$0, 0x058(rdx)
	sb	$0, 0x05c(rdx)
	sb	$0, 0x060(rdx)
	sb	$0, 0x064(rdx)
	sb	$0, 0x068(rdx)
	sb	$0, 0x06c(rdx)
	sb	$0, 0x070(rdx)
	sb	$0, 0x074(rdx)
	sb	$0, 0x078(rdx)
	sb	$0, 0x07c(rdx)
	
# 0 "" 2
#NO_APP
	sub	rax, -128
	cmp	rbp, rax
	ja	.L6
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	write_c0_status@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12, rsi
	mov	rbx, rdi
	call	KSEGX@PLT
	mov	rbp, r12
	mov	r8, rax
	mov	rax, QWORD PTR KSEG0[rip]
	cmp	r8, rax
	je	.L4
	mov	rbp, QWORD PTR dcache_size[rip]
	mov	rbx, rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	r3k_flush_dcache_range, .-r3k_flush_dcache_range
	.comm	dcache_size,8,8
	.comm	ST0_ISC,8,8
	.comm	ST0_IEC,8,8
	.comm	KSEG0,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_c-r3k.c_r3k_flush_dcache_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r3k_flush_dcache_range, %function
r3k_flush_dcache_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L14
	sub	r6, r1, r0
	ldr	r5, [r7]
	cmp	r5, r6
	bcs	.L2
	ldr	r3, .L14+4
	ldr	r4, [r3]
.L4:
	bl	read_c0_status
	mov	r6, r0
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r3, r6, r3
	bic	r0, r3, r0
	bl	write_c0_status
	cmp	r5, #0
	beq	.L5
	mov	r3, #0
.L6:
	add	r2, r4, r3
	.syntax divided
@ 41 "data/linux/arch/mips/mm/extr_c-r3k.c_r3k_flush_dcache_range.c" 1
	sb	$0, 0x000(r2)
	sb	$0, 0x004(r2)
	sb	$0, 0x008(r2)
	sb	$0, 0x00c(r2)
	sb	$0, 0x010(r2)
	sb	$0, 0x014(r2)
	sb	$0, 0x018(r2)
	sb	$0, 0x01c(r2)
	sb	$0, 0x020(r2)
	sb	$0, 0x024(r2)
	sb	$0, 0x028(r2)
	sb	$0, 0x02c(r2)
	sb	$0, 0x030(r2)
	sb	$0, 0x034(r2)
	sb	$0, 0x038(r2)
	sb	$0, 0x03c(r2)
	sb	$0, 0x040(r2)
	sb	$0, 0x044(r2)
	sb	$0, 0x048(r2)
	sb	$0, 0x04c(r2)
	sb	$0, 0x050(r2)
	sb	$0, 0x054(r2)
	sb	$0, 0x058(r2)
	sb	$0, 0x05c(r2)
	sb	$0, 0x060(r2)
	sb	$0, 0x064(r2)
	sb	$0, 0x068(r2)
	sb	$0, 0x06c(r2)
	sb	$0, 0x070(r2)
	sb	$0, 0x074(r2)
	sb	$0, 0x078(r2)
	sb	$0, 0x07c(r2)
	
@ 0 "" 2
	.arm
	.syntax unified
	add	r3, r3, #128
	cmp	r5, r3
	bhi	.L6
.L5:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	write_c0_status
.L2:
	mov	r4, r0
	bl	KSEGX
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r0, r3
	movne	r4, r3
	moveq	r5, r6
	ldrne	r5, [r7]
	b	.L4
.L15:
	.align	2
.L14:
	.word	dcache_size
	.word	KSEG0
	.word	ST0_ISC
	.word	ST0_IEC
	.size	r3k_flush_dcache_range, .-r3k_flush_dcache_range
	.comm	dcache_size,4,4
	.comm	ST0_ISC,4,4
	.comm	ST0_IEC,4,4
	.comm	KSEG0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
