	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_modify_qp_rtr
_cma_modify_qp_rtr:                     ## @cma_modify_qp_rtr
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_mutex_lock
	cmpl	$0, 16(%r12)
	je	LBB0_1
## %bb.2:
	leaq	8(%r12), %r15
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_rdma_init_qp_attr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	16(%r12), %edi
	movl	-36(%rbp), %edx
	leaq	-48(%rbp), %rsi
	callq	_ib_modify_qp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_rdma_init_qp_attr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	8(%r12), %rdi
	movl	20(%r12), %esi
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_ib_query_gid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	8(%r12), %rax
	setne	%dil
	callq	_BUG_ON
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
LBB0_8:
	movl	16(%r12), %edi
	movl	-36(%rbp), %edx
	leaq	-48(%rbp), %rsi
	callq	_ib_modify_qp
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.no_dead_strip	_cma_modify_qp_rtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_modify_qp_rtr
_cma_modify_qp_rtr:                     ; @cma_modify_qp_rtr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.1:
	add	x21, x19, #8
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
	mov	x0, x21
	bl	_rdma_init_qp_attr
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	bl	_ib_modify_qp
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _IB_QPS_RTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPS_RTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x21
	bl	_rdma_init_qp_attr
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #20]
	ldr	w2, [sp, #20]
	add	x3, sp, #8
	mov	x4, #0
	bl	_ib_query_gid
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	cbz	x20, LBB0_7
; %bb.6:
	ldr	w8, [x20]
	str	w8, [sp, #16]
LBB0_7:
	ldr	w0, [x19, #16]
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	bl	_ib_modify_qp
	mov	x22, x0
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
	.no_dead_strip	_cma_modify_qp_rtr
.subsections_via_symbols
