	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_recreate_lp_qp
_hns_roce_v1_recreate_lp_qp:            ## @hns_roce_v1_recreate_lp_qp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	movq	_HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	addq	$4, %r13
	movq	_hns_roce_v1_recreate_lp_qp_work_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_WORK
	movq	%r12, 16(%r15)
	leaq	-48(%rbp), %rdi
	movq	%rdi, 8(%r15)
	movl	$1, (%r15)
	callq	_init_completion
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_queue_work
	testq	%rbx, %rbx
	jle	LBB0_7
## %bb.3:
	leaq	-48(%rbp), %r12
	movq	_HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_try_wait_for_completion
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	callq	_msleep
	subq	(%r14), %rbx
	jg	LBB0_4
LBB0_7:
	movl	$0, (%r15)
	leaq	-48(%rbp), %rdi
	callq	_try_wait_for_completion
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS,8,3 ## @HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hns_roce_v1_recreate_lp_qp_work_fn,4,2 ## @hns_roce_v1_recreate_lp_qp_work_fn
	.comm	_HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE,8,3 ## @HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recreate lp qp failed 20s timeout and return failed!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_hns_roce_v1_recreate_lp_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v1_recreate_lp_qp
_hns_roce_v1_recreate_lp_qp:            ; @hns_roce_v1_recreate_lp_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
Lloh0:
	adrp	x8, _HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldp	x24, x19, [x0, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	add	x22, x0, #4
Lloh6:
	adrp	x8, _hns_roce_v1_recreate_lp_qp_work_fn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hns_roce_v1_recreate_lp_qp_work_fn@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_WORK
	add	x8, sp, #8
	stp	x8, x21, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	add	x0, sp, #8
	bl	_init_completion
	ldr	w0, [x24]
	mov	x1, x22
	bl	_queue_work
	cmp	x23, #1
	b.lt	LBB0_5
; %bb.2:
Lloh9:
	adrp	x21, _HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_try_wait_for_completion
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	bl	_msleep
	ldr	x8, [x21]
	sub	x23, x23, x8
	cmp	x23, #0
	b.gt	LBB0_3
LBB0_5:
	str	wzr, [x20]
	add	x0, sp, #8
	bl	_try_wait_for_completion
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_10
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS,8,3 ; @HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hns_roce_v1_recreate_lp_qp_work_fn,4,2 ; @hns_roce_v1_recreate_lp_qp_work_fn
	.comm	_HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE,8,3 ; @HNS_ROCE_V1_RECREATE_LP_QP_WAIT_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recreate lp qp failed 20s timeout and return failed!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_hns_roce_v1_recreate_lp_qp
.subsections_via_symbols
