	.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_migrate
_mlxsw_sp_acl_tcam_vregion_migrate:     ## @mlxsw_sp_acl_tcam_vregion_migrate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_trace_mlxsw_sp_acl_tcam_vregion_migrate
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_mlxsw_sp_acl_tcam_vchunk_migrate_all
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_swap
	movq	$0, 8(%r13)
	movl	$1, (%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_mlxsw_sp_acl_tcam_vchunk_migrate_all
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trace_mlxsw_sp_acl_tcam_vregion_rehash_rollback_failed
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trace_mlxsw_sp_acl_tcam_vregion_migrate_end
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to rollback during vregion migration fail\n"

	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_migrate
.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_migrate
_mlxsw_sp_acl_tcam_vregion_migrate:     ; @mlxsw_sp_acl_tcam_vregion_migrate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_trace_mlxsw_sp_acl_tcam_vregion_migrate
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_mlxsw_sp_acl_tcam_vchunk_migrate_all
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.1:
	ldp	w1, w0, [x19, #4]
	bl	_swap
	str	xzr, [x23, #8]
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_mlxsw_sp_acl_tcam_vchunk_migrate_all
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_trace_mlxsw_sp_acl_tcam_vregion_rehash_rollback_failed
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	mov	x1, x19
	bl	_trace_mlxsw_sp_acl_tcam_vregion_migrate_end
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to rollback during vregion migration fail\n"

	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_migrate
.subsections_via_symbols
