	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_set_settings
_ixgbe_set_settings:                    ## @ixgbe_set_settings
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	_ixgbe_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 32(%r14)
	je	LBB0_13
LBB0_2:
	movq	(%rbx), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.3:
	movl	8(%rbx), %eax
	movl	12(%rbx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_16
## %bb.4:
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$0, %ecx
	movl	$0, %edx
	testl	%eax, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_6:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdi
	movl	$0, %esi
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_8:
	orq	%rdx, %rsi
	movq	24(%r14), %r15
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_IXGBE_LINK_SPEED_100_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_10:
	orq	%rcx, %rsi
	cmpq	%rsi, %r15
	je	LBB0_17
## %bb.11:
	movl	$1, (%r14)
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*8(%r14)
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r12d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_e_info
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	*8(%r14)
	movl	%r12d, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	%rbx, %rdi
	callq	_ethtool_cmd_speed
	movq	(%rbx), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.14:
	movl	8(%rbx), %ecx
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_16
## %bb.15:
	addq	16(%rbx), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	xorl	%ebx, %ebx
	cmpq	%rdx, %rax
	je	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_media_type_copper,8,3    ## @ixgbe_media_type_copper
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,8,3 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,8,3  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_IXGBE_LINK_SPEED_100_FULL,8,3  ## @IXGBE_LINK_SPEED_100_FULL
	.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,8,3                ## @SPEED_10000
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.no_dead_strip	_ixgbe_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_set_settings
_ixgbe_set_settings:                    ; @ixgbe_set_settings
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
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, #32]
	cbz	x8, LBB0_7
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.3:
	ldp	w8, w9, [x20, #8]
	bics	wzr, w8, w9
	b.ne	LBB0_11
; %bb.4:
	ldr	x20, [x19, #24]
Lloh6:
	adrp	x9, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	tst	w9, w8
Lloh12:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
	csel	x10, xzr, x10, eq
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	tst	w9, w8
	csel	x9, xzr, x11, eq
	orr	x9, x9, x10
Lloh18:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh20:
	adrp	x11, _IXGBE_LINK_SPEED_100_FULL@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_100_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x8, xzr, x11, eq
	orr	x1, x9, x8
	cmp	x20, x1
	b.eq	LBB0_10
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.6:
Lloh24:
	adrp	x8, _probe@GOTPAGE
Lloh25:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_e_info
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	blr	x8
	b	LBB0_12
LBB0_7:
	mov	x0, x20
	bl	_ethtool_cmd_speed
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.8:
	ldr	w8, [x20, #8]
Lloh32:
	adrp	x9, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x20, #16]
	add	x8, x8, x0
Lloh35:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
Lloh38:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	mov	w21, #0
	b	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_media_type_copper,8,3    ; @ixgbe_media_type_copper
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,8,3 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,8,3  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_IXGBE_LINK_SPEED_100_FULL,8,3  ; @IXGBE_LINK_SPEED_100_FULL
	.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,8,3                ; @SPEED_10000
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.no_dead_strip	_ixgbe_set_settings
.subsections_via_symbols
