	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_atcam_region_entry_remove
_mlxsw_sp_acl_atcam_region_entry_remove: ## @mlxsw_sp_acl_atcam_region_entry_remove
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	movl	16(%rdx), %edi
	callq	_mlxsw_sp_acl_erp_mask_erp_id
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_REG_PTCE3_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MLXSW_REG_PTCE3_OP_WRITE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rbx), %r12d
	movl	12(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rdi
	callq	_refcount_read
	xorl	%r10d, %r10d
	cmpl	$1, %eax
	setne	%r10b
	movl	(%rbx), %eax
	subq	$8, %rsp
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_mlxsw_reg_ptce3_pack
	addq	$64, %rsp
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
	movq	_ptce3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_mlxsw_reg_write
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	(%rdi), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_PTCE3_LEN,4,2        ## @MLXSW_REG_PTCE3_LEN
	.comm	_MLXSW_REG_PTCE3_OP_WRITE_WRITE,4,2 ## @MLXSW_REG_PTCE3_OP_WRITE_WRITE
	.comm	_ptce3,4,2                      ## @ptce3
	.no_dead_strip	_mlxsw_sp_acl_atcam_region_entry_remove
.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_atcam_region_entry_remove
_mlxsw_sp_acl_atcam_region_entry_remove: ; @mlxsw_sp_acl_atcam_region_entry_remove
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x2
	mov	x19, x1
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x2, #24]
	ldr	x26, [x1, #8]
	ldr	w0, [x2, #16]
	bl	_mlxsw_sp_acl_erp_mask_erp_id
	mov	x23, x0
Lloh3:
	adrp	x8, _MLXSW_REG_PTCE3_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_PTCE3_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh8:
	adrp	x8, _MLXSW_REG_PTCE3_OP_WRITE_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_REG_PTCE3_OP_WRITE_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	ldr	w26, [x26]
	ldp	w28, w27, [x21, #8]
	ldp	w21, w22, [x21]
	add	x0, x20, #4
	bl	_refcount_read
	cmp	w0, #1
	cset	w8, ne
	ldr	w9, [x20]
	sub	sp, sp, #32
	stp	w9, wzr, [sp, #12]
	stp	w21, w8, [sp, #4]
	str	w22, [sp]
	mov	x0, x24
	mov	w1, #0
	mov	x2, x25
	mov	w3, #0
	mov	x4, x26
	mov	x5, x27
	mov	x6, x23
	mov	x7, x28
	bl	_mlxsw_reg_ptce3_pack
	add	sp, sp, #32
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _ptce3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ptce3@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	bl	_mlxsw_reg_write
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_PTCE3_LEN,4,2        ; @MLXSW_REG_PTCE3_LEN
	.comm	_MLXSW_REG_PTCE3_OP_WRITE_WRITE,4,2 ; @MLXSW_REG_PTCE3_OP_WRITE_WRITE
	.comm	_ptce3,4,2                      ; @ptce3
	.no_dead_strip	_mlxsw_sp_acl_atcam_region_entry_remove
.subsections_via_symbols
