	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_set_guest_vlan_mode
_qlcnic_sriov_set_guest_vlan_mode:      ## @qlcnic_sriov_set_guest_vlan_mode
	.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
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r13)
	je	LBB0_2
LBB0_1:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movl	8(%rax), %ecx
	andl	$15, %ecx
	movl	%ecx, (%r13)
	movswl	10(%rax), %edx
	movl	%edx, 4(%r13)
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_alloc_vlans
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.3:
	movl	4(%r13), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.5:
	movq	(%r15), %rcx
	cmpl	$8, %r14d
	jb	LBB0_6
## %bb.8:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	addq	$-12, %rdx
	cmpq	$32, %rdx
	jae	LBB0_10
LBB0_6:
	xorl	%edx, %edx
LBB0_18:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r14, %rsi
	movq	%r14, %rdi
	andq	$3, %rdi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rcx,%rdx,4), %ebx
	movl	%ebx, (%rax,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_19
LBB0_20:
	xorl	%r12d, %r12d
	cmpq	$3, %rsi
	jb	LBB0_1
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rcx,%rdx,4), %esi
	movl	%esi, (%rax,%rdx,4)
	movl	16(%rcx,%rdx,4), %esi
	movl	%esi, 4(%rax,%rdx,4)
	movl	20(%rcx,%rdx,4), %esi
	movl	%esi, 8(%rax,%rdx,4)
	movl	24(%rcx,%rdx,4), %esi
	movl	%esi, 12(%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r14
	jne	LBB0_21
	jmp	LBB0_1
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_1
LBB0_10:
	movl	%r14d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rsi
	jae	LBB0_12
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	12(%rcx,%rbx,4), %xmm0
	movups	28(%rcx,%rbx,4), %xmm1
	movups	%xmm0, (%rax,%rbx,4)
	movups	%xmm1, 16(%rax,%rbx,4)
	movups	44(%rcx,%rbx,4), %xmm0
	movups	60(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 32(%rax,%rbx,4)
	movups	%xmm1, 48(%rax,%rbx,4)
	movups	76(%rcx,%rbx,4), %xmm0
	movups	92(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 64(%rax,%rbx,4)
	movups	%xmm1, 80(%rax,%rbx,4)
	movups	108(%rcx,%rbx,4), %xmm0
	movups	124(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 96(%rax,%rbx,4)
	movups	%xmm1, 112(%rax,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rdi
	jne	LBB0_13
LBB0_14:
	testq	%r8, %r8
	je	LBB0_17
## %bb.15:
	leaq	(%rax,%rbx,4), %rdi
	addq	$16, %rdi
	leaq	(%rcx,%rbx,4), %rbx
	addq	$28, %rbx
	shlq	$5, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rsi), %xmm0
	movups	(%rbx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_16
LBB0_17:
	xorl	%r12d, %r12d
	cmpq	%r14, %rdx
	je	LBB0_1
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Number of allowed Guest VLANs = %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qlcnic_sriov_set_guest_vlan_mode
.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_guest_vlan_mode
_qlcnic_sriov_set_guest_vlan_mode:      ; @qlcnic_sriov_set_guest_vlan_mode
	.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
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w9, [x8, #8]
	and	w9, w9, #0xf
	str	w9, [x21]
	ldrsh	w2, [x8, #10]
	str	w2, [x21, #4]
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_qlcnic_sriov_alloc_vlans
	ldr	w8, [x21]
	cbz	w8, LBB0_1
; %bb.4:
	ldr	w19, [x21, #4]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.5:
	cmp	w19, #1
	b.lt	LBB0_1
; %bb.6:
	ldr	x8, [x20]
	cmp	w19, #16
	b.lo	LBB0_8
; %bb.7:
	sub	x9, x0, x8
	sub	x9, x9, #12
	cmp	x9, #64
	b.hs	LBB0_12
LBB0_8:
	mov	x9, #0
LBB0_9:
	lsl	x11, x9, #2
	add	x10, x0, x11
	add	x8, x11, x8
	add	x8, x8, #12
	sub	x9, x19, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_10
	b	LBB0_1
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_12:
	and	x9, x19, #0xfffffff0
	add	x10, x0, #32
	add	x11, x8, #44
	mov	x12, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x9, x19
	b.eq	LBB0_1
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Number of allowed Guest VLANs = %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qlcnic_sriov_set_guest_vlan_mode
.subsections_via_symbols
