	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_adjust_serdes_amplitude
_e1000_adjust_serdes_amplitude:         ## @e1000_adjust_serdes_amplitude
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	(%rbx), %rax
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	_EEPROM_SERDES_AMPLITUDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_e1000_read_eeprom
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	-12(%rbp), %edx
	movq	_EEPROM_RESERVED_WORD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_5
## %bb.4:
	movq	_EEPROM_SERDES_AMPLITUDE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, -12(%rbp)
	movq	_M88E1000_PHY_EXT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e1000_adjust_serdes_amplitude"

	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.comm	_EEPROM_SERDES_AMPLITUDE,4,2    ## @EEPROM_SERDES_AMPLITUDE
	.comm	_EEPROM_RESERVED_WORD,4,2       ## @EEPROM_RESERVED_WORD
	.comm	_EEPROM_SERDES_AMPLITUDE_MASK,4,2 ## @EEPROM_SERDES_AMPLITUDE_MASK
	.comm	_M88E1000_PHY_EXT_CTRL,4,2      ## @M88E1000_PHY_EXT_CTRL
	.no_dead_strip	_e1000_adjust_serdes_amplitude
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_adjust_serdes_amplitude
_e1000_adjust_serdes_amplitude:         ; @e1000_adjust_serdes_amplitude
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _e1000_media_type_internal_serdes@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _EEPROM_SERDES_AMPLITUDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEPROM_SERDES_AMPLITUDE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_eeprom
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _EEPROM_RESERVED_WORD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EEPROM_RESERVED_WORD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x9, _EEPROM_SERDES_AMPLITUDE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EEPROM_SERDES_AMPLITUDE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w2, w9, w8
	str	w2, [sp, #12]
Lloh14:
	adrp	x8, _M88E1000_PHY_EXT_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M88E1000_PHY_EXT_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	cbnz	x0, LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e1000_adjust_serdes_amplitude"

	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.comm	_EEPROM_SERDES_AMPLITUDE,4,2    ; @EEPROM_SERDES_AMPLITUDE
	.comm	_EEPROM_RESERVED_WORD,4,2       ; @EEPROM_RESERVED_WORD
	.comm	_EEPROM_SERDES_AMPLITUDE_MASK,4,2 ; @EEPROM_SERDES_AMPLITUDE_MASK
	.comm	_M88E1000_PHY_EXT_CTRL,4,2      ; @M88E1000_PHY_EXT_CTRL
	.no_dead_strip	_e1000_adjust_serdes_amplitude
.subsections_via_symbols
