	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_rar_set_pch2lan
_e1000_rar_set_pch2lan:                 ## @e1000_rar_set_pch2lan
	.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
	movl	8(%rsi), %eax
	movl	16(%rsi), %ecx
	shll	$8, %eax
	orl	(%rsi), %eax
	shll	$16, %ecx
	movl	24(%rsi), %ebx
	shll	$24, %ebx
	orl	%ecx, %ebx
	orl	%eax, %ebx
	movl	40(%rsi), %eax
	shll	$8, %eax
	orl	32(%rsi), %eax
	movq	_E1000_RAH_AV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	%eax, %r12d
	xorl	%r15d, %r15d
	orl	%ebx, %eax
	cmovel	%r15d, %r12d
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %r13
	cmpl	%edx, (%rdi)
	jle	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	callq	_e1000_acquire_swflag_ich8lan
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leal	-1(%r14), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_SHRAL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_SHRAH
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	callq	_e1000_release_swflag_ich8lan
	movl	%r13d, %edi
	callq	_SHRAL
	movl	%eax, %edi
	callq	_er32
	cmpl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r13d, %edi
	callq	_SHRAH
	movl	%eax, %edi
	callq	_er32
	cmpl	%r12d, %eax
	je	LBB0_8
LBB0_6:
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_1:
	xorl	%edi, %edi
	callq	_RAL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	xorl	%edi, %edi
	callq	_RAH
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_RAH_AV,4,2               ## @E1000_RAH_AV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHRA[%d] might be locked by ME - FWSM=0x%8.8x\n"

	.comm	_FWSM,4,2                       ## @FWSM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write receive address at index %d\n"

	.comm	_E1000_ERR_CONFIG,4,2           ## @E1000_ERR_CONFIG
	.no_dead_strip	_e1000_rar_set_pch2lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_rar_set_pch2lan
_e1000_rar_set_pch2lan:                 ; @e1000_rar_set_pch2lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	ldr	w9, [x1, #8]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x1, #16]
	orr	w8, w8, w9, lsl #16
	ldr	w9, [x1, #24]
	orr	w21, w8, w9, lsl #24
	ldr	w8, [x1, #32]
	ldr	w9, [x1, #40]
	orr	w8, w8, w9, lsl #8
	orr	w9, w21, w8
Lloh0:
	adrp	x10, _E1000_RAH_AV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _E1000_RAH_AV@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w8, w8, w10
	cmp	w9, #0
	csel	w20, w8, wzr, ne
	cbz	w2, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, w2
	b.le	LBB0_8
; %bb.2:
	mov	x0, x23
	bl	_e1000_acquire_swflag_ich8lan
	cbnz	x0, LBB0_8
; %bb.3:
	sub	w22, w19, #1
	mov	x0, x22
	bl	_SHRAL
	mov	x1, x21
	bl	_ew32
	bl	_e1e_flush
	mov	x0, x22
	bl	_SHRAH
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	x0, x23
	bl	_e1000_release_swflag_ich8lan
	mov	x0, x22
	bl	_SHRAL
	bl	_er32
	cmp	w0, w21
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_SHRAH
	bl	_er32
	cmp	w0, w20
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	bl	_RAL
	mov	x1, x21
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #0
	bl	_RAH
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _FWSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_e_dbg
LBB0_8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_e_dbg
Lloh10:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_RAH_AV,4,2               ; @E1000_RAH_AV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHRA[%d] might be locked by ME - FWSM=0x%8.8x\n"

	.comm	_FWSM,4,2                       ; @FWSM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write receive address at index %d\n"

	.comm	_E1000_ERR_CONFIG,4,2           ; @E1000_ERR_CONFIG
	.no_dead_strip	_e1000_rar_set_pch2lan
.subsections_via_symbols
