	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_setup_vf
_qlcnic_sriov_setup_vf:                 ## @qlcnic_sriov_setup_vf
	.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	%rdi, %r12
	movq	_QLCNIC_VLAN_FILTERING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rdi)
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movl	$1, (%rax)
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	_qlcnic_use_msi_x@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_qlcnic_use_msi@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_3:
	movq	_QLCNIC_SINGLE_RING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_qlcnic_set_tx_ring_count
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_qlcnic_set_sds_ring_count
	movq	%r12, %rdi
	callq	_qlcnic_setup_intr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_17
LBB0_5:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_setup_mbx_intr
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_qlcnic_sriov_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_qlcnic_sriov_cfg_bc_intr
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	_QLCNIC_BC_CMD_CHANNEL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qlcnic_sriov_channel_cfg_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	%r12, %rdi
	callq	_qlcnic_sriov_vf_init_driver
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	callq	_qlcnic_sriov_get_vf_acl
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_qlcnic_setup_netdev
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	_QLCNIC_BC_CMD_CHANNEL_TERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_qlcnic_sriov_channel_cfg_cmd
LBB0_14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_sriov_cfg_bc_intr
LBB0_15:
	movq	%r12, %rdi
	callq	___qlcnic_sriov_cleanup
LBB0_16:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_free_mbx_intr
LBB0_17:
	movq	%r12, %rdi
	callq	_qlcnic_teardown_intr
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	16(%r12), %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	movq	8(%r12), %rax
	movq	16(%r12), %rdi
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	movq	_qlcnic_sriov_vf_poll_dev_state@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	callq	_qlcnic_schedule_work
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_VLAN_FILTERING,4,2      ## @QLCNIC_VLAN_FILTERING
	.comm	_qlcnic_use_msi_x,4,2           ## @qlcnic_use_msi_x
	.comm	_qlcnic_use_msi,4,2             ## @qlcnic_use_msi
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device does not support MSI interrupts\n"

	.comm	_QLCNIC_SINGLE_RING,4,2         ## @QLCNIC_SINGLE_RING
L_.str.1:                               ## @.str.1
	.asciz	"Failed to setup interrupt\n"

	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,4,2 ## @QLCNIC_BC_CMD_CHANNEL_INIT
L_.str.2:                               ## @.str.2
	.asciz	"%s: XGbE port initialized\n"

	.comm	_qlcnic_sriov_vf_poll_dev_state,4,2 ## @qlcnic_sriov_vf_poll_dev_state
	.comm	_QLCNIC_BC_CMD_CHANNEL_TERM,4,2 ## @QLCNIC_BC_CMD_CHANNEL_TERM
	.no_dead_strip	_qlcnic_sriov_setup_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_setup_vf
_qlcnic_sriov_setup_vf:                 ; @qlcnic_sriov_setup_vf
	.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
Lloh0:
	adrp	x8, _QLCNIC_VLAN_FILTERING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_VLAN_FILTERING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #28]
	orr	w8, w9, w8
	str	w8, [x0, #28]
	ldr	x8, [x0], #24
	mov	w9, #1
	str	w9, [x8]
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _qlcnic_use_msi_x@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qlcnic_use_msi_x@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _qlcnic_use_msi@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qlcnic_use_msi@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
Lloh11:
	adrp	x21, _QLCNIC_SINGLE_RING@GOTPAGE
Lloh12:
	ldr	x21, [x21, _QLCNIC_SINGLE_RING@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_qlcnic_set_tx_ring_count
	ldr	w1, [x21]
	mov	x0, x19
	bl	_qlcnic_set_sds_ring_count
	mov	x0, x19
	bl	_qlcnic_setup_intr
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_4:
	mov	x0, x19
	bl	_qlcnic_83xx_setup_mbx_intr
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_sriov_init
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_sriov_cfg_bc_intr
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.7:
Lloh15:
	adrp	x8, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_BC_CMD_CHANNEL_INIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_sriov_channel_cfg_cmd
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_init_driver
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_qlcnic_sriov_get_vf_acl
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_qlcnic_setup_netdev
	mov	x21, x0
	cbz	w0, LBB0_17
LBB0_11:
Lloh18:
	adrp	x8, _QLCNIC_BC_CMD_CHANNEL_TERM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_BC_CMD_CHANNEL_TERM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_sriov_channel_cfg_cmd
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_sriov_cfg_bc_intr
LBB0_13:
	mov	x0, x19
	bl	___qlcnic_sriov_cleanup
LBB0_14:
	mov	x0, x19
	bl	_qlcnic_83xx_free_mbx_intr
LBB0_15:
	mov	x0, x19
	bl	_qlcnic_teardown_intr
LBB0_16:
	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_17:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_pci_set_drvdata
	ldp	x8, x0, [x19, #8]
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
Lloh23:
	adrp	x8, _qlcnic_sriov_vf_poll_dev_state@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qlcnic_sriov_vf_poll_dev_state@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_qlcnic_schedule_work
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_VLAN_FILTERING,4,2      ; @QLCNIC_VLAN_FILTERING
	.comm	_qlcnic_use_msi_x,4,2           ; @qlcnic_use_msi_x
	.comm	_qlcnic_use_msi,4,2             ; @qlcnic_use_msi
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device does not support MSI interrupts\n"

	.comm	_QLCNIC_SINGLE_RING,4,2         ; @QLCNIC_SINGLE_RING
l_.str.1:                               ; @.str.1
	.asciz	"Failed to setup interrupt\n"

	.comm	_QLCNIC_BC_CMD_CHANNEL_INIT,4,2 ; @QLCNIC_BC_CMD_CHANNEL_INIT
l_.str.2:                               ; @.str.2
	.asciz	"%s: XGbE port initialized\n"

	.comm	_qlcnic_sriov_vf_poll_dev_state,4,2 ; @qlcnic_sriov_vf_poll_dev_state
	.comm	_QLCNIC_BC_CMD_CHANNEL_TERM,4,2 ; @QLCNIC_BC_CMD_CHANNEL_TERM
	.no_dead_strip	_qlcnic_sriov_setup_vf
.subsections_via_symbols
