	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1540_set_fld
_m88e1540_set_fld:                      ## @m88e1540_set_fld
	.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
	movl	(%rsi), %eax
	movq	_ETHTOOL_PHY_FAST_LINK_DOWN_OFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.14:
	movq	_MII_88E1540_COPPER_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_clear_bits                 ## TAILCALL
LBB0_1:
	movq	%rsi, %rbx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_phy_ethtool_get_eee
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, -32(%rbp)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_phydev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_4:
	movl	(%rbx), %eax
	cmpl	$6, %eax
	jge	LBB0_6
## %bb.5:
	movq	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpl	$16, %eax
	jae	LBB0_8
## %bb.7:
	movq	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	cmpl	$31, %eax
	jae	LBB0_9
## %bb.10:
	movq	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_FIELD_PREP
	movq	_MII_88E1540_COPPER_CTRL3@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_phy_modify
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %esi
	movq	_MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_set_bits
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_PHY_FAST_LINK_DOWN_OFF,4,2 ## @ETHTOOL_PHY_FAST_LINK_DOWN_OFF
	.comm	_MII_88E1540_COPPER_CTRL3,4,2   ## @MII_88E1540_COPPER_CTRL3
	.comm	_MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN,4,2 ## @MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fast Link Down detection requires EEE to be disabled!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS,4,2 ## @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS,4,2 ## @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS,4,2 ## @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS,4,2 ## @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK,4,2 ## @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK
	.no_dead_strip	_m88e1540_set_fld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1540_set_fld
_m88e1540_set_fld:                      ; @m88e1540_set_fld
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ETHTOOL_PHY_FAST_LINK_DOWN_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETHTOOL_PHY_FAST_LINK_DOWN_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MII_88E1540_COPPER_CTRL3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_88E1540_COPPER_CTRL3@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_phy_clear_bits
LBB0_2:
	mov	x20, x1
	add	x1, sp, #8
	mov	x0, x19
	bl	_phy_ethtool_get_eee
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_warn
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS@GOTPAGEOFF]
Lloh16:
	adrp	x10, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS@GOTPAGEOFF]
Lloh18:
	adrp	x11, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS@GOTPAGEOFF]
Lloh20:
	adrp	x12, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS@GOTPAGE
Lloh21:
	ldr	x12, [x12, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS@GOTPAGEOFF]
	cmp	w8, #31
	csel	x11, x12, x11, lo
	cmp	w8, #16
	csel	x10, x10, x11, lo
	cmp	w8, #6
	csel	x8, x9, x10, lt
	ldr	w1, [x8]
Lloh22:
	adrp	x21, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK@GOTPAGE
Lloh23:
	ldr	x21, [x21, _MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_FIELD_PREP
	mov	x3, x0
Lloh24:
	adrp	x20, _MII_88E1540_COPPER_CTRL3@GOTPAGE
Lloh25:
	ldr	x20, [x20, _MII_88E1540_COPPER_CTRL3@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_phy_modify
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x20]
Lloh26:
	adrp	x8, _MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_set_bits
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_PHY_FAST_LINK_DOWN_OFF,4,2 ; @ETHTOOL_PHY_FAST_LINK_DOWN_OFF
	.comm	_MII_88E1540_COPPER_CTRL3,4,2   ; @MII_88E1540_COPPER_CTRL3
	.comm	_MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN,4,2 ; @MII_88E1540_COPPER_CTRL3_FAST_LINK_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fast Link Down detection requires EEE to be disabled!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS,4,2 ; @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_00MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS,4,2 ; @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_10MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS,4,2 ; @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_20MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS,4,2 ; @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_40MS
	.comm	_MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK,4,2 ; @MII_88E1540_COPPER_CTRL3_LINK_DOWN_DELAY_MASK
	.no_dead_strip	_m88e1540_set_fld
.subsections_via_symbols
