	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_connect_ib
_cma_connect_ib:                        ## @cma_connect_ib
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	-144(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_cma_user_data_offset
	movslq	%eax, %rbx
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	%rdi, -144(%rbp)
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.9:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movl	28(%r13), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	addq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_memcpy
LBB0_7:
	movl	48(%r15), %edi
	movq	_cma_ib_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ib_create_cm_id
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r14, %rbx
	movq	%r12, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_11:
	movq	%r12, (%r15)
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cma_format_hdr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movq	%rbx, %r14
	movq	%rbx, -48(%rbp)
LBB0_14:
	movq	%r14, %rbx
	leaq	24(%r15), %r14
	movq	40(%r15), %rax
	movq	%rax, -56(%rbp)
	cmpl	$2, 32(%r15)
	jne	LBB0_16
## %bb.15:
	addq	$4, %rax
	movq	%rax, -64(%rbp)
LBB0_16:
	movq	%r15, %rdi
	callq	_cma_dst_addr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rdma_get_service_id
	movl	%eax, -72(%rbp)
	movl	56(%r15), %eax
	movl	%eax, -76(%rbp)
	movl	24(%r15), %eax
	movl	%eax, -80(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -84(%rbp)
	movl	24(%r13), %eax
	movl	%eax, -88(%rbp)
	movl	20(%r13), %eax
	movl	%eax, -92(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -96(%rbp)
	movq	_u8@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	12(%r13), %edx
	movl	$7, %esi
	callq	_min_t
	movq	%rax, -104(%rbp)
	movl	(%r14), %edi
	movl	8(%r13), %edx
	movl	$7, %esi
	callq	_min_t
	movq	%rax, -112(%rbp)
	movq	_CMA_CM_RESPONSE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movq	%rax, -128(%rbp)
	movq	_CMA_MAX_CM_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	setne	%al
	movl	%eax, -136(%rbp)
	movq	(%r15), %rdi
	leaq	-144(%rbp), %rsi
	callq	_ib_send_cm_req
LBB0_17:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_ib_destroy_cm_id
	movq	$0, (%r15)
	jmp	LBB0_21
LBB0_18:
	xorl	%r14d, %r14d
LBB0_21:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_22:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cma_ib_handler,4,2             ## @cma_ib_handler
	.comm	_u8,4,2                         ## @u8
	.comm	_CMA_CM_RESPONSE_TIMEOUT,8,3    ## @CMA_CM_RESPONSE_TIMEOUT
	.comm	_CMA_MAX_CM_RETRIES,4,2         ## @CMA_MAX_CM_RETRIES
	.no_dead_strip	_cma_connect_ib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_connect_ib
_cma_connect_ib:                        ; @cma_connect_ib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	mov	x0, x19
	bl	_cma_user_data_offset
	mov	x8, x0
	sxtw	x22, w8
	ldr	x9, [x21]
	add	x0, x9, x22
	str	x0, [sp, #8]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	w1, [x21, #28]
	cbz	w1, LBB0_10
; %bb.8:
	ldr	x2, [x21]
	cbz	x2, LBB0_10
; %bb.9:
	add	x0, x20, x22
	bl	_memcpy
LBB0_10:
	ldr	w0, [x19, #48]
Lloh7:
	adrp	x8, _cma_ib_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cma_ib_handler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ib_create_cm_id
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x23, x0
	cbnz	w0, LBB0_18
	b	LBB0_20
LBB0_12:
	str	x22, [x19]
	cbz	x20, LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_cma_format_hdr
	mov	x23, x0
	cbnz	w0, LBB0_18
; %bb.14:
	str	x20, [sp, #104]
LBB0_15:
	add	x23, x19, #24
	ldr	x8, [x19, #40]
	str	x8, [sp, #96]
	ldr	w9, [x19, #32]
	cmp	w9, #2
	b.ne	LBB0_17
; %bb.16:
	add	x8, x8, #4
	str	x8, [sp, #88]
LBB0_17:
	mov	x0, x19
	bl	_cma_dst_addr
	mov	x1, x0
	mov	x0, x23
	bl	_rdma_get_service_id
	ldr	w8, [x19, #56]
	ldr	w10, [x19, #24]
	stp	w8, w0, [sp, #76]
	ldr	w8, [x19, #16]
	ldr	w9, [x21, #24]
	stp	w8, w10, [sp, #68]
	str	w9, [sp, #64]
	ldr	d0, [x21, #16]
	str	d0, [sp, #56]
Lloh10:
	adrp	x23, _u8@GOTPAGE
Lloh11:
	ldr	x23, [x23, _u8@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x21, #12]
	mov	w1, #7
	bl	_min_t
	str	x0, [sp, #48]
	ldr	w0, [x23]
	ldr	w2, [x21, #8]
	mov	w1, #7
	bl	_min_t
	str	x0, [sp, #40]
Lloh12:
	adrp	x8, _CMA_CM_RESPONSE_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMA_CM_RESPONSE_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #24]
Lloh15:
	adrp	x8, _CMA_MAX_CM_RETRIES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMA_MAX_CM_RETRIES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldp	x0, x9, [x19]
	cmp	x9, #0
	cset	w9, ne
	stp	w9, w8, [sp, #16]
	add	x1, sp, #8
	bl	_ib_send_cm_req
	mov	x23, x0
	cbz	w0, LBB0_20
LBB0_18:
	mov	x0, x22
	bl	_IS_ERR
	cbnz	x0, LBB0_20
; %bb.19:
	mov	x0, x22
	bl	_ib_destroy_cm_id
	str	xzr, [x19]
LBB0_20:
	mov	x0, x20
	bl	_kfree
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cma_ib_handler,4,2             ; @cma_ib_handler
	.comm	_u8,4,2                         ; @u8
	.comm	_CMA_CM_RESPONSE_TIMEOUT,8,3    ; @CMA_CM_RESPONSE_TIMEOUT
	.comm	_CMA_MAX_CM_RETRIES,4,2         ; @CMA_MAX_CM_RETRIES
	.no_dead_strip	_cma_connect_ib
.subsections_via_symbols
