	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_rif_macvlan_add
_mlxsw_sp_rif_macvlan_add:              ## @mlxsw_sp_rif_macvlan_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mlxsw_sp_rif_find_by_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r15), %ebx
	movl	(%rax), %edi
	callq	_mlxsw_sp_fid_index
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_mlxsw_sp_rif_fdb_op
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	16(%r12), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_mlxsw_sp_rif_vrrp_op
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %r15d
	movl	(%r12), %edi
	callq	_mlxsw_sp_fid_index
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_rif_fdb_op
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	*%rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"macvlan is only supported on top of router interfaces"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mlxsw_sp_rif_macvlan_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_rif_macvlan_add
_mlxsw_sp_rif_macvlan_add:              ; @mlxsw_sp_rif_macvlan_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	ldr	w1, [x0]
	mov	x0, x19
	bl	_mlxsw_sp_rif_find_by_dev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w22, [x20]
	ldr	w0, [x0]
	bl	_mlxsw_sp_fid_index
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	w3, #1
	bl	_mlxsw_sp_rif_fdb_op
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x21, #16]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	bl	_mlxsw_sp_rif_vrrp_op
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	w20, [x20]
	ldr	w0, [x21]
	bl	_mlxsw_sp_fid_index
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_mlxsw_sp_rif_fdb_op
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x20]
	mov	x0, x21
	blr	x8
LBB0_8:
	mov	w22, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"macvlan is only supported on top of router interfaces"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mlxsw_sp_rif_macvlan_add
.subsections_via_symbols
