	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_pci_reset
_hclgevf_pci_reset:                     ## @hclgevf_pci_reset
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r13
	movq	_HNAE3_VF_FULL_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_HCLGEVF_STATE_IRQ_INITED@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_hclgevf_misc_irq_uninit
	movq	%rbx, %rdi
	callq	_hclgevf_uninit_msi
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_3:
	movq	_HCLGEVF_STATE_IRQ_INITED@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	8(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	%r13, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_hclgevf_init_msi
	movq	%r13, %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_hclgevf_misc_irq_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_hclgevf_uninit_msi
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:
	movl	%r13d, %edx
	callq	_dev_err
	movl	%r13d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_VF_FULL_RESET,8,3        ## @HNAE3_VF_FULL_RESET
	.comm	_HCLGEVF_STATE_IRQ_INITED,4,2   ## @HCLGEVF_STATE_IRQ_INITED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed(%d) to init MSI/MSI-X\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed(%d) to init Misc IRQ(vector0)\n"

	.no_dead_strip	_hclgevf_pci_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_pci_reset
_hclgevf_pci_reset:                     ; @hclgevf_pci_reset
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HNAE3_VF_FULL_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE3_VF_FULL_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _HCLGEVF_STATE_IRQ_INITED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HCLGEVF_STATE_IRQ_INITED@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x23]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_hclgevf_misc_irq_uninit
	mov	x0, x20
	bl	_hclgevf_uninit_msi
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
LBB0_3:
	ldr	w0, [x23]
	add	x22, x20, #8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
	mov	w21, #0
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x20
	bl	_hclgevf_init_msi
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_hclgevf_misc_irq_init
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_hclgevf_uninit_msi
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_10:
	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
LBB0_11:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_VF_FULL_RESET,8,3        ; @HNAE3_VF_FULL_RESET
	.comm	_HCLGEVF_STATE_IRQ_INITED,4,2   ; @HCLGEVF_STATE_IRQ_INITED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed(%d) to init MSI/MSI-X\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed(%d) to init Misc IRQ(vector0)\n"

	.no_dead_strip	_hclgevf_pci_reset
.subsections_via_symbols
