	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fe_set_link_ksettings
_fe_set_link_ksettings:                 ## @fe_set_link_ksettings
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%r14), %rsi
	cmpq	(%rax), %rsi
	je	LBB0_8
## %bb.2:
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rax
	movq	_FE_PHY_FLAG_PORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	callq	_mdiobus_get_phy
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	8(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_mdiobus_get_phy
	movq	_FE_PHY_FLAG_ATTACH@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	%rax, 16(%rbx)
	movl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movl	(%r15), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_ethtool_ksettings_set      ## TAILCALL
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_PHY_FLAG_PORT,4,2           ## @FE_PHY_FLAG_PORT
	.comm	_FE_PHY_FLAG_ATTACH,4,2         ## @FE_PHY_FLAG_ATTACH
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_fe_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fe_set_link_ksettings
_fe_set_link_ksettings:                 ; @fe_set_link_ksettings
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x1, [x19]
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x1, lsl #3]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x0, [x8, x1, lsl #3]
Lloh0:
	adrp	x8, _FE_PHY_FLAG_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_PHY_FLAG_PORT@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_mdiobus_get_phy
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x0, [x21, #8]
	ldr	x1, [x19]
	bl	_mdiobus_get_phy
Lloh2:
	adrp	x8, _FE_PHY_FLAG_ATTACH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FE_PHY_FLAG_ATTACH@GOTPAGEOFF]
LBB0_7:
	str	x0, [x21, #16]
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_8:
	ldr	w0, [x20]
	mov	x1, x19
	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
	b	_phy_ethtool_ksettings_set
LBB0_9:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_PHY_FLAG_PORT,4,2           ; @FE_PHY_FLAG_PORT
	.comm	_FE_PHY_FLAG_ATTACH,4,2         ; @FE_PHY_FLAG_ATTACH
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_fe_set_link_ksettings
.subsections_via_symbols
