	.file	"extr_arc.c_arc_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arc_flush
	.type	arc_flush, @function
arc_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	test	esi, esi
	mov	r13, rdi
	sete	dil
	test	r13, r13
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	sete	al
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	or	edi, eax
	movzx	edi, dil
	call	ASSERT@PLT
	test	r13, r13
	je	.L2
	mov	rdi, r13
	call	spa_load_guid@PLT
	mov	ebp, eax
.L2:
	mov	edx, DWORD PTR ARC_BUFC_DATA[rip]
	mov	edi, DWORD PTR arc_mru[rip]
	mov	ecx, r12d
	mov	esi, ebp
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_METADATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mru[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_DATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mfu[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_METADATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mfu[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_DATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mru_ghost[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_METADATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mru_ghost[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_DATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mfu_ghost[rip]
	call	arc_flush_state@PLT
	mov	edx, DWORD PTR ARC_BUFC_METADATA[rip]
	mov	ecx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR arc_mfu_ghost[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	arc_flush_state@PLT
	.cfi_endproc
.LFE0:
	.size	arc_flush, .-arc_flush
	.comm	arc_mru_ghost,4,4
	.comm	arc_mru,4,4
	.comm	arc_mfu_ghost,4,4
	.comm	arc_mfu,4,4
	.comm	ARC_BUFC_METADATA,4,4
	.comm	ARC_BUFC_DATA,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_arc.c_arc_flush.c"
	.text
	.align	2
	.global	arc_flush
	.syntax unified
	.arm
	.fpu softvfp
	.type	arc_flush, %function
arc_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r2, r0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	cmp	r1, #0
	lsr	r2, r2, #5
	movne	r0, r2
	moveq	r0, #1
	mov	r5, r1
	bl	ASSERT
	cmp	r4, #0
	beq	.L2
	mov	r0, r4
	bl	spa_load_guid
	mov	r4, r0
.L2:
	ldr	r7, .L6
	ldr	r9, .L6+4
	ldr	r6, .L6+8
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r7]
	ldr	r8, .L6+12
	ldr	r0, [r9]
	bl	arc_flush_state
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r9]
	bl	arc_flush_state
	ldr	r9, .L6+16
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r7]
	ldr	r0, [r8]
	bl	arc_flush_state
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r8]
	bl	arc_flush_state
	ldr	r8, .L6+20
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r7]
	ldr	r0, [r9]
	bl	arc_flush_state
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r9]
	bl	arc_flush_state
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r7]
	ldr	r0, [r8]
	bl	arc_flush_state
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	arc_flush_state
.L7:
	.align	2
.L6:
	.word	ARC_BUFC_DATA
	.word	arc_mru
	.word	ARC_BUFC_METADATA
	.word	arc_mfu
	.word	arc_mru_ghost
	.word	arc_mfu_ghost
	.size	arc_flush, .-arc_flush
	.comm	arc_mru_ghost,4,4
	.comm	arc_mru,4,4
	.comm	arc_mfu_ghost,4,4
	.comm	arc_mfu,4,4
	.comm	ARC_BUFC_METADATA,4,4
	.comm	ARC_BUFC_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
