	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_link_ksettings
_set_link_ksettings:                    ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	8(%rax), %r14
	movl	24(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movslq	8(%r12), %rcx
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rsi
	movq	(%rbx), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	testl	%ecx, (%rsi)
	je	LBB0_1
## %bb.4:
	cmpq	%rdx, %rax
	jne	LBB0_8
## %bb.5:
	movq	8(%rbx), %r13
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	callq	_speed_duplex_to_caps
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.6:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_3
## %bb.7:
	movq	%r13, 40(%r12)
	movl	16(%rbx), %eax
	movl	%eax, 32(%r12)
	movq	$0, 24(%r12)
	movq	(%rbx), %rax
	jmp	LBB0_10
LBB0_1:
	cmpq	%rdx, %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_speed_duplex_to_caps
	xorl	%ebx, %ebx
	testl	%eax, (%r14)
	jne	LBB0_12
	jmp	LBB0_3
LBB0_8:
	movq	_ADVERTISED_MASK@GOTPCREL(%rip), %rdx
	andq	(%rdx), %rcx
	andq	-48(%rbp), %rcx
	movq	%rcx, -48(%rbp)
	je	LBB0_3
## %bb.9:
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 40(%r12)
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%r12)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	%rcx, 24(%r12)
LBB0_10:
	movq	%rax, 16(%r12)
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_t3_link_start
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ADVERTISED_MASK,8,3            ## @ADVERTISED_MASK
	.comm	_SPEED_INVALID,8,3              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_ADVERTISED_Autoneg,8,3         ## @ADVERTISED_Autoneg
	.no_dead_strip	_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 set_link_ksettings
_set_link_ksettings:                    ; @set_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w1, [x22, #24]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	mov	x19, x20
	ldrsw	x9, [x19, #8]!
Lloh0:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	ldr	x8, [x22]
Lloh3:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	tst	w11, w9
	b.eq	LBB0_4
; %bb.1:
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.2:
	ldr	x23, [x22, #8]
	ldr	w1, [x22, #16]
	mov	x0, x23
	bl	_speed_duplex_to_caps
	ldr	w8, [x19]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x23, x9, #4, ne
	b.eq	LBB0_11
; %bb.3:
	str	x23, [x20, #40]
	ldr	w8, [x22, #16]
	str	w8, [x20, #32]
	str	xzr, [x20, #24]
	ldr	x8, [x22]
	b	LBB0_8
LBB0_4:
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.5:
	ldr	x0, [x22, #8]
	ldr	w1, [x22, #16]
	bl	_speed_duplex_to_caps
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_10
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x10, _ADVERTISED_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADVERTISED_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x11, [sp, #8]
	and	x9, x10, x9
	ands	x9, x9, x11
	str	x9, [sp, #8]
	b.eq	LBB0_11
; %bb.7:
Lloh12:
	adrp	x10, _SPEED_INVALID@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SPEED_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	x10, [x20, #40]
Lloh15:
	adrp	x10, _DUPLEX_INVALID@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	str	w10, [x20, #32]
Lloh18:
	adrp	x10, _ADVERTISED_Autoneg@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	orr	x9, x10, x9
	str	x9, [x20, #24]
LBB0_8:
	str	x8, [x20, #16]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.9:
	add	x0, x20, #4
	mov	x1, x20
	mov	x2, x19
	bl	_t3_link_start
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ADVERTISED_MASK,8,3            ; @ADVERTISED_MASK
	.comm	_SPEED_INVALID,8,3              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_ADVERTISED_Autoneg,8,3         ; @ADVERTISED_Autoneg
	.no_dead_strip	_set_link_ksettings
.subsections_via_symbols
