	.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_create
_mlxsw_sp_mr_tcam_route_create:         ## @mlxsw_sp_mr_tcam_route_create
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rcx), %rbx
	movdqu	4(%rcx), %xmm0
	pshufd	$39, %xmm0, %xmm0               ## xmm0 = xmm0[3,1,2,0]
	movdqu	%xmm0, 16(%rdx)
	movq	%rdx, %rdi
	callq	_mlxsw_sp_mr_erif_list_init
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_mlxsw_sp_mr_tcam_erif_populate
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	leaq	4(%r13), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_flow_counter_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movl	28(%r13), %esi
	movl	24(%r13), %edx
	movl	4(%r13), %ecx
	movl	20(%r13), %r8d
	movq	%r14, %rdi
	movq	%r13, %r9
	callq	_mlxsw_sp_mr_tcam_afa_block_create
	movl	%eax, 8(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_10
LBB0_4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	16(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %esi
	movl	8(%r13), %r8d
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movl	12(%r13), %edi
	callq	_kfree
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	8(%r13), %edi
	callq	_mlxsw_sp_mr_tcam_afa_block_destroy
LBB0_10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mlxsw_sp_flow_counter_free
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mlxsw_sp_mr_erif_list_flush
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlxsw_sp_mr_tcam_route_create
.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_create
_mlxsw_sp_mr_tcam_route_create:         ; @mlxsw_sp_mr_tcam_route_create
	.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	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	mov	x21, x3
	ldr	q0, [x21, #4]!
	mov.16b	v1, v0
	mov.s	v1[0], v0[3]
	ldr	x26, [x0]
	mov.s	v1[3], v0[0]
	mov	x24, x2
	str	q1, [x24, #16]!
	mov	x0, x2
	bl	_mlxsw_sp_mr_erif_list_init
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mlxsw_sp_mr_tcam_erif_populate
	mov	x25, x0
	cbnz	w0, LBB0_10
; %bb.1:
	add	x21, x19, #4
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_flow_counter_alloc
	mov	x25, x0
	cbnz	w0, LBB0_10
; %bb.2:
	ldp	w2, w1, [x19, #24]
	ldr	w3, [x19, #4]
	ldr	w4, [x19, #20]
	mov	x0, x20
	mov	x5, x19
	bl	_mlxsw_sp_mr_tcam_afa_block_create
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_9
LBB0_4:
	ldr	w0, [x26, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	str	w0, [x19, #12]
	cbz	w0, LBB0_7
; %bb.5:
	mov	x2, x0
	ldr	x8, [x26]
	ldr	w1, [x23]
	ldr	w4, [x19, #8]
	ldr	w5, [x22]
	mov	x0, x20
	mov	x3, x24
	blr	x8
	mov	x25, x0
	cbz	w0, LBB0_11
; %bb.6:
	ldr	w0, [x19, #12]
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_mlxsw_sp_mr_tcam_afa_block_destroy
LBB0_9:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mlxsw_sp_flow_counter_free
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_mr_erif_list_flush
LBB0_11:
	mov	x0, x25
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_sp_mr_tcam_route_create
.subsections_via_symbols
