	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_mask_create
_mlxsw_sp_acl_erp_mask_create:          ## @mlxsw_sp_acl_erp_mask_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.13:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_acl_erp_ctcam_mask_create ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_mlxsw_sp_acl_erp_table_expand
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %edi
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_acl_erp_generic_create
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_acl_erp_index_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_acl_erp_table_erp_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_acl_erp_region_erp_add
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_erp_table_erp_del
LBB0_11:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_mlxsw_sp_acl_erp_index_put
LBB0_12:
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_erp_generic_destroy
	movl	%r15d, %edi
	jmp	LBB0_3
LBB0_8:
	movq	_erp_multiple_masks_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_erp_multiple_masks_ops,4,2     ## @erp_multiple_masks_ops
	.no_dead_strip	_mlxsw_sp_acl_erp_mask_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_acl_erp_mask_create
_mlxsw_sp_acl_erp_mask_create:          ; @mlxsw_sp_acl_erp_mask_create
	.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, x1
	mov	x19, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, 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
	b	_mlxsw_sp_acl_erp_ctcam_mask_create
LBB0_2:
	mov	x0, x19
	bl	_mlxsw_sp_acl_erp_table_expand
	cbz	w0, LBB0_4
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
	b	_ERR_PTR
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_acl_erp_generic_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
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
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_acl_erp_index_get
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_acl_erp_table_erp_add
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_acl_erp_region_erp_add
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
	mov	x0, x20
	bl	_mlxsw_sp_acl_erp_table_erp_del
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mlxsw_sp_acl_erp_index_put
LBB0_11:
	mov	x0, x20
	bl	_mlxsw_sp_acl_erp_generic_destroy
	mov	x0, x21
	b	LBB0_3
LBB0_12:
Lloh0:
	adrp	x8, _erp_multiple_masks_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _erp_multiple_masks_ops@GOTPAGEOFF]
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_erp_multiple_masks_ops,4,2     ; @erp_multiple_masks_ops
	.no_dead_strip	_mlxsw_sp_acl_erp_mask_create
.subsections_via_symbols
