	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___QLCNIC_SRIOV_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	_QLCNIC_SRIOV_PF_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_qlcnic_sriov_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_create_flr_queue
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_del_flr_queue
LBB0_5:
	movq	%rbx, %rdi
	callq	___qlcnic_sriov_cleanup
LBB0_6:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_alloc_vlans
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_SRIOV_ENABLE,4,2      ## @__QLCNIC_SRIOV_ENABLE
	.comm	_QLCNIC_SRIOV_PF_FUNC,4,2       ## @QLCNIC_SRIOV_PF_FUNC
	.comm	_QLCNIC_MGMT_FUNC,4,2           ## @QLCNIC_MGMT_FUNC
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, ___QLCNIC_SRIOV_ENABLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___QLCNIC_SRIOV_ENABLE@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #8
	mov	x1, x20
	bl	_set_bit
Lloh2:
	adrp	x8, _QLCNIC_SRIOV_PF_FUNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLCNIC_SRIOV_PF_FUNC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_sriov_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_create_flr_queue
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_init
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_del_flr_queue
LBB0_4:
	mov	x0, x19
	bl	___qlcnic_sriov_cleanup
LBB0_5:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
Lloh5:
	adrp	x8, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_6:
	mov	x0, x21
	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_7:
	mov	x0, x19
	bl	_qlcnic_sriov_alloc_vlans
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_SRIOV_ENABLE,4,2      ; @__QLCNIC_SRIOV_ENABLE
	.comm	_QLCNIC_SRIOV_PF_FUNC,4,2       ; @QLCNIC_SRIOV_PF_FUNC
	.comm	_QLCNIC_MGMT_FUNC,4,2           ; @QLCNIC_MGMT_FUNC
	.no_dead_strip	___qlcnic_pci_sriov_enable
.subsections_via_symbols
