	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_unmap_ring_from_vector
_hclgevf_unmap_ring_from_vector:        ## @hclgevf_unmap_ring_from_vector
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_hclgevf_ae_get_hdev
	movq	%rax, %rbx
	movq	_HCLGEVF_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_hclgevf_get_vector_index
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_hclgevf_bind_ring_to_vector
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %r13d
	jmp	LBB0_5
LBB0_2:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_STATE_RST_HANDLING,4,2 ## @HCLGEVF_STATE_RST_HANDLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get vector index fail. ret =%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unmap ring from vector fail. vector=%d, ret =%d\n"

	.no_dead_strip	_hclgevf_unmap_ring_from_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_unmap_ring_from_vector
_hclgevf_unmap_ring_from_vector:        ; @hclgevf_unmap_ring_from_vector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_hclgevf_ae_get_hdev
	mov	x22, x0
Lloh0:
	adrp	x8, _HCLGEVF_STATE_RST_HANDLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGEVF_STATE_RST_HANDLING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x0, x22
	mov	x1, x19
	bl	_hclgevf_get_vector_index
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	mov	x3, x21
	bl	_hclgevf_bind_ring_to_vector
	cbz	w0, LBB0_1
; %bb.5:
	mov	x21, x0
	ldr	x0, [x20]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	x19, x21
	b	LBB0_2
LBB0_6:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_STATE_RST_HANDLING,4,2 ; @HCLGEVF_STATE_RST_HANDLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get vector index fail. ret =%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unmap ring from vector fail. vector=%d, ret =%d\n"

	.no_dead_strip	_hclgevf_unmap_ring_from_vector
.subsections_via_symbols
