	.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_rehash
_mlxsw_sp_acl_tcam_vregion_rehash:      ## @mlxsw_sp_acl_tcam_vregion_rehash
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_mlxsw_sp_acl_tcam_vregion_rehash_in_progress
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_mlxsw_sp_acl_tcam_vregion_migrate
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_6:
	cmpl	$0, (%r15)
	js	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_acl_tcam_vregion_rehash_end ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_mlxsw_sp_acl_tcam_vregion_rehash_start
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed get rehash hints\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to migrate vregion\n"

	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_rehash
.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_rehash
_mlxsw_sp_acl_tcam_vregion_rehash:      ; @mlxsw_sp_acl_tcam_vregion_rehash
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_mlxsw_sp_acl_tcam_vregion_rehash_in_progress
	cbz	w0, LBB0_5
LBB0_1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	mov	x3, x21
	bl	_mlxsw_sp_acl_tcam_vregion_migrate
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, 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_tcam_vregion_rehash_end
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_mlxsw_sp_acl_tcam_vregion_rehash_start
	cbz	w0, LBB0_1
; %bb.6:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
LBB0_7:
	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_8:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed get rehash hints\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to migrate vregion\n"

	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_rehash
.subsections_via_symbols
