	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_variants_ich8lan
_e1000_get_variants_ich8lan:            ## @e1000_get_variants_ich8lan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_e1000_init_mac_params_ich8lan
	testq	%rax, %rax
	jne	LBB0_19
## %bb.1:
	movq	%rbx, %rdi
	callq	_e1000_init_nvm_params_ich8lan
	testq	%rax, %rax
	jne	LBB0_19
## %bb.2:
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_e1000_init_phy_params_pchlan
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_7
LBB0_3:
	addl	$-133, %eax
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_e1000_init_phy_params_ich8lan
	testq	%rax, %rax
	jne	LBB0_19
LBB0_7:
	movq	24(%r14), %rax
	movq	_e1000_phy_ife@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_8
LBB0_10:
	movq	_FLAG_HAS_JUMBO_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r14)
	movq	_VLAN_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 40(%r14)
	movq	$0, 16(%r14)
	jmp	LBB0_11
LBB0_8:
	cmpl	$132, (%rbx)
	jl	LBB0_18
## %bb.9:
	movq	_CTRL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_LSECCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_11:
	movl	(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$134, %eax
	jne	LBB0_18
## %bb.13:
	movq	24(%r14), %rax
	cmpq	(%r15), %rax
	je	LBB0_18
## %bb.14:
	addq	$32, %r14
	movq	_FLAG_LSC_GIG_SPEED_DROP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_ICH_FWSM_FW_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.16:
	movq	_FLAG2_PCIM2PCI_ARBITER_WA@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_ife,8,3              ## @e1000_phy_ife
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_LSECCK,4,2      ## @E1000_CTRL_EXT_LSECCK
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ## @FLAG_HAS_JUMBO_FRAMES
	.comm	_VLAN_ETH_FRAME_LEN,8,3         ## @VLAN_ETH_FRAME_LEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_FLAG_LSC_GIG_SPEED_DROP,4,2    ## @FLAG_LSC_GIG_SPEED_DROP
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ## @E1000_ICH_FWSM_FW_VALID
	.comm	_FLAG2_PCIM2PCI_ARBITER_WA,4,2  ## @FLAG2_PCIM2PCI_ARBITER_WA
	.no_dead_strip	_e1000_get_variants_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_variants_ich8lan
_e1000_get_variants_ich8lan:            ; @e1000_get_variants_ich8lan
	.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, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_e1000_init_mac_params_ich8lan
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_e1000_init_nvm_params_ich8lan
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_e1000_init_phy_params_pchlan
	cbnz	x0, LBB0_2
	b	LBB0_7
LBB0_5:
	sub	w8, w8, #133
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_e1000_init_phy_params_ich8lan
	cbnz	x0, LBB0_2
LBB0_7:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x21, _e1000_phy_ife@GOTPAGE
Lloh1:
	ldr	x21, [x21, _e1000_phy_ife@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _FLAG_HAS_JUMBO_FRAMES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAG_HAS_JUMBO_FRAMES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
	str	w8, [x19, #32]
Lloh5:
	adrp	x8, _VLAN_ETH_FRAME_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VLAN_ETH_FRAME_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #40]
	str	xzr, [x19, #16]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #132
	b.lt	LBB0_18
; %bb.10:
Lloh11:
	adrp	x8, _CTRL_EXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CTRL_EXT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_er32
Lloh14:
	adrp	x8, _E1000_CTRL_EXT_LSECCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_CTRL_EXT_LSECCK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #132
	b.eq	LBB0_15
; %bb.12:
	cmp	w8, #134
	b.ne	LBB0_18
; %bb.13:
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.14:
	add	x19, x19, #32
Lloh17:
	adrp	x8, _FLAG_LSC_GIG_SPEED_DROP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLAG_LSC_GIG_SPEED_DROP@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh19:
	adrp	x8, _FWSM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_er32
Lloh22:
	adrp	x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.16:
Lloh25:
	adrp	x8, _FLAG2_PCIM2PCI_ARBITER_WA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FLAG2_PCIM2PCI_ARBITER_WA@GOTPAGEOFF]
LBB0_17:
	mov	x0, #0
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
LBB0_18:
	mov	x0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_ife,8,3              ; @e1000_phy_ife
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_LSECCK,4,2      ; @E1000_CTRL_EXT_LSECCK
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ; @FLAG_HAS_JUMBO_FRAMES
	.comm	_VLAN_ETH_FRAME_LEN,8,3         ; @VLAN_ETH_FRAME_LEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_FLAG_LSC_GIG_SPEED_DROP,4,2    ; @FLAG_LSC_GIG_SPEED_DROP
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ; @E1000_ICH_FWSM_FW_VALID
	.comm	_FLAG2_PCIM2PCI_ARBITER_WA,4,2  ; @FLAG2_PCIM2PCI_ARBITER_WA
	.no_dead_strip	_e1000_get_variants_ich8lan
.subsections_via_symbols
