	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_cmd_hw_resetting
_hns_roce_v2_cmd_hw_resetting:          ## @hns_roce_v2_cmd_hw_resetting
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	$1, (%rbx)
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	sete	%al
	jmp	LBB0_3
LBB0_2:
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
LBB0_3:
	movq	_HNS_ROCE_STATE_RST_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_HNS_ROCE_STATE_INIT@GOTPCREL(%rip), %rdi
	movq	_CMD_RST_PRC_EBUSY@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	%r15, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	_CMD_RST_PRC_SUCCESS@GOTPCREL(%rip), %rdx
LBB0_5:
	cmpq	%r14, %rsi
	cmoveq	%rcx, %rdx
	testb	%al, %al
	cmovneq	%rcx, %rdx
	movl	(%rdx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_STATE_RST_INIT,8,3    ## @HNS_ROCE_STATE_RST_INIT
	.comm	_HNS_ROCE_STATE_INIT,8,3        ## @HNS_ROCE_STATE_INIT
	.comm	_CMD_RST_PRC_EBUSY,4,2          ## @CMD_RST_PRC_EBUSY
	.comm	_CMD_RST_PRC_SUCCESS,4,2        ## @CMD_RST_PRC_SUCCESS
	.no_dead_strip	_hns_roce_v2_cmd_hw_resetting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_cmd_hw_resetting
_hns_roce_v2_cmd_hw_resetting:          ; @hns_roce_v2_cmd_hw_resetting
	.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, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w22, #1
	str	w22, [x21]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x21, #4]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #0
	str	w22, [x21, #4]
LBB0_3:
Lloh0:
	adrp	x9, _HNS_ROCE_STATE_RST_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_ROCE_STATE_RST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x20
	cset	w9, eq
	orr	w8, w8, w9
Lloh3:
	adrp	x9, _HNS_ROCE_STATE_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HNS_ROCE_STATE_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x19
	cset	w9, eq
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _CMD_RST_PRC_EBUSY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_RST_PRC_EBUSY@GOTPAGEOFF]
Lloh8:
	adrp	x10, _CMD_RST_PRC_SUCCESS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CMD_RST_PRC_SUCCESS@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, ne
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_STATE_RST_INIT,8,3    ; @HNS_ROCE_STATE_RST_INIT
	.comm	_HNS_ROCE_STATE_INIT,8,3        ; @HNS_ROCE_STATE_INIT
	.comm	_CMD_RST_PRC_EBUSY,4,2          ; @CMD_RST_PRC_EBUSY
	.comm	_CMD_RST_PRC_SUCCESS,4,2        ; @CMD_RST_PRC_SUCCESS
	.no_dead_strip	_hns_roce_v2_cmd_hw_resetting
.subsections_via_symbols
