	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_set_link_ksettings
_ixgbe_set_link_ksettings:              ## @ixgbe_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %r13
	movl	20(%rbx), %esi
	leaq	-52(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	16(%rbx), %esi
	leaq	-44(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	24(%r14), %rax
	movq	_ixgbe_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 40(%r13)
	je	LBB0_21
LBB0_2:
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_3
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_4
LBB0_6:
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	andl	%eax, %r12d
	je	LBB0_10
## %bb.9:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
LBB0_10:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_12
## %bb.11:
	movq	_IXGBE_LINK_SPEED_100_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_12:
	movl	32(%r13), %esi
	orl	%ecx, %r12d
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	movq	_IXGBE_LINK_SPEED_10_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%eax, %edx
	orl	%edx, %r12d
	xorl	%ebx, %ebx
	cmpl	%r12d, %esi
	je	LBB0_25
## %bb.15:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	addq	$8, %r14
	movq	___IXGBE_IN_SFP_INIT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_17
LBB0_21:
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.22:
	movl	-44(%rbp), %eax
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.23:
	movl	8(%rbx), %eax
	addl	12(%rbx), %eax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rcx), %edx
	xorl	%ebx, %ebx
	cmpl	%edx, %eax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_18:
	movl	$1, 8(%r13)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	*16(%r13)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_e_info
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	*16(%r13)
LBB0_20:
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	jmp	LBB0_25
LBB0_4:
	cmpq	$0, 40(%r13)
	je	LBB0_6
## %bb.5:
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_24
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_media_type_copper,8,3    ## @ixgbe_media_type_copper
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ## @IXGBE_LINK_SPEED_100_FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_IXGBE_LINK_SPEED_10_FULL,4,2   ## @IXGBE_LINK_SPEED_10_FULL
	.comm	___IXGBE_IN_SFP_INIT,4,2        ## @__IXGBE_IN_SFP_INIT
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setup link failed with code %d\n"

	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_ixgbe_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 ixgbe_set_link_ksettings
_ixgbe_set_link_ksettings:              ; @ixgbe_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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x20, #20]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w1, [x20, #16]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _ixgbe_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
LBB0_2:
	ldp	w8, w9, [sp, #8]
	bics	wzr, w8, w9
	b.eq	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	ldr	x10, [x20]
Lloh6:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
	cbz	x10, LBB0_17
LBB0_6:
	mov	w20, #0
Lloh8:
	adrp	x10, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	ldr	w9, [x9]
Lloh14:
	adrp	x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w9, wzr, w11, eq
	orr	w9, w9, w10
Lloh17:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
	ldr	w21, [x19, #32]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w8
Lloh20:
	adrp	x10, _IXGBE_LINK_SPEED_100_FULL@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_100_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w8
Lloh26:
	adrp	x8, _IXGBE_LINK_SPEED_10_FULL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_10_FULL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
	orr	w23, w9, w8
	cmp	w21, w23
	b.eq	LBB0_4
; %bb.7:
	add	x22, x19, #8
Lloh29:
	adrp	x24, ___IXGBE_IN_SFP_INIT@GOTPAGE
Lloh30:
	ldr	x24, [x24, ___IXGBE_IN_SFP_INIT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_8
LBB0_10:
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.11:
	ldr	w8, [sp, #8]
Lloh34:
	adrp	x9, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.12:
	ldp	w8, w9, [x20, #8]
	add	w8, w9, w8
Lloh37:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh41:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	add	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.13:
	mov	w20, #0
	b	LBB0_4
LBB0_14:
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #1
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.15:
Lloh43:
	adrp	x8, _probe@GOTPAGE
Lloh44:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_e_info
	ldr	x8, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	blr	x8
LBB0_16:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_4
LBB0_17:
	ldr	x10, [x19, #40]
	cbz	x10, LBB0_6
; %bb.18:
Lloh48:
	adrp	x10, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh49:
	ldr	x10, [x10, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	ldr	w11, [x9]
	orr	w10, w11, w10
	cmp	w8, w10
	b.eq	LBB0_3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_media_type_copper,8,3    ; @ixgbe_media_type_copper
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_IXGBE_LINK_SPEED_100_FULL,4,2  ; @IXGBE_LINK_SPEED_100_FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_IXGBE_LINK_SPEED_10_FULL,4,2   ; @IXGBE_LINK_SPEED_10_FULL
	.comm	___IXGBE_IN_SFP_INIT,4,2        ; @__IXGBE_IN_SFP_INIT
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setup link failed with code %d\n"

	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_ixgbe_set_link_ksettings
.subsections_via_symbols
