	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_link_ksettings ## -- Begin function qlcnic_83xx_set_link_ksettings
	.p2align	4, 0x90
_qlcnic_83xx_set_link_ksettings:        ## @qlcnic_83xx_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movq	8(%r14), %r15
	movl	(%r15), %r12d
	cmpq	$0, 16(%rsi)
	movq	_QLC_83XX_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_5
## %bb.4:
	orl	%r12d, %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rdx
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	jmp	LBB0_12
LBB0_5:
	notl	%eax
	andl	%r12d, %eax
	movl	%eax, (%r15)
	movl	8(%rsi), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_QLC_83XX_10_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_QLC_83XX_10_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	movq	_QLC_83XX_10_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_QLC_83XX_100_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_QLC_83XX_1G_CAPABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_QLC_83XX_10G_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_10_CAPABLE@GOTPCREL(%rip), %rcx
LBB0_11:
	orl	(%rcx), %eax
LBB0_12:
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_qlcnic_83xx_set_port_config
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
	movl	%r12d, (%r15)
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Half duplex mode not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLC_83XX_AUTONEG_ENABLE,4,2    ## @QLC_83XX_AUTONEG_ENABLE
	.comm	_QLC_83XX_100_CAPABLE,4,2       ## @QLC_83XX_100_CAPABLE
	.comm	_QLC_83XX_1G_CAPABLE,4,2        ## @QLC_83XX_1G_CAPABLE
	.comm	_QLC_83XX_10G_CAPABLE,4,2       ## @QLC_83XX_10G_CAPABLE
	.comm	_QLC_83XX_10_CAPABLE,4,2        ## @QLC_83XX_10_CAPABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to Set Link Speed and autoneg.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_link_ksettings ; -- Begin function qlcnic_83xx_set_link_ksettings
	.p2align	2
_qlcnic_83xx_set_link_ksettings:        ; @qlcnic_83xx_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, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_3:
	ldr	x21, [x19, #8]
	ldr	w22, [x21]
	ldr	x9, [x1, #16]
Lloh8:
	adrp	x8, _QLC_83XX_AUTONEG_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLC_83XX_AUTONEG_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	x9, LBB0_5
; %bb.4:
	orr	w8, w8, w22
	str	w8, [x21]
Lloh11:
	adrp	x9, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh18:
	ldr	x11, [x11, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	b	LBB0_12
LBB0_5:
	bic	w8, w22, w8
	str	w8, [x21]
	ldr	w9, [x1, #8]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.6:
Lloh20:
	adrp	x10, lJTI0_0@PAGE
Lloh21:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh22:
	adrp	x9, _QLC_83XX_10_CAPABLE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _QLC_83XX_10_CAPABLE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh28:
	adrp	x10, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x21]
Lloh31:
	adrp	x9, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh33:
	adrp	x9, _QLC_83XX_10_CAPABLE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _QLC_83XX_10_CAPABLE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh39:
	adrp	x10, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x21]
Lloh42:
	adrp	x9, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh44:
	adrp	x9, _QLC_83XX_10_CAPABLE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _QLC_83XX_10_CAPABLE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh48:
	ldr	x10, [x10, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh50:
	adrp	x10, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh51:
	ldr	x10, [x10, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x21]
Lloh53:
	adrp	x9, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh54:
	ldr	x9, [x9, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh55:
	adrp	x9, _QLC_83XX_100_CAPABLE@GOTPAGE
Lloh56:
	ldr	x9, [x9, _QLC_83XX_100_CAPABLE@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
Lloh58:
	adrp	x10, _QLC_83XX_1G_CAPABLE@GOTPAGE
Lloh59:
	ldr	x10, [x10, _QLC_83XX_1G_CAPABLE@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh61:
	adrp	x10, _QLC_83XX_10G_CAPABLE@GOTPAGE
Lloh62:
	ldr	x10, [x10, _QLC_83XX_10G_CAPABLE@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x21]
Lloh64:
	adrp	x9, _QLC_83XX_10_CAPABLE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _QLC_83XX_10_CAPABLE@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_12:
	str	w8, [x21]
	mov	x0, x19
	bl	_qlcnic_83xx_set_port_config
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w0, [x19]
Lloh66:
	adrp	x1, l_.str.1@PAGE
Lloh67:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	str	w22, [x21]
LBB0_14:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh66, Lloh67
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
                                        ; -- End function
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Half duplex mode not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLC_83XX_AUTONEG_ENABLE,4,2    ; @QLC_83XX_AUTONEG_ENABLE
	.comm	_QLC_83XX_100_CAPABLE,4,2       ; @QLC_83XX_100_CAPABLE
	.comm	_QLC_83XX_1G_CAPABLE,4,2        ; @QLC_83XX_1G_CAPABLE
	.comm	_QLC_83XX_10G_CAPABLE,4,2       ; @QLC_83XX_10G_CAPABLE
	.comm	_QLC_83XX_10_CAPABLE,4,2        ; @QLC_83XX_10_CAPABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to Set Link Speed and autoneg.\n"

.subsections_via_symbols
