	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_sw_lcd_config_ich8lan
_e1000_sw_lcd_config_ich8lan:           ## @e1000_sw_lcd_config_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	24(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_9
LBB0_1:
	movq	_E1000_FEXTNVM_SW_CONFIG_ICH8M@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.3:
	movq	_FEXTNVM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	testl	%r15d, %eax
	je	LBB0_27
## %bb.4:
	movq	_EXTCNF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ebx
	cmpl	$131, 24(%r14)
	jg	LBB0_6
## %bb.5:
	movq	_E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_27
LBB0_6:
	movq	_EXTCNF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %r15d
	movq	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	testl	%r15d, %r15d
	je	LBB0_27
## %bb.7:
	movq	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%ebx, %r12d
	movq	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movl	24(%r14), %eax
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.8:
	movq	_E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_18
	jmp	LBB0_16
LBB0_9:
	cmpl	$133, %eax
	jne	LBB0_14
## %bb.10:
	movl	16(%r14), %eax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_E1000_DEV_ID_ICH8_IGP_AMT@GOTPCREL(%rip), %rdx
	movq	_E1000_FEXTNVM_SW_CONFIG@GOTPCREL(%rip), %rax
	cmpl	(%rdx), %ecx
	je	LBB0_2
## %bb.12:
	movq	_E1000_DEV_ID_ICH8_IGP_C@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_1
	jmp	LBB0_2
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_15:
	jle	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_e1000_write_smbus_addr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_28
## %bb.17:
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_HV_LED_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	%eax, %rdx
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_28
LBB0_18:
	testl	%r15d, %r15d
	jle	LBB0_27
## %bb.19:
	addl	%r12d, %r12d
	movslq	%r12d, %r12
	movl	%r15d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %r15
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %r12
	decq	%r13
	je	LBB0_27
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	leaq	-56(%rbp), %rcx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	1(%r12), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	leaq	-48(%rbp), %rcx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-48(%rbp), %rsi
	movq	_IGP01E1000_PHY_PAGE_SELECT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_PHY_REG_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	orq	%r15, %rsi
	movq	%rsi, -48(%rbp)
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_e1e_wphy_locked
	testq	%rax, %rax
	je	LBB0_21
LBB0_26:
	movq	%rax, %rbx
	jmp	LBB0_28
LBB0_27:
	xorl	%ebx, %ebx
LBB0_28:
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_29:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_igp_3,4,2            ## @e1000_phy_igp_3
	.comm	_E1000_DEV_ID_ICH8_IGP_AMT,4,2  ## @E1000_DEV_ID_ICH8_IGP_AMT
	.comm	_E1000_DEV_ID_ICH8_IGP_C,4,2    ## @E1000_DEV_ID_ICH8_IGP_C
	.comm	_E1000_FEXTNVM_SW_CONFIG,4,2    ## @E1000_FEXTNVM_SW_CONFIG
	.comm	_E1000_FEXTNVM_SW_CONFIG_ICH8M,4,2 ## @E1000_FEXTNVM_SW_CONFIG_ICH8M
	.comm	_FEXTNVM,4,2                    ## @FEXTNVM
	.comm	_EXTCNF_CTRL,4,2                ## @EXTCNF_CTRL
	.comm	_E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE,4,2 ## @E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE
	.comm	_EXTCNF_SIZE,4,2                ## @EXTCNF_SIZE
	.comm	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK,4,2 ## @E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK
	.comm	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT,4,2 ## @E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT
	.comm	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK,4,2 ## @E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK
	.comm	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT,4,2 ## @E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT
	.comm	_E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE,4,2 ## @E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE
	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.comm	_HV_LED_CONFIG,4,2              ## @HV_LED_CONFIG
	.comm	_IGP01E1000_PHY_PAGE_SELECT,8,3 ## @IGP01E1000_PHY_PAGE_SELECT
	.comm	_PHY_REG_MASK,8,3               ## @PHY_REG_MASK
	.no_dead_strip	_e1000_sw_lcd_config_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_sw_lcd_config_ich8lan
_e1000_sw_lcd_config_ich8lan:           ; @e1000_sw_lcd_config_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0, #24]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_9
LBB0_1:
Lloh0:
	adrp	x8, _E1000_FEXTNVM_SW_CONFIG_ICH8M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_FEXTNVM_SW_CONFIG_ICH8M@GOTPAGEOFF]
LBB0_2:
	ldr	w20, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_28
; %bb.3:
Lloh2:
	adrp	x8, _FEXTNVM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FEXTNVM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_er32
	tst	w0, w20
	b.eq	LBB0_26
; %bb.4:
Lloh5:
	adrp	x8, _EXTCNF_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXTCNF_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_er32
	mov	x20, x0
	ldr	w8, [x19, #24]
	cmp	w8, #131
	b.gt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_26
LBB0_6:
Lloh11:
	adrp	x8, _EXTCNF_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXTCNF_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_er32
Lloh14:
	adrp	x8, _E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh17:
	adrp	x9, _E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	asr	w22, w8, w9
	cbz	w22, LBB0_26
; %bb.7:
Lloh20:
	adrp	x8, _E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	adrp	x8, _E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w24, [x8]
	ldr	w8, [x19, #24]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.8:
Lloh26:
	adrp	x8, _E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_17
	b	LBB0_15
LBB0_9:
	cmp	w8, #133
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x19, #16]
Lloh29:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh30:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _E1000_DEV_ID_ICH8_IGP_AMT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _E1000_DEV_ID_ICH8_IGP_AMT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _E1000_DEV_ID_ICH8_IGP_C@GOTPAGE
Lloh36:
	ldr	x10, [x10, _E1000_DEV_ID_ICH8_IGP_C@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_1
; %bb.12:
Lloh38:
	adrp	x8, _E1000_FEXTNVM_SW_CONFIG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E1000_FEXTNVM_SW_CONFIG@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	mov	x21, #0
	b	LBB0_28
LBB0_14:
	cmp	w8, #129
	b.lt	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_e1000_write_smbus_addr
	mov	x21, x0
	cbnz	x0, LBB0_27
; %bb.16:
Lloh40:
	adrp	x8, _LEDCTL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LEDCTL@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_er32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh43:
	adrp	x8, _HV_LED_CONFIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HV_LED_CONFIG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	sxtw	x2, w0
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
	mov	x21, x0
	cbnz	x0, LBB0_27
LBB0_17:
	cmp	w22, #1
	b.lt	LBB0_26
; %bb.18:
	mov	x23, #0
	and	w8, w25, w20
	asr	w8, w8, w24
	lsl	w8, w8, #1
	sxtw	x20, w8
Lloh46:
	adrp	x24, _IGP01E1000_PHY_PAGE_SELECT@GOTPAGE
Lloh47:
	ldr	x24, [x24, _IGP01E1000_PHY_PAGE_SELECT@GOTPAGEOFF]
Lloh48:
	adrp	x25, _PHY_REG_MASK@GOTPAGE
Lloh49:
	ldr	x25, [x25, _PHY_REG_MASK@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x23, [sp, #8]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x20, x20, #2
	subs	x22, x22, #1
	b.eq	LBB0_26
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x1, x20, #1
	mov	x3, sp
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [sp]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [x25]
	and	x8, x9, x8
	orr	x1, x8, x23
	str	x1, [sp]
	ldr	x2, [sp, #8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_e1e_wphy_locked
	cbz	x0, LBB0_20
LBB0_25:
	mov	x21, x0
	b	LBB0_27
LBB0_26:
	mov	x21, #0
LBB0_27:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
LBB0_28:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_igp_3,4,2            ; @e1000_phy_igp_3
	.comm	_E1000_DEV_ID_ICH8_IGP_AMT,4,2  ; @E1000_DEV_ID_ICH8_IGP_AMT
	.comm	_E1000_DEV_ID_ICH8_IGP_C,4,2    ; @E1000_DEV_ID_ICH8_IGP_C
	.comm	_E1000_FEXTNVM_SW_CONFIG,4,2    ; @E1000_FEXTNVM_SW_CONFIG
	.comm	_E1000_FEXTNVM_SW_CONFIG_ICH8M,4,2 ; @E1000_FEXTNVM_SW_CONFIG_ICH8M
	.comm	_FEXTNVM,4,2                    ; @FEXTNVM
	.comm	_EXTCNF_CTRL,4,2                ; @EXTCNF_CTRL
	.comm	_E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE,4,2 ; @E1000_EXTCNF_CTRL_LCD_WRITE_ENABLE
	.comm	_EXTCNF_SIZE,4,2                ; @EXTCNF_SIZE
	.comm	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK,4,2 ; @E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_MASK
	.comm	_E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT,4,2 ; @E1000_EXTCNF_SIZE_EXT_PCIE_LENGTH_SHIFT
	.comm	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK,4,2 ; @E1000_EXTCNF_CTRL_EXT_CNF_POINTER_MASK
	.comm	_E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT,4,2 ; @E1000_EXTCNF_CTRL_EXT_CNF_POINTER_SHIFT
	.comm	_E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE,4,2 ; @E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE
	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.comm	_HV_LED_CONFIG,4,2              ; @HV_LED_CONFIG
	.comm	_IGP01E1000_PHY_PAGE_SELECT,8,3 ; @IGP01E1000_PHY_PAGE_SELECT
	.comm	_PHY_REG_MASK,8,3               ; @PHY_REG_MASK
	.no_dead_strip	_e1000_sw_lcd_config_ich8lan
.subsections_via_symbols
