	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_vf_init_driver
_qlcnic_sriov_vf_init_driver:           ## @qlcnic_sriov_vf_init_driver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_qlcnic_sriov_get_vf_vport_info
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-24(%rbp), %eax
	movl	%eax, 32(%r14)
	movl	28(%r14), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_get_nic_info
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_get_port_info
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_vf_cfg_buff_desc
	movq	_QLCNIC_ADAPTER_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movl	24(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	-32(%rbp), %rax
	movq	%rax, 16(%r14)
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_ADAPTER_INITIALIZED,4,2 ## @QLCNIC_ADAPTER_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HAL Version: %d\n"

	.no_dead_strip	_qlcnic_sriov_vf_init_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_vf_init_driver
_qlcnic_sriov_vf_init_driver:           ; @qlcnic_sriov_vf_init_driver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	mov	x1, sp
	mov	w2, #0
	bl	_qlcnic_sriov_get_vf_vport_info
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #24]
	str	w8, [x20, #32]
	ldr	w2, [x20, #28]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_get_nic_info
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_83xx_get_port_info
	cbz	x0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_cfg_buff_desc
Lloh3:
	adrp	x8, _QLCNIC_ADAPTER_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_ADAPTER_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldp	x8, x0, [x19]
	ldr	w2, [x8, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	ldr	x8, [sp, #16]
	str	x8, [x20, #16]
	ldr	q0, [sp]
	str	q0, [x20]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_ADAPTER_INITIALIZED,4,2 ; @QLCNIC_ADAPTER_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HAL Version: %d\n"

	.no_dead_strip	_qlcnic_sriov_vf_init_driver
.subsections_via_symbols
