	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_init_phy_params_82571
_e1000_init_phy_params_82571:           ## @e1000_init_phy_params_82571
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	$1, 16(%rbx)
	movq	_AUTONEG_ADVERTISE_SPEED_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$100, 20(%rbx)
	movq	_e1000_power_up_phy_copper@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_e1000_power_down_phy_copper_82571@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.2:
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_6
## %bb.3:
	movq	_e1000_phy_igp_2@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_e1000_phy_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
LBB0_23:
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_5:
	movq	_e1000_phy_bm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_e1000_get_hw_semaphore_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_e1000_put_hw_semaphore_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_e1000_set_d0_lplu_state_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_e1000_set_d3_lplu_state_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	jmp	LBB0_9
LBB0_6:
	cmpl	$130, %eax
	jne	LBB0_15
## %bb.7:
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_e1000_get_phy_id_82571
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_24
LBB0_11:
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_16
## %bb.12:
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_18
## %bb.13:
	movl	24(%rbx), %eax
	movq	_IGP01E1000_I_PHY_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
	jmp	LBB0_23
LBB0_15:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_24
LBB0_16:
	movl	24(%rbx), %eax
	movq	_BME1000_E_PHY_ID_R2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
	jmp	LBB0_23
LBB0_18:
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.19:
	movl	24(%rbx), %eax
	movq	_M88E1111_I_PHY_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
LBB0_21:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_23
## %bb.22:
	negq	%r14
	movl	24(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_24:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_e1000_phy_none,4,2             ## @e1000_phy_none
	.comm	_AUTONEG_ADVERTISE_SPEED_DEFAULT,4,2 ## @AUTONEG_ADVERTISE_SPEED_DEFAULT
	.comm	_e1000_power_up_phy_copper,4,2  ## @e1000_power_up_phy_copper
	.comm	_e1000_power_down_phy_copper_82571,4,2 ## @e1000_power_down_phy_copper_82571
	.comm	_e1000_phy_igp_2,4,2            ## @e1000_phy_igp_2
	.comm	_e1000_phy_m88,4,2              ## @e1000_phy_m88
	.comm	_e1000_phy_bm,4,2               ## @e1000_phy_bm
	.comm	_e1000_get_hw_semaphore_82574,4,2 ## @e1000_get_hw_semaphore_82574
	.comm	_e1000_put_hw_semaphore_82574,4,2 ## @e1000_put_hw_semaphore_82574
	.comm	_e1000_set_d0_lplu_state_82574,4,2 ## @e1000_set_d0_lplu_state_82574
	.comm	_e1000_set_d3_lplu_state_82574,4,2 ## @e1000_set_d3_lplu_state_82574
	.comm	_E1000_ERR_PHY,8,3              ## @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error getting PHY ID\n"

	.comm	_IGP01E1000_I_PHY_ID,4,2        ## @IGP01E1000_I_PHY_ID
	.comm	_M88E1111_I_PHY_ID,4,2          ## @M88E1111_I_PHY_ID
	.comm	_BME1000_E_PHY_ID_R2,4,2        ## @BME1000_E_PHY_ID_R2
L_.str.1:                               ## @.str.1
	.asciz	"PHY ID unknown: type = 0x%08x\n"

	.no_dead_strip	_e1000_init_phy_params_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function e1000_init_phy_params_82571
lCPI0_0:
	.long	1                               ; 0x1
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_e1000_init_phy_params_82571:           ; @e1000_init_phy_params_82571
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _AUTONEG_ADVERTISE_SPEED_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ADVERTISE_SPEED_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
Lloh8:
	adrp	x8, _e1000_power_up_phy_copper@GOTPAGE
Lloh9:
	ldr	x8, [x8, _e1000_power_up_phy_copper@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _e1000_power_down_phy_copper_82571@GOTPAGE
Lloh12:
	ldr	x9, [x9, _e1000_power_down_phy_copper_82571@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.2:
	sub	w9, w8, #131
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.3:
Lloh14:
	adrp	x8, _e1000_phy_igp_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _e1000_phy_igp_2@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x20, #0
Lloh16:
	adrp	x8, _e1000_phy_none@GOTPAGE
Lloh17:
	ldr	x8, [x8, _e1000_phy_none@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	b	LBB0_23
LBB0_5:
Lloh19:
	adrp	x8, _e1000_phy_bm@GOTPAGE
Lloh20:
	ldr	x8, [x8, _e1000_phy_bm@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #52]
Lloh22:
	adrp	x8, _e1000_get_hw_semaphore_82574@GOTPAGE
Lloh23:
	ldr	x8, [x8, _e1000_get_hw_semaphore_82574@GOTPAGEOFF]
Lloh24:
	adrp	x9, _e1000_put_hw_semaphore_82574@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_put_hw_semaphore_82574@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
Lloh28:
	adrp	x8, _e1000_set_d0_lplu_state_82574@GOTPAGE
Lloh29:
	ldr	x8, [x8, _e1000_set_d0_lplu_state_82574@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _e1000_set_d3_lplu_state_82574@GOTPAGE
Lloh32:
	ldr	x9, [x9, _e1000_set_d3_lplu_state_82574@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	b	LBB0_9
LBB0_6:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.7:
Lloh34:
	adrp	x8, _e1000_phy_m88@GOTPAGE
Lloh35:
	ldr	x8, [x8, _e1000_phy_m88@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #52]
LBB0_9:
	mov	x0, x19
	bl	_e1000_get_phy_id_82571
	cbz	x0, LBB0_12
; %bb.10:
	mov	x20, x0
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_e_dbg
	b	LBB0_23
LBB0_12:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_16
; %bb.13:
	sub	w9, w8, #131
	cmp	w9, #2
	b.hs	LBB0_17
; %bb.14:
	ldr	w8, [x19, #24]
Lloh38:
	adrp	x9, _IGP01E1000_I_PHY_ID@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IGP01E1000_I_PHY_ID@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh40:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_23
LBB0_16:
	ldr	w8, [x19, #24]
Lloh43:
	adrp	x9, _BME1000_E_PHY_ID_R2@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BME1000_E_PHY_ID_R2@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	cmp	w8, #130
	b.ne	LBB0_20
; %bb.18:
	ldr	w8, [x19, #24]
Lloh45:
	adrp	x9, _M88E1111_I_PHY_ID@GOTPAGE
Lloh46:
	ldr	x9, [x9, _M88E1111_I_PHY_ID@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_22
LBB0_20:
Lloh47:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh48:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
	neg	x20, x8
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh50:
	adrp	x0, l_.str.1@PAGE
Lloh51:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_22:
	mov	x20, #0
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_e1000_phy_none,4,2             ; @e1000_phy_none
	.comm	_AUTONEG_ADVERTISE_SPEED_DEFAULT,4,2 ; @AUTONEG_ADVERTISE_SPEED_DEFAULT
	.comm	_e1000_power_up_phy_copper,4,2  ; @e1000_power_up_phy_copper
	.comm	_e1000_power_down_phy_copper_82571,4,2 ; @e1000_power_down_phy_copper_82571
	.comm	_e1000_phy_igp_2,4,2            ; @e1000_phy_igp_2
	.comm	_e1000_phy_m88,4,2              ; @e1000_phy_m88
	.comm	_e1000_phy_bm,4,2               ; @e1000_phy_bm
	.comm	_e1000_get_hw_semaphore_82574,4,2 ; @e1000_get_hw_semaphore_82574
	.comm	_e1000_put_hw_semaphore_82574,4,2 ; @e1000_put_hw_semaphore_82574
	.comm	_e1000_set_d0_lplu_state_82574,4,2 ; @e1000_set_d0_lplu_state_82574
	.comm	_e1000_set_d3_lplu_state_82574,4,2 ; @e1000_set_d3_lplu_state_82574
	.comm	_E1000_ERR_PHY,8,3              ; @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error getting PHY ID\n"

	.comm	_IGP01E1000_I_PHY_ID,4,2        ; @IGP01E1000_I_PHY_ID
	.comm	_M88E1111_I_PHY_ID,4,2          ; @M88E1111_I_PHY_ID
	.comm	_BME1000_E_PHY_ID_R2,4,2        ; @BME1000_E_PHY_ID_R2
l_.str.1:                               ; @.str.1
	.asciz	"PHY ID unknown: type = 0x%08x\n"

	.no_dead_strip	_e1000_init_phy_params_82571
.subsections_via_symbols
