	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_create_lp_qp
_hns_roce_v1_create_lp_qp:              ## @hns_roce_v1_create_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_HNS_ROCE_MIN_WQE_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hns_roce_create_qp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_to_hr_qp
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.comm	_IB_SIGNAL_ALL_WR,4,2           ## @IB_SIGNAL_ALL_WR
	.comm	_HNS_ROCE_MIN_WQE_NUM,8,3       ## @HNS_ROCE_MIN_WQE_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Create loop qp for mr free failed!"

	.no_dead_strip	_hns_roce_v1_create_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_create_lp_qp
_hns_roce_v1_create_lp_qp:              ; @hns_roce_v1_create_lp_qp
	.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	x20, x1
	ldr	x19, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh6:
	adrp	x8, _HNS_ROCE_MIN_WQE_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_ROCE_MIN_WQE_NUM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_hns_roce_create_qp
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_to_hr_qp
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.comm	_IB_SIGNAL_ALL_WR,4,2           ; @IB_SIGNAL_ALL_WR
	.comm	_HNS_ROCE_MIN_WQE_NUM,8,3       ; @HNS_ROCE_MIN_WQE_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Create loop qp for mr free failed!"

	.no_dead_strip	_hns_roce_v1_create_lp_qp
.subsections_via_symbols
