	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_span_mirror_add       ## -- Begin function mlxsw_sp_span_mirror_add
	.p2align	4, 0x90
_mlxsw_sp_span_mirror_add:              ## @mlxsw_sp_span_mirror_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	$0, -64(%rbp)
	movq	%rbx, %rdi
	callq	_mlxsw_sp_span_entry_ops
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_mlxsw_sp_span_entry_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movl	(%r13), %edi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_dbg
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlxsw_sp_span_inspected_port_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mlxsw_sp_span_entry_put
	jmp	LBB0_9
LBB0_1:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot mirror to %s"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
L_.str.1:                               ## @.str.1
	.asciz	"Adding inspected port to SPAN entry %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_span_mirror_add       ; -- Begin function mlxsw_sp_span_mirror_add
	.p2align	2
_mlxsw_sp_span_mirror_add:              ; @mlxsw_sp_span_mirror_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_mlxsw_sp_span_entry_ops
	cbz	x0, LBB0_5
; %bb.1:
	mov	x26, x0
	ldr	x8, [x0]
	add	x1, sp, #8
	mov	x0, x24
	blr	x8
	mov	x25, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x3, [sp, #8]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	bl	_mlxsw_sp_span_entry_get
	cbz	x0, LBB0_8
; %bb.3:
	mov	x24, x0
	ldr	w0, [x23]
	ldr	w2, [x24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	bl	_mlxsw_sp_span_inspected_port_add
	mov	x25, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	x1, x24
	bl	_mlxsw_sp_span_entry_put
	b	LBB0_7
LBB0_5:
	ldr	w2, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_netdev_err
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_7:
	mov	x0, x25
	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
	add	sp, sp, #96
	ret
LBB0_8:
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	ldr	w8, [x24]
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot mirror to %s"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
l_.str.1:                               ; @.str.1
	.asciz	"Adding inspected port to SPAN entry %d\n"

.subsections_via_symbols
