	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_mr_tcam_init
_mlxsw_sp1_mr_tcam_init:                ## @mlxsw_sp1_mr_tcam_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movl	(%rdi), %edi
	movq	_ACL_MAX_TCAM_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLXSW_SP_L3_PROTO_IPV4@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp1_mr_tcam_region_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLXSW_SP_L3_PROTO_IPV6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%rax,4), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp1_mr_tcam_region_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	callq	_mlxsw_sp1_mr_tcam_region_fini
	jmp	LBB0_6
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_MAX_TCAM_RULES,4,2         ## @ACL_MAX_TCAM_RULES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST,4,2 ## @MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST
	.comm	_MLXSW_SP_L3_PROTO_IPV4,8,3     ## @MLXSW_SP_L3_PROTO_IPV4
	.comm	_MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST,4,2 ## @MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST
	.comm	_MLXSW_SP_L3_PROTO_IPV6,8,3     ## @MLXSW_SP_L3_PROTO_IPV6
	.no_dead_strip	_mlxsw_sp1_mr_tcam_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_init
_mlxsw_sp1_mr_tcam_init:                ; @mlxsw_sp1_mr_tcam_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, x0
	ldr	x21, [x1]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ACL_MAX_TCAM_RULES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACL_MAX_TCAM_RULES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x22, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x21, x8, lsl #2
	mov	x0, x19
	bl	_mlxsw_sp1_mr_tcam_region_init
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x21, x8, lsl #2
	mov	x0, x19
	bl	_mlxsw_sp1_mr_tcam_region_init
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x22]
	add	x0, x21, x8, lsl #2
	bl	_mlxsw_sp1_mr_tcam_region_fini
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_MAX_TCAM_RULES,4,2         ; @ACL_MAX_TCAM_RULES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST,4,2 ; @MLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST
	.comm	_MLXSW_SP_L3_PROTO_IPV4,8,3     ; @MLXSW_SP_L3_PROTO_IPV4
	.comm	_MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST,4,2 ; @MLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST
	.comm	_MLXSW_SP_L3_PROTO_IPV6,8,3     ; @MLXSW_SP_L3_PROTO_IPV6
	.no_dead_strip	_mlxsw_sp1_mr_tcam_init
.subsections_via_symbols
