	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_pci_sriov_disable
_qlcnic_pci_sriov_disable:              ## @qlcnic_pci_sriov_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	16(%rdi), %edi
	callq	_pci_vfs_assigned
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_disable
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_down
LBB0_4:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_free_vlans
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_cleanup
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_configure_opmode
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_up
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SR-IOV VFs belonging to port %d are assigned to VMs. SR-IOV can not be disabled on this port\n"

L_.str.1:                               ## @.str.1
	.asciz	"Please detach SR-IOV VFs belonging to port %d from VMs, and then try to disable SR-IOV on this port\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_pci_sriov_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_pci_sriov_disable
_qlcnic_pci_sriov_disable:              ; @qlcnic_pci_sriov_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #16]
	bl	_pci_vfs_assigned
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_disable
	bl	_rtnl_lock
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	___qlcnic_down
LBB0_4:
	mov	x0, x19
	bl	_qlcnic_sriov_free_vlans
	mov	x0, x19
	bl	_qlcnic_sriov_pf_cleanup
	mov	x0, x19
	bl	_qlcnic_83xx_configure_opmode
	cbz	x0, LBB0_8
; %bb.5:
	bl	_rtnl_unlock
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	___qlcnic_up
LBB0_10:
	bl	_rtnl_unlock
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SR-IOV VFs belonging to port %d are assigned to VMs. SR-IOV can not be disabled on this port\n"

l_.str.1:                               ; @.str.1
	.asciz	"Please detach SR-IOV VFs belonging to port %d from VMs, and then try to disable SR-IOV on this port\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_pci_sriov_disable
.subsections_via_symbols
