	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_init              ## -- Begin function qlcnic_sriov_init
	.p2align	4, 0x90
_qlcnic_sriov_init:                     ## @qlcnic_sriov_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_qlcnic_sriov_enable_check
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	%r14, (%rax)
	movl	%ebx, (%r14)
	movl	(%r15), %edx
	movl	%ebx, %edi
	movl	$112, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, 72(%r14)
	leaq	L_.str.2(%rip), %rdi
	callq	_create_singlethread_workqueue
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, 80(%r14)
	leaq	104(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	100(%r14), %rdi
	movq	_qlcnic_sriov_handle_async_issue_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	addq	$96, %rdi
	callq	_spin_lock_init
	movq	%r12, 88(%r14)
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.12:
	movl	%ebx, %eax
	imulq	$112, %rax, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r13d
	addq	$112, %r15
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rbx
	movq	%r12, 64(%rbx,%r15)
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_qlcnic_sriov_virtid_fn
	movl	%eax, 56(%rbx,%r15)
	leaq	(%rbx,%r15), %rdi
	addq	$52, %rdi
	callq	_mutex_init
	leaq	(%rbx,%r15), %rdi
	addq	$48, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r15), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%rbx,%r15), %rdi
	addq	$36, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%rbx,%r15), %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r15), %rdi
	addq	$32, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r15), %rdi
	addq	$28, %rdi
	callq	_init_completion
	leaq	(%rbx,%r15), %rdi
	addq	$24, %rdi
	movq	_qlcnic_sriov_process_bc_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	%rbx, 16(%rax,%r15)
	movq	_QLC_GUEST_VLAN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_MAX_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_MIN_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, (%rbx)
	movl	4(%rbx), %edi
	callq	_eth_random_addr
	movq	8(%r12), %rdi
	movl	4(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %ecx
	callq	_dev_info
	jmp	LBB0_20
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_17
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	80(%r14), %rdi
	callq	_destroy_workqueue
LBB0_16:
	movq	72(%r14), %rdi
	callq	_destroy_workqueue
LBB0_17:
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_18:
	negl	%ebx
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bc-trans"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot create bc-trans workqueue\n"

L_.str.2:                               ## @.str.2
	.asciz	"async"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot create async workqueue\n"

	.comm	_qlcnic_sriov_handle_async_issue_cmd,4,2 ## @qlcnic_sriov_handle_async_issue_cmd
	.comm	_qlcnic_sriov_process_bc_cmd,4,2 ## @qlcnic_sriov_process_bc_cmd
	.comm	_QLC_GUEST_VLAN_MODE,4,2        ## @QLC_GUEST_VLAN_MODE
	.comm	_MAX_BW,4,2                     ## @MAX_BW
	.comm	_MIN_BW,4,2                     ## @MIN_BW
L_.str.4:                               ## @.str.4
	.asciz	"MAC Address %pM is configured for VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_init              ; -- Begin function qlcnic_sriov_init
	.p2align	2
_qlcnic_sriov_init:                     ; @qlcnic_sriov_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	bl	_qlcnic_sriov_enable_check
	cbz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #112
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19]
	str	x0, [x8]
	str	w22, [x0]
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #112
	bl	_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	cbz	x0, LBB0_15
; %bb.4:
	str	x0, [x20, #72]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_create_singlethread_workqueue
	cbz	x0, LBB0_17
; %bb.5:
	str	x0, [x20, #80]
	add	x0, x20, #104
	bl	_INIT_LIST_HEAD
	add	x0, x20, #100
Lloh6:
	adrp	x8, _qlcnic_sriov_handle_async_issue_cmd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qlcnic_sriov_handle_async_issue_cmd@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #96
	bl	_spin_lock_init
	str	x19, [x20, #88]
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x25, #0
	mov	w21, #0
	mov	w8, #112
	umull	x26, w22, w8
Lloh9:
	adrp	x27, _qlcnic_sriov_process_bc_cmd@GOTPAGE
Lloh10:
	ldr	x27, [x27, _qlcnic_sriov_process_bc_cmd@GOTPAGEOFF]
Lloh11:
	adrp	x28, _MIN_BW@GOTPAGE
Lloh12:
	ldr	x28, [x28, _MIN_BW@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.4@PAGE
Lloh14:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	add	x25, x25, #112
	cmp	x26, x25
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x23, x8, x25
	str	x19, [x23, #64]
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_sriov_virtid_fn
	str	w0, [x23, #56]
	add	x0, x23, #52
	bl	_mutex_init
	add	x0, x23, #48
	bl	_spin_lock_init
	add	x0, x23, #44
	bl	_INIT_LIST_HEAD
	add	x0, x23, #36
	bl	_INIT_LIST_HEAD
	add	x0, x23, #40
	bl	_spin_lock_init
	add	x0, x23, #32
	bl	_spin_lock_init
	add	x0, x23, #28
	bl	_init_completion
	add	x0, x23, #24
	ldr	w1, [x27]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x24]
	mov	w0, #20
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	str	x0, [x8, #16]
Lloh15:
	adrp	x8, _QLC_GUEST_VLAN_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLC_GUEST_VLAN_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh18:
	adrp	x8, _MAX_BW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_BW@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x28]
	stp	w9, w8, [x0, #8]
	str	wzr, [x0]
	ldr	w0, [x0, #4]
	bl	_eth_random_addr
	ldr	x0, [x19, #8]
	ldr	w2, [x23, #4]
	mov	x1, x22
	mov	x3, x21
	bl	_dev_info
	b	LBB0_7
LBB0_11:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_15:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	ldr	x0, [x19, #8]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_20
LBB0_16:
	mov	w20, #0
	b	LBB0_22
LBB0_17:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	ldr	x0, [x19, #8]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_18:
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	ldr	x0, [x20, #80]
	bl	_destroy_workqueue
LBB0_19:
	ldr	x0, [x20, #72]
	bl	_destroy_workqueue
LBB0_20:
	ldr	x0, [x20, #8]
	bl	_kfree
LBB0_21:
	neg	w20, w21
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_kfree
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bc-trans"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot create bc-trans workqueue\n"

l_.str.2:                               ; @.str.2
	.asciz	"async"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot create async workqueue\n"

	.comm	_qlcnic_sriov_handle_async_issue_cmd,4,2 ; @qlcnic_sriov_handle_async_issue_cmd
	.comm	_qlcnic_sriov_process_bc_cmd,4,2 ; @qlcnic_sriov_process_bc_cmd
	.comm	_QLC_GUEST_VLAN_MODE,4,2        ; @QLC_GUEST_VLAN_MODE
	.comm	_MAX_BW,4,2                     ; @MAX_BW
	.comm	_MIN_BW,4,2                     ; @MIN_BW
l_.str.4:                               ; @.str.4
	.asciz	"MAC Address %pM is configured for VF %d\n"

.subsections_via_symbols
