	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_set_vf_acl
_qlcnic_sriov_set_vf_acl:               ## @qlcnic_sriov_set_vf_acl
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_qlcnic_sriov_func_to_index
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %r12
	movq	_QLCNIC_CMD_SET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	shll	$16, %r15d
	orl	$3, %r15d
	movq	-40(%rbp), %rax
	movl	%r15d, 4(%rax)
	cmpl	$1, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	_BIT_1@GOTPCREL(%rip), %rcx
	movq	_BIT_3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_BIT_8@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	8(%r12), %rcx
	orl	%edx, 8(%rax)
	movl	16(%rcx), %edx
	shll	$8, %edx
	orl	20(%rcx), %edx
	movl	8(%rcx), %esi
	movl	12(%rcx), %edi
	shll	$16, %edi
	shll	$24, %esi
	orl	%edi, %esi
	orl	%edx, %esi
	movl	%esi, 16(%rax)
	movl	(%rcx), %edx
	shll	$8, %edx
	orl	4(%rcx), %edx
	movl	%edx, 20(%rax)
LBB0_4:
	movq	16(%r12), %rcx
	movq	_QLC_PVID_MODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_BIT_6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rax)
	movl	24(%r12), %ecx
	shll	$8, %ecx
	orl	%ecx, 12(%rax)
LBB0_6:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_SET_NIC_INFO,4,2    ## @QLCNIC_CMD_SET_NIC_INFO
	.comm	_BIT_1,4,2                      ## @BIT_1
	.comm	_BIT_3,4,2                      ## @BIT_3
	.comm	_BIT_8,4,2                      ## @BIT_8
	.comm	_QLC_PVID_MODE,8,3              ## @QLC_PVID_MODE
	.comm	_BIT_6,4,2                      ## @BIT_6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set ACL, err=%d\n"

	.no_dead_strip	_qlcnic_sriov_set_vf_acl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_set_vf_acl
_qlcnic_sriov_set_vf_acl:               ; @qlcnic_sriov_set_vf_acl
	.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	x21, x1
	mov	x19, x0
	bl	_qlcnic_sriov_func_to_index
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x22, [x8, w20, uxtw #3]
Lloh0:
	adrp	x8, _QLCNIC_CMD_SET_NIC_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_SET_NIC_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.2:
	mov	w9, #3
	bfi	w9, w21, #16, #16
	ldr	x8, [sp, #8]
	str	w9, [x8, #4]
	ldr	w9, [x22]
	cmp	w9, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x22, #8]
Lloh3:
	adrp	x10, _BIT_1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BIT_1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _BIT_3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BIT_3@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _BIT_8@GOTPAGE
Lloh10:
	ldr	x12, [x12, _BIT_8@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh11:
	ldr	w11, [x12]
	orr	w10, w10, w11
	ldr	w11, [x8, #8]
	orr	w10, w10, w11
	str	w10, [x8, #8]
	ldp	w11, w10, [x9, #16]
	orr	w10, w10, w11, lsl #8
	ldp	w12, w11, [x9, #8]
	orr	w10, w10, w11, lsl #16
	orr	w10, w10, w12, lsl #24
	str	w10, [x8, #16]
	ldp	w9, w10, [x9]
	orr	w9, w10, w9, lsl #8
	str	w9, [x8, #20]
LBB0_4:
	ldr	x9, [x22, #16]
Lloh12:
	adrp	x10, _QLC_PVID_MODE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _QLC_PVID_MODE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x9, _BIT_6@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT_6@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldp	w10, w11, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	ldr	w9, [x22, #24]
	orr	w9, w11, w9, lsl #8
	str	w9, [x8, #12]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_9:
	mov	x0, x20
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_SET_NIC_INFO,4,2    ; @QLCNIC_CMD_SET_NIC_INFO
	.comm	_BIT_1,4,2                      ; @BIT_1
	.comm	_BIT_3,4,2                      ; @BIT_3
	.comm	_BIT_8,4,2                      ; @BIT_8
	.comm	_QLC_PVID_MODE,8,3              ; @QLC_PVID_MODE
	.comm	_BIT_6,4,2                      ; @BIT_6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set ACL, err=%d\n"

	.no_dead_strip	_qlcnic_sriov_set_vf_acl
.subsections_via_symbols
