	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_rar_set_index
_igc_rar_set_index:                     ## @igc_rar_set_index
	.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, %r12
	movq	(%rdi), %rax
	leaq	(,%rsi,8), %rcx
	leaq	(%rcx,%rcx,2), %r15
	movq	16(%rax,%r15), %rbx
	movq	%rbx, %rdi
	callq	_le32_to_cpup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rdi
	callq	_le16_to_cpup
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	_IGC_MAC_STATE_IN_USE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r15)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_IGC_RAH_AV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	orq	%r13, %rax
	movq	_IGC_RAH_POOL_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	(%r12), %rcx
	leaq	(%r14,%r14,2), %rdx
	movb	8(%rcx,%rdx,8), %cl
	shlq	%cl, %r13
	orq	%rax, %r13
LBB0_4:
	movq	%r14, %rdi
	callq	_IGC_RAL
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wr32
	xorl	%eax, %eax
	callq	_wrfl
	movq	%r14, %rdi
	callq	_IGC_RAH
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_wr32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrfl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IGC_MAC_STATE_IN_USE,4,2       ## @IGC_MAC_STATE_IN_USE
	.comm	_IGC_RAH_AV,8,3                 ## @IGC_RAH_AV
	.comm	_IGC_RAH_POOL_1,8,3             ## @IGC_RAH_POOL_1
	.no_dead_strip	_igc_rar_set_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_rar_set_index
_igc_rar_set_index:                     ; @igc_rar_set_index
	.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	x19, x1
	mov	x22, x0
	ldr	x8, [x0]
	add	x9, x1, x1, lsl #1
	lsl	x24, x9, #3
	add	x8, x8, x24
	ldr	x23, [x8, #16]
	mov	x0, x23
	bl	_le32_to_cpup
	mov	x20, x0
	add	x0, x23, #16
	bl	_le16_to_cpup
	mov	x21, x0
	ldr	x8, [x22]
	ldr	w8, [x8, x24]
Lloh0:
	adrp	x9, _IGC_MAC_STATE_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IGC_MAC_STATE_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_is_valid_ether_addr
Lloh3:
	adrp	x8, _IGC_RAH_AV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGC_RAH_AV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x8, x8, x21
Lloh6:
	adrp	x9, _IGC_RAH_POOL_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IGC_RAH_POOL_1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x22]
	mov	w11, #24
	madd	x10, x19, x11, x10
	ldr	x10, [x10, #8]
	lsl	x9, x9, x10
	orr	x21, x8, x9
LBB0_2:
	mov	x0, x19
	bl	_IGC_RAL
	mov	x1, x20
	bl	_wr32
	bl	_wrfl
	mov	x0, x19
	bl	_IGC_RAH
	mov	x1, x21
	bl	_wr32
	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
	b	_wrfl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IGC_MAC_STATE_IN_USE,4,2       ; @IGC_MAC_STATE_IN_USE
	.comm	_IGC_RAH_AV,8,3                 ; @IGC_RAH_AV
	.comm	_IGC_RAH_POOL_1,8,3             ; @IGC_RAH_POOL_1
	.no_dead_strip	_igc_rar_set_index
.subsections_via_symbols
