	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_sidr_rep_handler
_cma_sidr_rep_handler:                  ## @cma_sidr_rep_handler
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r12
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_RDMA_CM_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	(%r15), %esi
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_13
## %bb.3:
	movq	_RDMA_CM_EVENT_UNREACHABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	jmp	LBB0_11
LBB0_4:
	movl	16(%r15), %eax
	movl	%eax, -40(%rbp)
	movq	_IB_CM_SIDR_REP_PRIVATE_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r15), %eax
	movq	_IB_SIDR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.7:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_cma_set_qkey
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	movl	32(%r12), %edi
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	leaq	-48(%rbp), %rcx
	callq	_ib_init_ah_from_path
	testl	%eax, %eax
	je	LBB0_10
LBB0_8:
	movq	_RDMA_CM_EVENT_ADDR_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_14
LBB0_5:
	movq	_RDMA_CM_EVENT_UNREACHABLE@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)
	movl	%eax, -72(%rbp)
LBB0_11:
	leaq	16(%r12), %r15
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	*16(%r12)
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	movq	$0, 40(%r12)
	movq	_RDMA_CM_DESTROYING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cma_exch
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_rdma_destroy_id
	jmp	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	12(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	_RDMA_CM_EVENT_ESTABLISHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -72(%rbp)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CM_CONNECT,8,3            ## @RDMA_CM_CONNECT
	.comm	_RDMA_CM_EVENT_UNREACHABLE,8,3  ## @RDMA_CM_EVENT_UNREACHABLE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_IB_CM_SIDR_REP_PRIVATE_DATA_SIZE,4,2 ## @IB_CM_SIDR_REP_PRIVATE_DATA_SIZE
	.comm	_IB_SIDR_SUCCESS,4,2            ## @IB_SIDR_SUCCESS
	.comm	_RDMA_CM_EVENT_ADDR_ERROR,8,3   ## @RDMA_CM_EVENT_ADDR_ERROR
	.comm	_RDMA_CM_EVENT_ESTABLISHED,8,3  ## @RDMA_CM_EVENT_ESTABLISHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDMA CMA: unexpected IB CM event: %d\n"

	.comm	_RDMA_CM_DESTROYING,4,2         ## @RDMA_CM_DESTROYING
	.no_dead_strip	_cma_sidr_rep_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_sidr_rep_handler
_cma_sidr_rep_handler:                  ; @cma_sidr_rep_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	ldr	x20, [x0]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RDMA_CM_CONNECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_CM_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w1, [x21]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _RDMA_CM_EVENT_UNREACHABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_CM_EVENT_UNREACHABLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_10
LBB0_4:
	ldr	w8, [x21, #16]
Lloh9:
	adrp	x9, _IB_CM_SIDR_REP_PRIVATE_DATA_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_CM_SIDR_REP_PRIVATE_DATA_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
	ldr	w8, [x21, #4]
Lloh12:
	adrp	x9, _IB_SIDR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_SIDR_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.5:
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_cma_set_qkey
	cbnz	w0, LBB0_7
; %bb.6:
	ldp	w1, w0, [x20, #28]
	ldr	w2, [x20, #24]
	add	x8, sp, #8
	add	x3, x8, #24
	bl	_ib_init_ah_from_path
	cbz	w0, LBB0_15
LBB0_7:
Lloh15:
	adrp	x8, _RDMA_CM_EVENT_ADDR_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_CM_EVENT_ADDR_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	str	w0, [sp, #8]
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_9:
Lloh20:
	adrp	x9, _RDMA_CM_EVENT_UNREACHABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RDMA_CM_EVENT_UNREACHABLE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	str	x9, [sp, #16]
LBB0_10:
	str	w8, [sp, #8]
LBB0_11:
	mov	x21, x20
	ldr	x8, [x21, #16]!
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
	str	xzr, [x20, #40]
Lloh23:
	adrp	x8, _RDMA_CM_DESTROYING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RDMA_CM_DESTROYING@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cma_exch
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	bl	_rdma_destroy_id
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w22, #0
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	d0, [x21, #8]
	str	d0, [sp, #24]
Lloh26:
	adrp	x8, _RDMA_CM_EVENT_ESTABLISHED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RDMA_CM_EVENT_ESTABLISHED@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	str	wzr, [sp, #8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CM_CONNECT,8,3            ; @RDMA_CM_CONNECT
	.comm	_RDMA_CM_EVENT_UNREACHABLE,8,3  ; @RDMA_CM_EVENT_UNREACHABLE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_IB_CM_SIDR_REP_PRIVATE_DATA_SIZE,4,2 ; @IB_CM_SIDR_REP_PRIVATE_DATA_SIZE
	.comm	_IB_SIDR_SUCCESS,4,2            ; @IB_SIDR_SUCCESS
	.comm	_RDMA_CM_EVENT_ADDR_ERROR,8,3   ; @RDMA_CM_EVENT_ADDR_ERROR
	.comm	_RDMA_CM_EVENT_ESTABLISHED,8,3  ; @RDMA_CM_EVENT_ESTABLISHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDMA CMA: unexpected IB CM event: %d\n"

	.comm	_RDMA_CM_DESTROYING,4,2         ; @RDMA_CM_DESTROYING
	.no_dead_strip	_cma_sidr_rep_handler
.subsections_via_symbols
