	.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_down
_hns_roce_hw_v2_reset_notify_down:      ## @hns_roce_hw_v2_reset_notify_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_HNS_ROCE_STATE_INITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_HNS_ROCE_STATE_RST_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_HNS_ROCE_RST_DIRECT_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_clear_bit
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$1, (%rax)
	movl	$1, 8(%rax)
	movq	_IB_EVENT_DEVICE_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -16(%rbp)
	addq	$12, %rax
	movq	%rax, -24(%rbp)
	movl	$1, -32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_ib_dispatch_event
	jmp	LBB0_4
LBB0_1:
	movq	_HNS_ROCE_RST_DIRECT_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_STATE_INITED,8,3      ## @HNS_ROCE_STATE_INITED
	.comm	_HNS_ROCE_RST_DIRECT_RETURN,4,2 ## @HNS_ROCE_RST_DIRECT_RETURN
	.comm	_HNS_ROCE_STATE_RST_DOWN,4,2    ## @HNS_ROCE_STATE_RST_DOWN
	.comm	_IB_EVENT_DEVICE_FATAL,4,2      ## @IB_EVENT_DEVICE_FATAL
	.no_dead_strip	_hns_roce_hw_v2_reset_notify_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hns_roce_hw_v2_reset_notify_down
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hns_roce_hw_v2_reset_notify_down:      ; @hns_roce_hw_v2_reset_notify_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _HNS_ROCE_STATE_INITED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_ROCE_STATE_INITED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _HNS_ROCE_STATE_RST_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_ROCE_STATE_RST_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh6:
	adrp	x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_clear_bit
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w9, #1
Lloh11:
	adrp	x10, _IB_EVENT_DEVICE_FATAL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IB_EVENT_DEVICE_FATAL@GOTPAGEOFF]
	str	w9, [x8, #8]
Lloh13:
	ldr	w10, [x10]
	str	w10, [sp, #24]
	add	x8, x8, #12
	str	x8, [sp, #16]
	str	w9, [sp, #8]
	add	x0, sp, #8
	bl	_ib_dispatch_event
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HNS_ROCE_RST_DIRECT_RETURN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_set_bit
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_STATE_INITED,8,3      ; @HNS_ROCE_STATE_INITED
	.comm	_HNS_ROCE_RST_DIRECT_RETURN,4,2 ; @HNS_ROCE_RST_DIRECT_RETURN
	.comm	_HNS_ROCE_STATE_RST_DOWN,4,2    ; @HNS_ROCE_STATE_RST_DOWN
	.comm	_IB_EVENT_DEVICE_FATAL,4,2      ; @IB_EVENT_DEVICE_FATAL
	.no_dead_strip	_hns_roce_hw_v2_reset_notify_down
.subsections_via_symbols
