	.file	"extr_port.c_mlx4_bond_vlan_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"can't duplicate entry %d in vlan table\n"
	.align 8
.LC1:
	.string	"failed to set VLAN table for port 1 (%d)\n"
	.align 8
.LC2:
	.string	"failed to set VLAN table for port 2 (%d)\n"
	.align 8
.LC3:
	.string	"failed to create mirror VLAN tables\n"
	.text
	.p2align 4
	.globl	mlx4_bond_vlan_table
	.type	mlx4_bond_vlan_table, @function
mlx4_bond_vlan_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mlx4_priv@PLT
	mov	rdi, r13
	mov	r14, QWORD PTR [rax]
	call	mlx4_priv@PLT
	mov	rbx, QWORD PTR [rax]
	lea	rbp, 40[r14]
	mov	rdi, rbp
	call	mutex_lock@PLT
	lea	r12, 64[rbx]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	eax, DWORD PTR MLX4_MAX_VLAN_NUM[rip]
	test	eax, eax
	jle	.L12
	mov	r9, QWORD PTR 24[r14]
	mov	r8, QWORD PTR 48[rbx]
	lea	edi, -1[rax]
	xor	edx, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, rax
.L5:
	mov	rax, QWORD PTR [r9+rdx*8]
	mov	rcx, QWORD PTR [r8+rdx*8]
	test	rax, rax
	setne	sil
	cmp	rax, rcx
	setne	al
	test	sil, al
	je	.L4
	test	rcx, rcx
	jne	.L35
.L4:
	lea	rax, 1[rdx]
	cmp	rdi, rdx
	jne	.L15
	xor	eax, eax
	xor	r15d, r15d
	xor	edi, edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	test	rcx, rcx
	je	.L8
	mov	rdx, QWORD PTR 32[r14]
	mov	QWORD PTR [r9+rax*8], rcx
	mov	edi, 1
	mov	DWORD PTR [rdx+rax*4], 1
.L8:
	add	rax, 1
	cmp	DWORD PTR MLX4_MAX_VLAN_NUM[rip], eax
	jle	.L36
.L9:
	mov	rdx, QWORD PTR [r9+rax*8]
	mov	rcx, QWORD PTR [r8+rax*8]
	test	rdx, rdx
	je	.L6
	mov	rsi, QWORD PTR 56[rbx]
	lea	rsi, [rsi+rax*4]
	test	rcx, rcx
	jne	.L7
	mov	QWORD PTR [r8+rax*8], rdx
	add	rax, 1
	mov	r15d, 1
	mov	DWORD PTR [rsi], 1
	cmp	DWORD PTR MLX4_MAX_VLAN_NUM[rip], eax
	jg	.L9
.L36:
	test	edi, edi
	jne	.L10
	test	r15d, r15d
	jne	.L11
.L12:
	xor	r14d, r14d
.L3:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	mov	rdx, QWORD PTR 32[r14]
	mov	DWORD PTR [rdx+rax*4], 1
	mov	DWORD PTR [rsi], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, r9
	mov	esi, 1
	mov	rdi, r13
	call	mlx4_set_port_vlan_table@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L37
	test	r15d, r15d
	je	.L12
	mov	r8, QWORD PTR 48[rbx]
.L11:
	mov	rdx, r8
	mov	esi, 2
	mov	rdi, r13
	call	mlx4_set_port_vlan_table@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L12
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	mlx4_warn@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	mlx4_warn@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	jmp	.L3
.L37:
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	mlx4_warn@PLT
.L14:
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	xor	eax, eax
	call	mlx4_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mlx4_bond_vlan_table, .-mlx4_bond_vlan_table
	.comm	MLX4_MAX_VLAN_NUM,4,4
	.comm	EINVAL,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_port.c_mlx4_bond_vlan_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't duplicate entry %d in vlan table\012\000"
	.align	2
.LC1:
	.ascii	"failed to set VLAN table for port 1 (%d)\012\000"
	.align	2
.LC2:
	.ascii	"failed to set VLAN table for port 2 (%d)\012\000"
	.align	2
.LC3:
	.ascii	"failed to create mirror VLAN tables\012\000"
	.text
	.align	2
	.global	mlx4_bond_vlan_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_bond_vlan_table, %function
mlx4_bond_vlan_table:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r5, r0
	bl	mlx4_priv
	mov	r3, r0
	mov	r0, r5
	ldr	r8, [r3]
	bl	mlx4_priv
	ldr	r7, [r0]
	add	r3, r8, #20
	mov	r0, r3
	ldr	fp, .L32
	add	r6, r7, #32
	str	r3, [sp, #4]
	bl	mutex_lock
	mov	r0, r6
	bl	mutex_lock
	ldr	r10, [fp]
	cmp	r10, #0
	ble	.L12
	ldr	r2, [r7, #24]
	ldr	r3, [r8, #12]
	sub	r0, r2, #4
	sub	r9, r3, #4
	str	r2, [sp, #8]
	mov	r4, r9
	mov	lr, r0
	mov	r2, #0
	str	r3, [sp, #12]
.L5:
	ldr	ip, [r4, #4]!
	ldr	r1, [lr, #4]!
	subs	r3, ip, r1
	movne	r3, #1
	cmp	ip, #0
	moveq	r3, #0
	cmp	r1, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L29
	add	r2, r2, #1
	cmp	r2, r10
	bne	.L5
	mov	r4, r3
	mov	lr, #1
	mov	r10, r3
	b	.L9
.L6:
	cmp	r1, #0
	movne	r10, #1
	ldrne	r2, [r8, #16]
	strne	r1, [r9]
	strne	lr, [r2, ip]
.L8:
	ldr	r2, [fp]
	add	r3, r3, #1
	cmp	r2, r3
	ble	.L30
.L9:
	ldr	r2, [r9, #4]!
	ldr	r1, [r0, #4]!
	cmp	r2, #0
	lsl	ip, r3, #2
	beq	.L6
	cmp	r1, #0
	ldr	r1, [r7, #28]
	bne	.L7
	str	r2, [r0]
	str	lr, [r1, ip]
	ldr	r2, [fp]
	add	r3, r3, #1
	cmp	r2, r3
	mov	r4, #1
	bgt	.L9
.L30:
	cmp	r10, #0
	bne	.L10
	cmp	r4, #0
	bne	.L11
.L12:
	mov	r8, #0
.L3:
	mov	r0, r6
	bl	mutex_unlock
	ldr	r0, [sp, #4]
	bl	mutex_unlock
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, [r8, #16]
	str	lr, [r2, ip]
	str	lr, [r1, ip]
	b	.L8
.L10:
	mov	r1, #1
	mov	r0, r5
	ldr	r2, [sp, #12]
	bl	mlx4_set_port_vlan_table
	subs	r8, r0, #0
	bne	.L31
	cmp	r4, #0
	beq	.L12
	ldr	r3, [r7, #24]
	str	r3, [sp, #8]
.L11:
	mov	r1, #2
	mov	r0, r5
	ldr	r2, [sp, #8]
	bl	mlx4_set_port_vlan_table
	subs	r8, r0, #0
	beq	.L12
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L32+4
	bl	mlx4_warn
	b	.L14
.L29:
	mov	r0, r5
	ldr	r1, .L32+8
	bl	mlx4_warn
	ldr	r3, .L32+12
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L3
.L31:
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L32+16
	bl	mlx4_warn
.L14:
	mov	r0, r5
	ldr	r1, .L32+20
	bl	mlx4_warn
	b	.L3
.L33:
	.align	2
.L32:
	.word	MLX4_MAX_VLAN_NUM
	.word	.LC2
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	.LC3
	.size	mlx4_bond_vlan_table, .-mlx4_bond_vlan_table
	.comm	MLX4_MAX_VLAN_NUM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
