	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_settings       ## -- Begin function qlcnic_83xx_set_settings
	.p2align	4, 0x90
_qlcnic_83xx_set_settings:              ## @qlcnic_83xx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_BIT_15@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r15d, %ecx
	movl	%ecx, (%rax)
LBB0_2:
	movq	%rsi, %rdi
	callq	_ethtool_cmd_speed
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.qlcnic_83xx_set_settings(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_qlcnic_83xx_set_port_config
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	(%r14), %rax
	movl	%r15d, (%rax)
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_15,4,2                     ## @BIT_15
	.comm	_BIT_8,4,2                      ## @BIT_8
	.comm	_BIT_9,4,2                      ## @BIT_9
	.comm	_BIT_10,4,2                     ## @BIT_10
	.comm	_BIT_11,4,2                     ## @BIT_11
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Faild to Set Link Speed and autoneg.\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qlcnic_83xx_set_settings
l_switch.table.qlcnic_83xx_set_settings:
	.quad	_BIT_11
	.quad	_BIT_10
	.quad	_BIT_9
	.quad	_BIT_8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_settings       ; -- Begin function qlcnic_83xx_set_settings
	.p2align	2
_qlcnic_83xx_set_settings:              ; @qlcnic_83xx_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	x19, x0
	ldr	x8, [x0]
	ldr	w21, [x8]
	ldr	x9, [x1]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _BIT_15@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BIT_15@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w9, w9, w21
	str	w9, [x8]
LBB0_2:
	mov	x0, x1
	bl	_ethtool_cmd_speed
	sub	w8, w0, #128
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, l_switch.table.qlcnic_83xx_set_settings@PAGE
Lloh4:
	add	x9, x9, l_switch.table.qlcnic_83xx_set_settings@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	bl	_qlcnic_83xx_set_port_config
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19]
	str	w21, [x8]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_15,4,2                     ; @BIT_15
	.comm	_BIT_8,4,2                      ; @BIT_8
	.comm	_BIT_9,4,2                      ; @BIT_9
	.comm	_BIT_10,4,2                     ; @BIT_10
	.comm	_BIT_11,4,2                     ; @BIT_11
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Faild to Set Link Speed and autoneg.\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qlcnic_83xx_set_settings
l_switch.table.qlcnic_83xx_set_settings:
	.quad	_BIT_11
	.quad	_BIT_10
	.quad	_BIT_9
	.quad	_BIT_8

.subsections_via_symbols
