	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_mr_tcam_region_init
_mlxsw_sp1_mr_tcam_region_init:         ## @mlxsw_sp1_mr_tcam_region_init
	.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	%rsi, %r12
	movl	%edx, (%rsi)
	movq	%rdi, 24(%rsi)
	movq	%rsi, %rdi
	callq	_mlxsw_sp1_mr_tcam_region_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_mlxsw_sp1_mr_tcam_region_parman_ops@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_parman_create
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rax, 16(%r12)
	movq	_MLXSW_SP_MR_ROUTE_PRIO_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, 8(%r12)
	cmpl	$0, (%r13)
	js	LBB0_7
## %bb.8:
	movq	16(%r12), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_parman_prio_init
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.9:
	movl	$4, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	16(%r12), %rdi
	movq	8(%r12), %rsi
	addq	%r15, %rsi
	movl	%ebx, %edx
	callq	_parman_prio_init
	movslq	(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_parman_destroy
LBB0_5:
	negl	%r14d
	movq	%r12, %rdi
	callq	_mlxsw_sp1_mr_tcam_region_free
	jmp	LBB0_11
LBB0_7:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp1_mr_tcam_region_parman_ops,4,2 ## @mlxsw_sp1_mr_tcam_region_parman_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_SP_MR_ROUTE_PRIO_MAX,4,2 ## @MLXSW_SP_MR_ROUTE_PRIO_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mlxsw_sp1_mr_tcam_region_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_mr_tcam_region_init
_mlxsw_sp1_mr_tcam_region_init:         ; @mlxsw_sp1_mr_tcam_region_init
	.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	x19, x1
	str	w2, [x1]
	str	x0, [x1, #24]
	mov	x0, x1
	bl	_mlxsw_sp1_mr_tcam_region_alloc
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x0, _mlxsw_sp1_mr_tcam_region_parman_ops@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mlxsw_sp1_mr_tcam_region_parman_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_parman_create
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x21, _MLXSW_SP_MR_ROUTE_PRIO_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MLXSW_SP_MR_ROUTE_PRIO_MAX@GOTPAGEOFF]
	str	x0, [x19, #16]
	ldr	w8, [x21]
	add	w0, w8, #1
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_9
; %bb.3:
	mov	x1, x0
	str	x0, [x19, #8]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_7
; %bb.4:
	ldr	x0, [x19, #16]
	mov	w2, #0
	bl	_parman_prio_init
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
	mov	w22, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldp	x8, x0, [x19, #8]
	add	x1, x8, x22
	mov	x2, x20
	bl	_parman_prio_init
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_parman_destroy
LBB0_10:
	neg	w20, w21
	mov	x0, x19
	bl	_mlxsw_sp1_mr_tcam_region_free
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp1_mr_tcam_region_parman_ops,4,2 ; @mlxsw_sp1_mr_tcam_region_parman_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_SP_MR_ROUTE_PRIO_MAX,4,2 ; @MLXSW_SP_MR_ROUTE_PRIO_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mlxsw_sp1_mr_tcam_region_init
.subsections_via_symbols
