	.file	"extr_ixgbe_common.c_ixgbe_clear_rar_generic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RAR index %d is out of range.\n"
	.text
	.p2align 4
	.globl	ixgbe_clear_rar_generic
	.type	ixgbe_clear_rar_generic, @function
ixgbe_clear_rar_generic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rsi
	jle	.L6
	mov	rdi, rsi
	call	IXGBE_RAH@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_READ_REG@PLT
	mov	r13d, DWORD PTR IXGBE_RAH_AV[rip]
	mov	rdi, r12
	or	r13d, 65535
	not	r13d
	movsx	r13, r13d
	and	r13, rax
	call	IXGBE_RAH@PLT
	mov	rdx, r13
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbp
	call	IXGBE_WRITE_FLUSH@PLT
	mov	rdi, r12
	call	IXGBE_RAL@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR IXGBE_CLEAR_VMDQ_ALL[rip]
	call	[QWORD PTR 8[rbp]]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdx, rsi
	lea	rsi, .LC0[rip]
	call	hw_dbg@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IXGBE_ERR_INVALID_ARGUMENT[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_clear_rar_generic, .-ixgbe_clear_rar_generic
	.comm	IXGBE_RAH_AV,4,4
	.comm	IXGBE_ERR_INVALID_ARGUMENT,4,4
	.comm	IXGBE_CLEAR_VMDQ_ALL,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_ixgbe_common.c_ixgbe_clear_rar_generic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RAR index %d is out of range.\012\000"
	.text
	.align	2
	.global	ixgbe_clear_rar_generic
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_clear_rar_generic, %function
ixgbe_clear_rar_generic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, r1
	mov	r5, r1
	ble	.L6
	mov	r4, r0
	mov	r0, r1
	bl	IXGBE_RAH
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r3, .L7
	mov	r6, r0
	ldr	r2, [r3]
	mov	r0, r5
	mvn	r2, r2, lsr #16
	mvn	r2, r2, lsl #16
	bic	r6, r6, r2
	bl	IXGBE_RAH
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
	mov	r0, r5
	bl	IXGBE_RAL
	mov	r2, #0
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r3, .L7+4
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r3, [r4, #4]
	blx	r3
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r2, r1
	ldr	r1, .L7+8
	bl	hw_dbg
	ldr	r3, .L7+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	IXGBE_RAH_AV
	.word	IXGBE_CLEAR_VMDQ_ALL
	.word	.LC0
	.word	IXGBE_ERR_INVALID_ARGUMENT
	.size	ixgbe_clear_rar_generic, .-ixgbe_clear_rar_generic
	.comm	IXGBE_RAH_AV,4,4
	.comm	IXGBE_ERR_INVALID_ARGUMENT,4,4
	.comm	IXGBE_CLEAR_VMDQ_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
