	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_settings
_qlcnic_set_settings:                   ## @qlcnic_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, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_check
	movq	%r12, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_qlcnic_83xx_set_settings
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	callq	_qlcnic_set_port_config
LBB0_5:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_ethtool_cmd_speed
	movq	(%r12), %rcx
	movl	%eax, 16(%rcx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rcx)
	movl	(%r14), %eax
	movl	%eax, 8(%rcx)
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	(%r15), %rax
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_GBE,8,3                 ## @QLCNIC_GBE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_qlcnic_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_settings
_qlcnic_set_settings:                   ; @qlcnic_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
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QLCNIC_GBE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_GBE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_qlcnic_83xx_set_settings
	cbnz	w0, LBB0_6
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_qlcnic_set_port_config
	cbz	w0, LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_ethtool_cmd_speed
	ldr	x8, [x21]
	str	w0, [x8, #16]
	ldr	d0, [x20]
	str	d0, [x8, #8]
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_4
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	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
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_GBE,8,3                 ; @QLCNIC_GBE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_qlcnic_set_settings
.subsections_via_symbols
