	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_set_rar_generic          ## -- Begin function ixgbe_set_rar_generic
	.p2align	4, 0x90
_ixgbe_set_rar_generic:                 ## @ixgbe_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpq	%rsi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rcx, %rdx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	*8(%r13)
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	shlq	$8, %rax
	orq	(%r15), %rax
	shlq	$16, %rcx
	movq	24(%r15), %rbx
	shlq	$24, %rbx
	orq	%rcx, %rbx
	orq	%rax, %rbx
	movq	%r14, %rdi
	callq	_IXGBE_RAH
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_RAH_AV@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, %rdx
	notq	%rdx
	andq	%rax, %rdx
	andq	$-65536, %rdx                   ## imm = 0xFFFF0000
	movq	40(%r15), %r12
	shlq	$8, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	orq	32(%r15), %rcx
	orq	%rdx, %r12
	orq	%rcx, %r12
	movq	%r14, %rdi
	callq	_IXGBE_RAL
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	%r13, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movq	%r14, %rdi
	callq	_IXGBE_RAH
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_IXGBE_WRITE_REG
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_hw_dbg
	movq	_IXGBE_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_set_rar_generic          ; -- Begin function ixgbe_set_rar_generic
	.p2align	2
_ixgbe_set_rar_generic:                 ; @ixgbe_set_rar_generic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
	mov	x21, x4
	mov	x22, x2
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x3
	blr	x8
	ldp	x8, x9, [x22]
	orr	x8, x8, x9, lsl #8
	ldp	x9, x10, [x22, #16]
	orr	x8, x8, x9, lsl #16
	orr	x23, x8, x10, lsl #24
	mov	x0, x20
	bl	_IXGBE_RAH
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh0:
	adrp	x8, _IXGBE_RAH_AV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_RAH_AV@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	bic	x9, x0, x8
	and	x9, x9, #0xffffffffffff0000
	ldp	x10, x11, [x22, #32]
	cmp	x21, #0
	csel	x8, xzr, x8, eq
	orr	x8, x8, x10
	orr	x8, x8, x11, lsl #8
	orr	x21, x8, x9
	mov	x0, x20
	bl	_IXGBE_RAL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	x0, x20
	bl	_IXGBE_RAH
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_hw_dbg
Lloh5:
	adrp	x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.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
.subsections_via_symbols
