	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_mr_tcam_route_update
_mlxsw_sp_mr_tcam_route_update:         ## @mlxsw_sp_mr_tcam_route_update
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r12
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_mlxsw_sp_mr_erif_list_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mlxsw_sp_mr_tcam_erif_populate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r12, %rbx
	movl	8(%r15), %esi
	movl	(%r15), %r8d
	movl	4(%r15), %edx
	movl	32(%r14), %ecx
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	callq	_mlxsw_sp_mr_tcam_afa_block_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	28(%r14), %esi
	leaq	24(%r14), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mlxsw_sp_mr_tcam_afa_block_destroy
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mlxsw_sp_mr_erif_list_flush
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%r14), %rdi
	callq	_mlxsw_sp_mr_tcam_afa_block_destroy
	leaq	12(%r14), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_mr_erif_list_flush
	movq	%r12, 16(%r14)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mlxsw_sp_mr_erif_list_move
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_mr_tcam_route_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_mr_tcam_route_update
_mlxsw_sp_mr_tcam_route_update:         ; @mlxsw_sp_mr_tcam_route_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0]
	add	x0, sp, #8
	bl	_mlxsw_sp_mr_erif_list_init
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_mlxsw_sp_mr_tcam_erif_populate
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldp	w2, w1, [x21, #4]
	ldr	w3, [x20, #32]
	ldr	w4, [x21]
	add	x5, sp, #8
	mov	x0, x19
	bl	_mlxsw_sp_mr_tcam_afa_block_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_5
LBB0_3:
	ldr	x8, [x24]
	ldr	w1, [x20, #28]
	add	x2, x20, #24
	mov	x0, x19
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_7
; %bb.4:
	mov	x23, x0
	mov	x0, x22
	bl	_mlxsw_sp_mr_tcam_afa_block_destroy
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlxsw_sp_mr_erif_list_flush
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	x0, [x20, #16]
	bl	_mlxsw_sp_mr_tcam_afa_block_destroy
	add	x23, x20, #12
	mov	x0, x19
	mov	x1, x23
	bl	_mlxsw_sp_mr_erif_list_flush
	str	x22, [x20, #16]
	add	x1, sp, #8
	mov	x0, x23
	bl	_mlxsw_sp_mr_erif_list_move
	mov	w23, #0
	ldr	w8, [x21, #8]
	str	w8, [x20, #8]
	ldr	d0, [x21]
	str	d0, [x20]
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_mr_tcam_route_update
.subsections_via_symbols
