	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_set_vport_spoofchk ## -- Begin function mlx5_eswitch_set_vport_spoofchk
	.p2align	4, 0x90
_mlx5_eswitch_set_vport_spoofchk:       ## @mlx5_eswitch_set_vport_spoofchk
	.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
	movl	%edx, %r12d
	movq	%rdi, %rbx
	callq	_mlx5_eswitch_get_vport
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ESW_ALLOWED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r14), %r13d
	movl	%r12d, (%r14)
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:
	movl	4(%r14), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_core_warn
LBB0_6:
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.7:
	movq	(%rbx), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_esw_vport_ingress_config
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%r13d, (%r14)
	movl	%eax, %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spoofchk in set while MAC is invalid, vport(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_set_vport_spoofchk ; -- Begin function mlx5_eswitch_set_vport_spoofchk
	.p2align	2
_mlx5_eswitch_set_vport_spoofchk:       ; @mlx5_eswitch_set_vport_spoofchk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x0
	bl	_mlx5_eswitch_get_vport
	mov	x20, x0
	mov	x0, x21
	bl	_ESW_ALLOWED
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_4:
	add	x19, x21, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w23, [x20]
	str	w22, [x20]
	cbz	w23, LBB0_6
; %bb.5:
	ldr	w0, [x20, #4]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_10
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
LBB0_7:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MLX5_ESWITCH_LEGACY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_ESWITCH_LEGACY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_esw_vport_ingress_config
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.9:
	str	w23, [x20]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x21, #12]
	ldr	w2, [x20, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_warn
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spoofchk in set while MAC is invalid, vport(%d)\n"

	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
.subsections_via_symbols
