	.file	"extr_fw.c_mlx4_handle_vst_qinq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Slave %d does not support VST QinQ mode\n"
	.text
	.p2align 4
	.type	mlx4_handle_vst_qinq, @function
mlx4_handle_vst_qinq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rax, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	lea	rdx, 0[0+rax*8]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rax
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rcx, QWORD PTR 24[rdi]
	mov	r12, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rdx
	mov	rsi, QWORD PTR [rcx+rax*8]
	movsx	rcx, r14d
	mov	QWORD PTR 16[rsp], r12
	lea	rbx, [rcx+rcx*2]
	mov	rcx, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR ETH_P_8021AD[rip]
	sal	rbx, 3
	mov	QWORD PTR 24[rsp], rsi
	mov	r15, QWORD PTR [rcx+rax*8]
	add	r15, rbx
	mov	r12, QWORD PTR [r15]
	call	htons@PLT
	cmp	r12, rax
	jne	.L1
	mov	r12, QWORD PTR 16[rsp]
	add	r12, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 4[r12]
	test	ecx, ecx
	je	.L1
	add	rbx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR [r15]
	je	.L12
.L3:
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	je	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	mlx4_activate_vst_qinq@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, r13d
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[r15], rax
	call	mlx4_warn@PLT
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r15]
	cmp	QWORD PTR 8[rbx], rdi
	jne	.L3
	mov	rdi, QWORD PTR 16[r15]
	cmp	QWORD PTR 16[rbx], rdi
	jne	.L3
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_handle_vst_qinq, .-mlx4_handle_vst_qinq
	.comm	ETH_P_8021AD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fw.c_mlx4_handle_vst_qinq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Slave %d does not support VST QinQ mode\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_handle_vst_qinq, %function
mlx4_handle_vst_qinq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r3, [r0, #8]
	ldr	r1, .L14
	ldr	r7, [r3, r5, lsl #2]
	mov	r6, r2
	add	r3, r2, r2, lsl #1
	ldr	r2, [r0, #12]
	sub	sp, sp, #12
	lsl	r8, r3, #2
	ldr	r0, [r1]
	add	r3, r7, r3, lsl #2
	ldr	r9, [r7, r8]
	ldr	r10, [r2, r5, lsl #2]
	ldr	fp, [r4, #4]
	str	r3, [sp, #4]
	bl	htons
	cmp	r9, r0
	bne	.L1
	add	r3, fp, r5, lsl #3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r10, r8]
	ldr	r3, [r7, r8]
	add	r10, r10, r8
	cmp	r2, r3
	beq	.L12
.L3:
	ldr	r3, [fp, r5, lsl #3]
	cmp	r3, #0
	beq	.L13
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mlx4_activate_vst_qinq
.L13:
	ldr	ip, [sp, #4]
	ldmib	r10, {r1, r3}
	mov	r0, r4
	str	r2, [r7, r8]
	stmib	ip, {r1, r3}
	mov	r2, r5
	ldr	r1, .L14+4
	bl	mlx4_warn
.L1:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, [sp, #4]
	ldr	r1, [r10, #4]
	ldr	r3, [r3, #4]
	cmp	r1, r3
	bne	.L3
	ldr	r3, [sp, #4]
	ldr	r1, [r10, #8]
	ldr	r3, [r3, #8]
	cmp	r1, r3
	bne	.L3
	b	.L1
.L15:
	.align	2
.L14:
	.word	ETH_P_8021AD
	.word	.LC0
	.size	mlx4_handle_vst_qinq, .-mlx4_handle_vst_qinq
	.comm	ETH_P_8021AD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
