	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_pf_config_vport
_qlcnic_sriov_pf_config_vport:          ## @qlcnic_sriov_pf_config_vport
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_QLCNIC_CMD_CONFIG_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.7:
	movl	%r14d, %eax
	shll	$8, %eax
	movq	-32(%rbp), %rcx
	movl	%eax, 12(%rcx)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_9
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_qlcnic_sriov_pf_get_vport_handle
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movzwl	%ax, %eax
	shll	$8, %eax
	orl	$1, %eax
	movq	-32(%rbp), %rcx
	movl	%eax, 12(%rcx)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdx
LBB0_9:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	-40(%rbp), %rax
	movzwl	8(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_qlcnic_sriov_pf_set_vport_handle
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_qlcnic_sriov_pf_reset_vport_handle
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_CONFIG_VPORT,4,2    ## @QLCNIC_CMD_CONFIG_VPORT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed %s vport, err %d for func 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

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

	.no_dead_strip	_qlcnic_sriov_pf_config_vport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_pf_config_vport
_qlcnic_sriov_pf_config_vport:          ; @qlcnic_sriov_pf_config_vport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _QLCNIC_CMD_CONFIG_VPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_VPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
	lsl	w8, w19, #8
	ldr	x9, [sp, #8]
	str	w8, [x9, #12]
	mov	x1, sp
	mov	x0, x20
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_sriov_pf_get_vport_handle
	tbnz	w0, #31, LBB0_10
; %bb.6:
	mov	w8, #1
	bfi	w8, w0, #8, #16
	ldr	x9, [sp, #8]
	str	w8, [x9, #12]
	mov	x1, sp
	mov	x0, x20
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	ldr	x0, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x19
	bl	_dev_err
	b	LBB0_12
LBB0_9:
	ldr	x8, [sp]
	ldrh	w1, [x8, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_qlcnic_sriov_pf_set_vport_handle
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_sriov_pf_reset_vport_handle
LBB0_12:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_CONFIG_VPORT,4,2    ; @QLCNIC_CMD_CONFIG_VPORT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed %s vport, err %d for func 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

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

	.no_dead_strip	_qlcnic_sriov_pf_config_vport
.subsections_via_symbols
