	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_activate_vst_qinq
_mlx4_activate_vst_qinq:                ## @mlx4_activate_vst_qinq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movslq	%esi, %rdx
	movq	(%rcx,%rdx,8), %r13
	movslq	%ebx, %r14
	movq	(%rax,%rdx,8), %rcx
	leaq	(%r14,%r14,2), %r15
	shlq	$4, %r14
	movq	(%rcx,%r14), %rdx
	leaq	(,%r15,8), %rdi
	addq	%r13, %rdi
	cmpq	(%r13,%r15,8), %rdx
	je	LBB0_4
## %bb.1:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	leaq	16(,%r15,8), %rcx
	addq	%r13, %rcx
	movq	%r12, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	___mlx4_register_vlan
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx4_warn
	jmp	LBB0_5
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlx4_dbg
	movq	%rbx, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
LBB0_4:
	movl	12(%rcx,%r14), %eax
	movl	%eax, 12(%r13,%r15,8)
	movq	%rdx, (%rdi)
	movl	8(%rcx,%r14), %eax
	movl	%eax, 8(%r13,%r15,8)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_INDX,4,2                    ## @NO_INDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No vlan resources slave %d, port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.no_dead_strip	_mlx4_activate_vst_qinq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_activate_vst_qinq
_mlx4_activate_vst_qinq:                ; @mlx4_activate_vst_qinq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	sbfiz	x8, x20, #3, #32
	ldp	x10, x9, [x0, #8]
	ldr	x24, [x9, x8]
	sxtw	x25, w19
	ldr	x26, [x10, x8]
	add	x28, x26, w2, sxtw #4
	ldr	x2, [x28]
	mov	w8, #24
	smaddl	x27, w19, w8, x24
	ldr	x8, [x27]
	cmp	x2, x8
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w8, #24
	madd	x8, x25, x8, x24
	add	x23, x8, #16
	mov	x1, x19
	mov	x3, x23
	bl	___mlx4_register_vlan
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _NO_INDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_INDX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mlx4_warn
	b	LBB0_5
LBB0_3:
	ldr	w2, [x27]
	ldr	w3, [x23]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	mov	x5, x19
	bl	_mlx4_dbg
	ldr	x2, [x28]
LBB0_4:
	mov	w22, #0
	str	x2, [x27]
	add	x8, x26, x25, lsl #4
	mov	w9, #24
	madd	x9, x25, x9, x24
	ldr	d0, [x8, #8]
	str	d0, [x9, #8]
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_INDX,4,2                    ; @NO_INDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No vlan resources slave %d, port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.no_dead_strip	_mlx4_activate_vst_qinq
.subsections_via_symbols
