	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_clear_rar_generic        ## -- Begin function ixgbe_clear_rar_generic
	.p2align	4, 0x90
_ixgbe_clear_rar_generic:               ## @ixgbe_clear_rar_generic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpq	%rsi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_IXGBE_RAH
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_RAH_AV@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	andq	$-65536, %rbx                   ## imm = 0xFFFF0000
	movq	%r14, %rdi
	callq	_IXGBE_RAH
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	%r12, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movq	%r14, %rdi
	callq	_IXGBE_RAL
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_CLEAR_VMDQ_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*8(%r12)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_hw_dbg
	movq	_IXGBE_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RAR index %d is out of range.\n"

	.comm	_IXGBE_ERR_INVALID_ARGUMENT,4,2 ## @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_RAH_AV,4,2               ## @IXGBE_RAH_AV
	.comm	_IXGBE_CLEAR_VMDQ_ALL,4,2       ## @IXGBE_CLEAR_VMDQ_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_clear_rar_generic        ; -- Begin function ixgbe_clear_rar_generic
	.p2align	2
_ixgbe_clear_rar_generic:               ; @ixgbe_clear_rar_generic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IXGBE_RAH
	mov	x1, x0
	mov	x0, x20
	bl	_IXGBE_READ_REG
Lloh0:
	adrp	x8, _IXGBE_RAH_AV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_RAH_AV@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	bic	x8, x0, x8
	and	x21, x8, #0xffffffffffff0000
	mov	x0, x19
	bl	_IXGBE_RAH
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	mov	x0, x20
	bl	_IXGBE_WRITE_FLUSH
	mov	x0, x19
	bl	_IXGBE_RAL
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_IXGBE_WRITE_REG
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _IXGBE_CLEAR_VMDQ_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXGBE_CLEAR_VMDQ_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_hw_dbg
Lloh8:
	adrp	x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RAR index %d is out of range.\n"

	.comm	_IXGBE_ERR_INVALID_ARGUMENT,4,2 ; @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_RAH_AV,4,2               ; @IXGBE_RAH_AV
	.comm	_IXGBE_CLEAR_VMDQ_ALL,4,2       ; @IXGBE_CLEAR_VMDQ_ALL
.subsections_via_symbols
