	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_pci_sriov_enable
_qlcnic_pci_sriov_enable:               ## @qlcnic_pci_sriov_enable
	.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	8(%rdi), %r14
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	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
	movl	%r12d, %esi
	callq	___qlcnic_pci_sriov_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_11:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_configure_opmode
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_up
LBB0_14:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_5:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_up
LBB0_7:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_qlcnic_sriov_pf_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_down
	jmp	LBB0_11
LBB0_8:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movl	%r12d, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SR-IOV cannot be enabled, when legacy interrupts are enabled\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"SR-IOV is enabled successfully on port %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable SR-IOV on port %d\n"

	.no_dead_strip	_qlcnic_pci_sriov_enable
.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_enable
_qlcnic_pci_sriov_enable:               ; @qlcnic_pci_sriov_enable
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	bl	_rtnl_lock
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	___qlcnic_down
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	___qlcnic_pci_sriov_enable
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_qlcnic_83xx_configure_opmode
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	___qlcnic_up
LBB0_7:
	bl	_rtnl_unlock
	ldr	w2, [x20, #4]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	b	LBB0_15
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	___qlcnic_up
LBB0_11:
	bl	_rtnl_unlock
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_sriov_pf_enable
	cbz	w0, LBB0_14
; %bb.12:
	mov	x22, x0
	bl	_rtnl_lock
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	___qlcnic_down
	b	LBB0_4
LBB0_14:
	ldr	w2, [x20, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x22, x21
LBB0_15:
	mov	x0, x22
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SR-IOV cannot be enabled, when legacy interrupts are enabled\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"SR-IOV is enabled successfully on port %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable SR-IOV on port %d\n"

	.no_dead_strip	_qlcnic_pci_sriov_enable
.subsections_via_symbols
