	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_rar_set_pch_lpt
_e1000_rar_set_pch_lpt:                 ## @e1000_rar_set_pch_lpt
	.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), %r15d
	orl	%eax, %r15d
	xorl	%r13d, %r13d
	orl	%ebx, %eax
	cmovel	%r13d, %r15d
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %r12
	cmpl	%edx, (%rdi)
	jle	LBB0_9
## %bb.3:
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_FWSM_WLOCK_MAC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_E1000_FWSM_WLOCK_MAC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.5:
	cmpl	%r14d, %eax
	jl	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_e1000_acquire_swflag_ich8lan
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leal	-1(%r14), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_SHRAL_PCH_LPT
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_SHRAH_PCH_LPT
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movq	%r12, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	callq	_e1000_release_swflag_ich8lan
	movl	%r12d, %edi
	callq	_SHRAL_PCH_LPT
	movl	%eax, %edi
	callq	_er32
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %edi
	callq	_SHRAH_PCH_LPT
	movl	%eax, %edi
	callq	_er32
	cmpl	%r15d, %eax
	je	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
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	%r15d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
LBB0_10:
	movl	%r13d, %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
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_E1000_FWSM_WLOCK_MAC_MASK,4,2  ## @E1000_FWSM_WLOCK_MAC_MASK
	.comm	_E1000_FWSM_WLOCK_MAC_SHIFT,4,2 ## @E1000_FWSM_WLOCK_MAC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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_pch_lpt
.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_pch_lpt
_e1000_rar_set_pch_lpt:                 ; @e1000_rar_set_pch_lpt
	.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
	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_8
; %bb.1:
	mov	x19, x2
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, w2
	b.le	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _FWSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
Lloh6:
	adrp	x8, _E1000_FWSM_WLOCK_MAC_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_FWSM_WLOCK_MAC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _E1000_FWSM_WLOCK_MAC_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E1000_FWSM_WLOCK_MAC_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbz	w8, LBB0_4
; %bb.3:
	cmp	w8, #1
	ccmp	w8, w19, #8, ne
	b.lt	LBB0_7
LBB0_4:
	mov	x0, x22
	bl	_e1000_acquire_swflag_ich8lan
	cbnz	x0, LBB0_7
; %bb.5:
	sub	w23, w19, #1
	mov	x0, x23
	bl	_SHRAL_PCH_LPT
	mov	x1, x21
	bl	_ew32
	bl	_e1e_flush
	mov	x0, x23
	bl	_SHRAH_PCH_LPT
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	x0, x22
	bl	_e1000_release_swflag_ich8lan
	mov	x0, x23
	bl	_SHRAL_PCH_LPT
	bl	_er32
	cmp	w0, w21
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_SHRAH_PCH_LPT
	bl	_er32
	cmp	w0, w20
	b.eq	LBB0_9
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_e_dbg
Lloh14:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	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
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_RAH_AV,4,2               ; @E1000_RAH_AV
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_E1000_FWSM_WLOCK_MAC_MASK,4,2  ; @E1000_FWSM_WLOCK_MAC_MASK
	.comm	_E1000_FWSM_WLOCK_MAC_SHIFT,4,2 ; @E1000_FWSM_WLOCK_MAC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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_pch_lpt
.subsections_via_symbols
