	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_hw_v2_reset_notify_init
_hns_roce_hw_v2_reset_notify_init:      ## @hns_roce_hw_v2_reset_notify_init
	.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	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	_HNS_ROCE_RST_DIRECT_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HNS_ROCE_STATE_RST_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_2:
	movq	_HNS_ROCE_STATE_RST_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	___hns_roce_hw_v2_init_instance
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	$0, 16(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HNS_ROCE_STATE_RST_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_RST_DIRECT_RETURN,4,2 ## @HNS_ROCE_RST_DIRECT_RETURN
	.comm	_HNS_ROCE_STATE_RST_INITED,8,3  ## @HNS_ROCE_STATE_RST_INITED
	.comm	_HNS_ROCE_STATE_RST_INIT,8,3    ## @HNS_ROCE_STATE_RST_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In reset process RoCE client reinit.\n"

L_.str.1:                               ## @.str.1
	.asciz	"In reset process RoCE reinit failed %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reset done, RoCE client reinit finished.\n"

	.no_dead_strip	_hns_roce_hw_v2_reset_notify_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_hw_v2_reset_notify_init
_hns_roce_hw_v2_reset_notify_init:      ; @hns_roce_hw_v2_reset_notify_init
	.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	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
Lloh3:
	adrp	x8, _HNS_ROCE_STATE_RST_INITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_ROCE_STATE_RST_INITED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _HNS_ROCE_STATE_RST_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_ROCE_STATE_RST_INIT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x0, [x20, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x20
	bl	___hns_roce_hw_v2_init_instance
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _HNS_ROCE_STATE_RST_INITED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HNS_ROCE_STATE_RST_INITED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_RST_DIRECT_RETURN,4,2 ; @HNS_ROCE_RST_DIRECT_RETURN
	.comm	_HNS_ROCE_STATE_RST_INITED,8,3  ; @HNS_ROCE_STATE_RST_INITED
	.comm	_HNS_ROCE_STATE_RST_INIT,8,3    ; @HNS_ROCE_STATE_RST_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In reset process RoCE client reinit.\n"

l_.str.1:                               ; @.str.1
	.asciz	"In reset process RoCE reinit failed %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reset done, RoCE client reinit finished.\n"

	.no_dead_strip	_hns_roce_hw_v2_reset_notify_init
.subsections_via_symbols
