	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qlcnic_sriov_validate_vlan_cfg
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_qlcnic_sriov_validate_vlan_cfg:        ## @qlcnic_sriov_validate_vlan_cfg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	32(%r13), %r15
	movq	%r15, %rdi
	callq	_qlcnic_sriov_check_any_vlan
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	_QLC_GUEST_VLAN_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.2:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_vf_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	testl	%r12d, %r12d
	jne	LBB0_19
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_sriov_validate_num_vlans
	testq	%rax, %rax
	jne	LBB0_19
## %bb.5:
	cmpq	$0, 24(%r13)
	je	LBB0_22
## %bb.6:
	movl	8(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.7:
	movq	16(%r13), %rcx
	cmpl	$8, %eax
	jae	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	xorl	%esi, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_20:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.21:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_qlcnic_sriov_check_vlan_id
	testq	%rax, %rax
	je	LBB0_22
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_9:
	movl	%eax, %edx
	andl	$-8, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.11:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	movaps	LCPI0_0(%rip), %xmm5            ## xmm5 = [1,1,1,1]
	xorps	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,4), %xmm6
	movdqu	16(%rcx,%rdi,4), %xmm7
	movdqu	32(%rcx,%rdi,4), %xmm0
	movdqu	48(%rcx,%rdi,4), %xmm1
	pcmpeqd	%xmm3, %xmm6
	pcmpeqd	%xmm3, %xmm7
	pcmpeqd	%xmm3, %xmm0
	por	%xmm6, %xmm0
	pcmpeqd	%xmm3, %xmm1
	por	%xmm7, %xmm1
	blendvps	%xmm0, %xmm5, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm5, %xmm4
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm4, %xmm4
LBB0_13:
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movdqu	(%rcx,%rdi,4), %xmm0
	movdqu	16(%rcx,%rdi,4), %xmm1
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm1
	movaps	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	blendvps	%xmm0, %xmm3, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm3, %xmm4
LBB0_15:
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm4, %xmm2
	xorl	%esi, %esi
	ptest	%xmm2, %xmm2
	setne	%sil
	cmpq	%rax, %rdx
	je	LBB0_18
LBB0_16:
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rdx,4)
	cmovel	%edi, %esi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
LBB0_18:
	xorl	%eax, %eax
	testl	%esi, %esi
	jne	LBB0_23
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_GUEST_VLAN_MODE,8,3        ## @QLC_GUEST_VLAN_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_sriov_validate_vlan_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_validate_vlan_cfg
_qlcnic_sriov_validate_vlan_cfg:        ; @qlcnic_sriov_validate_vlan_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x21, [x20, #32]
	mov	x0, x21
	bl	_qlcnic_sriov_check_any_vlan
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _QLC_GUEST_VLAN_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLC_GUEST_VLAN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x22, x0
	cbz	w24, LBB0_9
; %bb.2:
	mov	x0, x23
	bl	_qlcnic_83xx_vf_check
	cbz	x0, LBB0_4
; %bb.3:
	cbnz	w22, LBB0_11
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_sriov_validate_num_vlans
	cbnz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_19
; %bb.6:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	ldr	x9, [x20, #16]
	cmp	w8, #16
	b.hs	LBB0_13
; %bb.8:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_16
LBB0_9:
	cbz	w22, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_qlcnic_sriov_check_vlan_id
	cbz	x0, LBB0_12
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	and	x10, x8, #0xfffffff0
	dup.4s	v1, w19
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	movi.4s	v3, #1
	mov	x12, x10
	movi.2d	v5, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x11, #-32]
	ldp	q16, q17, [x11], #64
	cmeq.4s	v6, v6, v1
	cmeq.4s	v7, v7, v1
	cmeq.4s	v16, v16, v1
	cmeq.4s	v17, v17, v1
	bit.16b	v0, v3, v6
	bit.16b	v5, v3, v7
	bit.16b	v4, v3, v16
	bit.16b	v2, v3, v17
	subs	x12, x12, #16
	b.ne	LBB0_14
; %bb.15:
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v5, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v4, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v2, v1
	cmtst.4s	v0, v0, v0
	xtn.4h	v0, v0
	umov.h	w11, v0[0]
	umov.h	w12, v0[1]
	and	w12, w12, #0x1
	bfi	w11, w12, #1, #1
	umov.h	w12, v0[2]
	and	w12, w12, #0x1
	bfi	w11, w12, #2, #1
	umov.h	w12, v0[3]
	bfi	w11, w12, #3, #29
	tst	w11, #0xf
	cset	w11, ne
	cmp	x10, x8
	b.eq	LBB0_18
LBB0_16:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, w19
	csinc	w11, w11, wzr, ne
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	cbz	w11, LBB0_11
LBB0_19:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_GUEST_VLAN_MODE,8,3        ; @QLC_GUEST_VLAN_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_sriov_validate_vlan_cfg
.subsections_via_symbols
