	.file	"extr_eswitch.c_mlx5_eswitch_set_vport_spoofchk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Spoofchk in set while MAC is invalid, vport(%d)\n"
	.text
	.p2align 4
	.globl	mlx5_eswitch_set_vport_spoofchk
	.type	mlx5_eswitch_set_vport_spoofchk, @function
mlx5_eswitch_set_vport_spoofchk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	mlx5_eswitch_get_vport@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	ESW_ALLOWED@PLT
	test	eax, eax
	jne	.L2
	mov	r13d, DWORD PTR EPERM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	lea	r14, 8[rbp]
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	ebx, DWORD PTR [r12]
	mov	DWORD PTR [r12], r13d
	test	ebx, ebx
	jne	.L17
.L6:
	xor	r13d, r13d
	cmp	QWORD PTR 8[r12], 0
	je	.L8
	mov	rax, QWORD PTR MLX5_ESWITCH_LEGACY[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L18
.L8:
	mov	rdi, r14
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	call	is_valid_ether_addr@PLT
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR 16[r12]
	mov	edi, DWORD PTR 12[rbp]
	lea	rsi, .LC0[rip]
	call	mlx5_core_warn@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, r12
	mov	rdi, rbp
	call	esw_vport_ingress_config@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L8
	mov	DWORD PTR [r12], ebx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	mlx5_eswitch_set_vport_spoofchk, .-mlx5_eswitch_set_vport_spoofchk
	.comm	MLX5_ESWITCH_LEGACY,8,8
	.comm	EPERM,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_eswitch.c_mlx5_eswitch_set_vport_spoofchk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Spoofchk in set while MAC is invalid, vport(%d)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	mlx5_eswitch_set_vport_spoofchk
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_eswitch_set_vport_spoofchk, %function
mlx5_eswitch_set_vport_spoofchk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r2
	bl	mlx5_eswitch_get_vport
	mov	r4, r0
	mov	r0, r6
	bl	ESW_ALLOWED
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L21
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	add	r7, r6, #4
	mov	r0, r7
	bl	mutex_lock
	ldr	r8, [r4]
	str	r5, [r4]
	cmp	r8, #0
	bne	.L19
.L6:
	ldr	r5, [r4, #8]
	cmp	r5, #0
	beq	.L8
	ldr	r3, .L21+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r5, #0
	beq	.L20
.L8:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L19:
	ldr	r0, [r4, #4]
	bl	is_valid_ether_addr
	cmp	r0, #0
	bne	.L6
	ldr	r2, [r4, #12]
	ldr	r1, .L21+8
	ldr	r0, [r6, #8]
	bl	mlx5_core_warn
	b	.L6
.L20:
	mov	r0, r6
	mov	r1, r4
	bl	esw_vport_ingress_config
	subs	r5, r0, #0
	strne	r8, [r4]
	b	.L8
.L22:
	.align	2
.L21:
	.word	EPERM
	.word	MLX5_ESWITCH_LEGACY
	.word	.LC0
	.size	mlx5_eswitch_set_vport_spoofchk, .-mlx5_eswitch_set_vport_spoofchk
	.comm	MLX5_ESWITCH_LEGACY,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
