	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp2_mr_tcam_ipv6_init
_mlxsw_sp2_mr_tcam_ipv6_init:           ## @mlxsw_sp2_mr_tcam_ipv6_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_mlxsw_sp2_mr_tcam_usage_ipv6@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mlxsw_afk_element_usage_fill
	movl	4(%r15), %edi
	movl	8(%r15), %esi
	movq	_MLXSW_SP_L3_PROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLXSW_SP_ACL_PROFILE_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	callq	_mlxsw_sp_acl_ruleset_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %edx
	movl	4(%r15), %edi
	movq	_MLXSW_REG_PEMRBT_PROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mlxsw_sp2_mr_tcam_bind_group
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_mlxsw_sp_acl_ruleset_put
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp2_mr_tcam_usage_ipv6,4,2 ## @mlxsw_sp2_mr_tcam_usage_ipv6
	.comm	_MLXSW_SP_L3_PROTO_IPV6,4,2     ## @MLXSW_SP_L3_PROTO_IPV6
	.comm	_MLXSW_SP_ACL_PROFILE_MR,4,2    ## @MLXSW_SP_ACL_PROFILE_MR
	.comm	_MLXSW_REG_PEMRBT_PROTO_IPV6,4,2 ## @MLXSW_REG_PEMRBT_PROTO_IPV6
	.no_dead_strip	_mlxsw_sp2_mr_tcam_ipv6_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp2_mr_tcam_ipv6_init
_mlxsw_sp2_mr_tcam_ipv6_init:           ; @mlxsw_sp2_mr_tcam_ipv6_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _mlxsw_sp2_mr_tcam_usage_ipv6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlxsw_sp2_mr_tcam_usage_ipv6@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_mlxsw_afk_element_usage_fill
	ldp	w0, w1, [x19, #4]
Lloh3:
	adrp	x8, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_L3_PROTO_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MLXSW_SP_ACL_PROFILE_MR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXSW_SP_ACL_PROFILE_MR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_mlxsw_sp_acl_ruleset_get
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _MLXSW_REG_PEMRBT_PROTO_IPV6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXSW_REG_PEMRBT_PROTO_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	w2, w0, [x19]
	bl	_mlxsw_sp2_mr_tcam_bind_group
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldp	w1, w0, [x19]
	bl	_mlxsw_sp_acl_ruleset_put
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp2_mr_tcam_usage_ipv6,4,2 ; @mlxsw_sp2_mr_tcam_usage_ipv6
	.comm	_MLXSW_SP_L3_PROTO_IPV6,4,2     ; @MLXSW_SP_L3_PROTO_IPV6
	.comm	_MLXSW_SP_ACL_PROFILE_MR,4,2    ; @MLXSW_SP_ACL_PROFILE_MR
	.comm	_MLXSW_REG_PEMRBT_PROTO_IPV6,4,2 ; @MLXSW_REG_PEMRBT_PROTO_IPV6
	.no_dead_strip	_mlxsw_sp2_mr_tcam_ipv6_init
.subsections_via_symbols
