	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_vregion_destroy
_mlxsw_sp_acl_tcam_vregion_destroy:     ## @mlxsw_sp_acl_tcam_vregion_destroy
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	40(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	28(%rbx), %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_acl_tcam_vgroup_vregion_detach
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_tcam_region_destroy
LBB0_5:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_tcam_region_destroy
	movl	4(%rbx), %edi
	callq	_mlxsw_afk_key_info_put
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_destroy
.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_vregion_destroy
_mlxsw_sp_acl_tcam_vregion_destroy:     ; @mlxsw_sp_acl_tcam_vregion_destroy
	.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, x1
	mov	x20, x0
	ldr	x8, [x1, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x21, [x19, #32]
	mov	x0, x21
	bl	_mutex_lock
	add	x0, x19, #28
	bl	_list_del
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_acl_tcam_vgroup_vregion_detach
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_mlxsw_sp_acl_tcam_region_destroy
LBB0_5:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_mlxsw_sp_acl_tcam_region_destroy
	ldr	w0, [x19, #4]
	bl	_mlxsw_afk_key_info_put
	mov	x0, x19
	bl	_mutex_destroy
	mov	x0, x19
	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	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_destroy
.subsections_via_symbols
