	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)
	movups	(%rbx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_FW_PORT_CAP32_ANEG@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	16(%r14), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movl	24(%r14), %edi
	callq	_speed_to_fw_caps
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.5:
	movl	%eax, 20(%r15)
	jmp	LBB0_8
LBB0_6:
	movl	(%r14), %edi
	callq	_lmm_to_fw_caps
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.7:
	movl	$0, 20(%r15)
	orl	(%r12), %eax
LBB0_8:
	movl	%eax, 24(%r15)
	movq	16(%r14), %rax
	movq	%rax, 32(%r15)
	movq	8(%r15), %rdi
	movl	(%rdi), %esi
	movl	(%r15), %edx
	movq	%rbx, %rcx
	callq	_t4_link_l1cfg
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%rbx)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%rbx)
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FW_PORT_CAP32_ANEG,4,2         ## @FW_PORT_CAP32_ANEG
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.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	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
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x0
	add	x19, x0, #16
	ldr	q0, [x19]
	str	q0, [sp]
	ldr	x8, [x19, #16]
	str	x8, [sp, #16]
	ldr	w8, [x19]
Lloh3:
	adrp	x22, _FW_PORT_CAP32_ANEG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FW_PORT_CAP32_ANEG@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x20, #24]
	bl	_speed_to_fw_caps
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.4:
	str	w0, [x21, #20]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20]
	bl	_lmm_to_fw_caps
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
	str	wzr, [x21, #20]
	ldr	w8, [x22]
	orr	w0, w8, w0
LBB0_7:
	str	w0, [x21, #24]
	ldr	x8, [x20, #16]
	str	x8, [x21, #32]
	ldr	x0, [x21, #8]
	ldr	w1, [x0]
	ldr	w2, [x21]
	mov	x3, x19
	bl	_t4_link_l1cfg
	cbz	w0, LBB0_10
; %bb.8:
	ldr	q0, [sp]
	str	q0, [x19]
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FW_PORT_CAP32_ANEG,4,2         ; @FW_PORT_CAP32_ANEG
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.no_dead_strip	_set_link_ksettings
.subsections_via_symbols
