	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_mr_ruleset_add
_mlxsw_sp_acl_tcam_mr_ruleset_add:      ## @mlxsw_sp_acl_tcam_mr_ruleset_add
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_mlxsw_sp_acl_tcam_patterns@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLXSW_SP_ACL_TCAM_PATTERNS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	movq	%r14, %r9
	callq	_mlxsw_sp_acl_tcam_vgroup_add
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_mlxsw_sp_acl_tcam_vchunk_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mlxsw_sp_acl_tcam_vgroup_del
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_acl_tcam_patterns,4,2 ## @mlxsw_sp_acl_tcam_patterns
	.comm	_MLXSW_SP_ACL_TCAM_PATTERNS_COUNT,4,2 ## @MLXSW_SP_ACL_TCAM_PATTERNS_COUNT
	.no_dead_strip	_mlxsw_sp_acl_tcam_mr_ruleset_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_acl_tcam_mr_ruleset_add
_mlxsw_sp_acl_tcam_mr_ruleset_add:      ; @mlxsw_sp_acl_tcam_mr_ruleset_add
	.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	x20, x3
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _mlxsw_sp_acl_tcam_patterns@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlxsw_sp_acl_tcam_patterns@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _MLXSW_SP_ACL_TCAM_PATTERNS_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_ACL_TCAM_PATTERNS_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x5, x20
	mov	w6, #0
	bl	_mlxsw_sp_acl_tcam_vgroup_add
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	mov	x3, x20
	bl	_mlxsw_sp_acl_tcam_vchunk_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_mlxsw_sp_acl_tcam_vgroup_del
	mov	x0, x20
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_acl_tcam_patterns,4,2 ; @mlxsw_sp_acl_tcam_patterns
	.comm	_MLXSW_SP_ACL_TCAM_PATTERNS_COUNT,4,2 ; @MLXSW_SP_ACL_TCAM_PATTERNS_COUNT
	.no_dead_strip	_mlxsw_sp_acl_tcam_mr_ruleset_add
.subsections_via_symbols
