	.file	"extr_cache.c___cache_line_loop_v2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__cache_line_loop_v2, @function
__cache_line_loop_v2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR OP_INV_IC[rip], ecx
	mov	r12d, DWORD PTR ARC_REG_IC_IVIL[rip]
	je	.L3
	mov	r12d, DWORD PTR ARC_REG_DC_IVDL[rip]
	test	DWORD PTR OP_INV[rip], ecx
	cmove	r12d, DWORD PTR ARC_REG_DC_FLDL[rip]
.L3:
	test	r8d, r8d
	jne	.L5
	mov	rax, QWORD PTR CACHE_LINE_MASK[rip]
	mov	rdx, rax
	and	rbx, rax
	not	rdx
	and	rdx, r13
	and	r13, rax
	add	rdi, rdx
.L5:
	mov	rsi, QWORD PTR L1_CACHE_BYTES[rip]
	call	DIV_ROUND_UP@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	lea	ebp, -1[rax]
	shr	rbx, cl
	and	ebx, 31
	or	rbx, r13
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, rbx
	mov	edi, r12d
	sub	ebp, 1
	call	write_aux_reg@PLT
	add	rbx, QWORD PTR L1_CACHE_BYTES[rip]
	cmp	ebp, -1
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__cache_line_loop_v2, .-__cache_line_loop_v2
	.comm	PAGE_SHIFT,8,8
	.comm	OP_INV_IC,4,4
	.comm	OP_INV,4,4
	.comm	L1_CACHE_BYTES,8,8
	.comm	CACHE_LINE_MASK,8,8
	.comm	ARC_REG_IC_IVIL,4,4
	.comm	ARC_REG_DC_IVDL,4,4
	.comm	ARC_REG_DC_FLDL,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_cache.c___cache_line_loop_v2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__cache_line_loop_v2, %function
__cache_line_loop_v2:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L12
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r0, [ip]
	mov	r5, r1
	cmp	r0, r3
	mov	r0, r2
	ldr	r2, [sp, #32]
	beq	.L11
	ldr	r1, .L12+4
	ldr	r1, [r1]
	tst	r3, r1
	ldrne	r3, .L12+8
	ldreq	r3, .L12+12
	ldr	r7, [r3]
.L3:
	cmp	r2, #0
	bne	.L5
	ldr	r3, .L12+16
	ldr	r3, [r3]
	bic	r2, r9, r3
	and	r5, r5, r3
	add	r0, r0, r2
	and	r9, r9, r3
.L5:
	ldr	r8, .L12+20
	ldr	r1, [r8]
	bl	DIV_ROUND_UP
	ldr	r3, .L12+24
	cmp	r0, #0
	ldr	r4, [r3]
	sub	r6, r0, #1
	lsr	r4, r5, r4
	and	r4, r4, #31
	orr	r4, r4, r9
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r1, r4
	mov	r0, r7
	bl	write_aux_reg
	sub	r6, r6, #1
	ldr	r3, [r8]
	cmn	r6, #1
	add	r4, r4, r3
	bne	.L7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L12+28
	ldr	r7, [r3]
	b	.L3
.L13:
	.align	2
.L12:
	.word	OP_INV_IC
	.word	OP_INV
	.word	ARC_REG_DC_IVDL
	.word	ARC_REG_DC_FLDL
	.word	CACHE_LINE_MASK
	.word	L1_CACHE_BYTES
	.word	PAGE_SHIFT
	.word	ARC_REG_IC_IVIL
	.size	__cache_line_loop_v2, .-__cache_line_loop_v2
	.comm	PAGE_SHIFT,4,4
	.comm	OP_INV_IC,4,4
	.comm	OP_INV,4,4
	.comm	L1_CACHE_BYTES,4,4
	.comm	CACHE_LINE_MASK,4,4
	.comm	ARC_REG_IC_IVIL,4,4
	.comm	ARC_REG_DC_IVDL,4,4
	.comm	ARC_REG_DC_FLDL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
