	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_mr_route_add          ## -- Begin function mlxsw_sp_mr_route_add
	.p2align	4, 0x90
_mlxsw_sp_mr_route_add:                 ## @mlxsw_sp_mr_route_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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_mr_route_create
	movq	%rax, %r12
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.19:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_3:
	leaq	12(%r12), %rsi
	movq	_mlxsw_sp_mr_route_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rhashtable_lookup_fast
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%r13, %r15
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_9:
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
LBB0_10:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	leaq	4(%r14), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	addq	$4, %r12
	movq	_mlxsw_sp_mr_route_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rhashtable_insert_fast
	movq	%r13, %r15
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_mlxsw_sp_mr_route_write
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movl	%eax, %r13d
	movq	_mlxsw_sp_mr_route_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rhashtable_remove_fast
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	%r15, %rdi
	callq	_list_del
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_mr_route_destroy
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rsi
	addq	$4, %rsi
	movq	_mlxsw_sp_mr_route_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rhashtable_remove_fast
	movq	%rbx, %rdi
	callq	_list_del
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_mr_route_destroy
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_sp_mr_mfc_offload_update
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mlxsw_sp_mr_route_ht_params,4,2 ## @mlxsw_sp_mr_route_ht_params
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Offloading proxy routes is not supported.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_mr_route_add          ; -- Begin function mlxsw_sp_mr_route_add
	.p2align	2
_mlxsw_sp_mr_route_add:                 ; @mlxsw_sp_mr_route_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_mr_route_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_4:
	add	x1, x20, #12
Lloh3:
	adrp	x25, _mlxsw_sp_mr_route_ht_params@GOTPAGE
Lloh4:
	ldr	x25, [x25, _mlxsw_sp_mr_route_ht_params@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_rhashtable_lookup_fast
	mov	x22, x0
	cbz	w21, LBB0_7
; %bb.5:
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_10
; %bb.6:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	cbz	x22, LBB0_11
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_10:
	ldr	w8, [x22, #8]
	str	w8, [x20, #8]
LBB0_11:
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add_tail
	add	x24, x20, #4
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x24
	bl	_rhashtable_insert_fast
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlxsw_sp_mr_route_write
	cbz	w0, LBB0_17
; %bb.13:
	mov	x23, x0
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x24
	bl	_rhashtable_remove_fast
LBB0_14:
	mov	x0, x20
	bl	_list_del
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_mr_route_destroy
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	cbz	w21, LBB0_19
; %bb.18:
	add	x1, x22, #4
	ldr	w2, [x25]
	mov	x0, x19
	bl	_rhashtable_remove_fast
	mov	x0, x22
	bl	_list_del
	mov	x0, x19
	mov	x1, x22
	bl	_mlxsw_sp_mr_route_destroy
LBB0_19:
	mov	x0, x20
	bl	_mlxsw_sp_mr_mfc_offload_update
	mov	w23, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mlxsw_sp_mr_route_ht_params,4,2 ; @mlxsw_sp_mr_route_ht_params
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Offloading proxy routes is not supported.\n"

.subsections_via_symbols
