	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_vf_init           ## -- Begin function qlcnic_sriov_vf_init
	.p2align	4, 0x90
_qlcnic_sriov_vf_init:                  ## @qlcnic_sriov_vf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	40(%rdi), %rbx
	movq	_QLC_83XX_MODULE_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_set_bit
	movq	_QLC_83XX_IDC_FW_POLL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movq	_QLCNIC_TX_INTR_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_qlcnic_sriov_check_dev_ready
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_qlcnic_sriov_setup_vf
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_qlcnic_read_mac_addr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	leaq	4(%r15), %rdi
	movq	_qlcnic_83xx_idc_aen_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_MODULE_LOADED,4,2     ## @QLC_83XX_MODULE_LOADED
	.comm	_QLC_83XX_IDC_FW_POLL_DELAY,4,2 ## @QLC_83XX_IDC_FW_POLL_DELAY
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ## @QLCNIC_TX_INTR_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read mac addr\n"

	.comm	_qlcnic_83xx_idc_aen_work,4,2   ## @qlcnic_83xx_idc_aen_work
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_vf_init           ; -- Begin function qlcnic_sriov_vf_init
	.p2align	2
_qlcnic_sriov_vf_init:                  ; @qlcnic_sriov_vf_init
	.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
	ldr	x21, [x0, #40]
Lloh0:
	adrp	x8, _QLC_83XX_MODULE_LOADED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MODULE_LOADED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #20
	bl	_set_bit
Lloh3:
	adrp	x8, _QLC_83XX_IDC_FW_POLL_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_IDC_FW_POLL_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	xzr, [x21, #8]
	mov	w8, #1
	str	w8, [x21]
	stp	xzr, xzr, [x19, #24]
Lloh6:
	adrp	x8, _QLCNIC_TX_INTR_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_TX_INTR_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_qlcnic_sriov_check_dev_ready
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_sriov_setup_vf
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_read_mac_addr
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
	add	x0, x19, #4
Lloh11:
	adrp	x8, _qlcnic_83xx_idc_aen_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qlcnic_83xx_idc_aen_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh14:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	mov	w0, #0
LBB0_5:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_MODULE_LOADED,4,2     ; @QLC_83XX_MODULE_LOADED
	.comm	_QLC_83XX_IDC_FW_POLL_DELAY,4,2 ; @QLC_83XX_IDC_FW_POLL_DELAY
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ; @QLCNIC_TX_INTR_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read mac addr\n"

	.comm	_qlcnic_83xx_idc_aen_work,4,2   ; @qlcnic_83xx_idc_aen_work
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
.subsections_via_symbols
