	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_init_ud_qp3
_ucma_init_ud_qp3:                      ## @ucma_init_ud_qp3
	.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, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	-20(%rbp), %rcx
	callq	_ucma_find_pkey
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, -24(%rbp)
	movq	_IBV_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_IBV_QP_STATE@GOTPCREL(%rip), %rbx
	movq	_IBV_QP_QKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	_IBV_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_RDMA_UDP_QKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_IBV_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ibv_modify_qp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_IBV_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ibv_modify_qp
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movl	%eax, %edi
	callq	_ERR
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_IBV_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_IBV_QP_SQ_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ibv_modify_qp
	movl	%eax, %edi
	callq	_rdma_seterrno
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_QPS_INIT,4,2               ## @IBV_QPS_INIT
	.comm	_RDMA_UDP_QKEY,4,2              ## @RDMA_UDP_QKEY
	.comm	_IBV_QP_STATE,4,2               ## @IBV_QP_STATE
	.comm	_IBV_QP_QKEY,4,2                ## @IBV_QP_QKEY
	.comm	_IBV_QP_PKEY_INDEX,4,2          ## @IBV_QP_PKEY_INDEX
	.comm	_IBV_QP_PORT,4,2                ## @IBV_QP_PORT
	.comm	_IBV_QPS_RTR,4,2                ## @IBV_QPS_RTR
	.comm	_IBV_QPS_RTS,4,2                ## @IBV_QPS_RTS
	.comm	_IBV_QP_SQ_PSN,4,2              ## @IBV_QP_SQ_PSN
	.no_dead_strip	_ucma_init_ud_qp3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_init_ud_qp3
_ucma_init_ud_qp3:                      ; @ucma_init_ud_qp3
	.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
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldp	w1, w2, [x20]
	add	x8, sp, #8
	add	x3, x8, #20
	bl	_ucma_find_pkey
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	str	w8, [sp, #24]
Lloh0:
	adrp	x8, _IBV_QPS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_QPS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RDMA_UDP_QKEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RDMA_UDP_QKEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh6:
	adrp	x20, _IBV_QP_STATE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IBV_QP_STATE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _IBV_QP_QKEY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IBV_QP_QKEY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _IBV_QP_PKEY_INDEX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IBV_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _IBV_QP_PORT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IBV_QP_PORT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibv_modify_qp
	cbnz	w0, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _IBV_QPS_RTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IBV_QPS_RTR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibv_modify_qp
	cbz	w0, LBB0_5
LBB0_3:
	bl	_ERR
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
LBB0_5:
Lloh20:
	adrp	x8, _IBV_QPS_RTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IBV_QPS_RTS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w8, [x20]
Lloh23:
	adrp	x9, _IBV_QP_SQ_PSN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IBV_QP_SQ_PSN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibv_modify_qp
	bl	_rdma_seterrno
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_QPS_INIT,4,2               ; @IBV_QPS_INIT
	.comm	_RDMA_UDP_QKEY,4,2              ; @RDMA_UDP_QKEY
	.comm	_IBV_QP_STATE,4,2               ; @IBV_QP_STATE
	.comm	_IBV_QP_QKEY,4,2                ; @IBV_QP_QKEY
	.comm	_IBV_QP_PKEY_INDEX,4,2          ; @IBV_QP_PKEY_INDEX
	.comm	_IBV_QP_PORT,4,2                ; @IBV_QP_PORT
	.comm	_IBV_QPS_RTR,4,2                ; @IBV_QPS_RTR
	.comm	_IBV_QPS_RTS,4,2                ; @IBV_QPS_RTS
	.comm	_IBV_QP_SQ_PSN,4,2              ; @IBV_QP_SQ_PSN
	.no_dead_strip	_ucma_init_ud_qp3
.subsections_via_symbols
