	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_init_ud_qp
_cma_init_ud_qp:                        ## @cma_init_ud_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_rdma_init_qp_attr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-36(%rbp), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_IB_QP_SQ_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ib_modify_qp
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_INIT,4,2                ## @IB_QPS_INIT
	.comm	_IB_QPS_RTR,4,2                 ## @IB_QPS_RTR
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.comm	_IB_QP_SQ_PSN,4,2               ## @IB_QP_SQ_PSN
	.no_dead_strip	_cma_init_ud_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_init_ud_qp
_cma_init_ud_qp:                        ; @cma_init_ud_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	x19, x1
Lloh0:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_rdma_init_qp_attr
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	mov	x0, x19
	bl	_ib_modify_qp
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _IB_QPS_RTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPS_RTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh6:
	adrp	x20, _IB_QP_STATE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x1, sp, #16
	mov	x0, x19
	bl	_ib_modify_qp
	cbnz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _IB_QP_SQ_PSN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_QP_SQ_PSN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #16
	mov	x0, x19
	bl	_ib_modify_qp
LBB0_4:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.comm	_IB_QP_SQ_PSN,4,2               ; @IB_QP_SQ_PSN
	.no_dead_strip	_cma_init_ud_qp
.subsections_via_symbols
