	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_resolve_ib_udp
_cma_resolve_ib_udp:                    ## @cma_resolve_ib_udp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	-72(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_cma_user_data_offset
	movslq	%eax, %rbx
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	%rdi, -72(%rbp)
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.12:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movl	8(%r12), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	addq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_memcpy
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cma_format_hdr
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r14, -48(%rbp)
LBB0_10:
	movl	12(%r15), %edi
	movq	_cma_sidr_rep_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ib_create_cm_id
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_14:
	leaq	8(%r15), %r12
	movq	%rbx, (%r15)
	movl	8(%r15), %eax
	movl	%eax, -52(%rbp)
	movq	%r15, %rdi
	callq	_cma_dst_addr
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_rdma_get_service_id
	movl	%eax, -56(%rbp)
	movq	_CMA_CM_RESPONSE_TIMEOUT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$-8, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, -64(%rbp)
	movq	_CMA_MAX_CM_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r15), %rdi
	leaq	-72(%rbp), %rsi
	callq	_ib_send_cm_sidr_req
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	callq	_ib_destroy_cm_id
	movq	$0, (%r15)
	jmp	LBB0_17
LBB0_15:
	xorl	%r13d, %r13d
LBB0_17:
	movq	%r14, %rdi
	callq	_kfree
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %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_sidr_rep_handler,4,2       ## @cma_sidr_rep_handler
	.comm	_CMA_CM_RESPONSE_TIMEOUT,4,2    ## @CMA_CM_RESPONSE_TIMEOUT
	.comm	_CMA_MAX_CM_RETRIES,4,2         ## @CMA_MAX_CM_RETRIES
	.no_dead_strip	_cma_resolve_ib_udp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_resolve_ib_udp
_cma_resolve_ib_udp:                    ; @cma_resolve_ib_udp
	.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	x21, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	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]
	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	w21, w8
	b	LBB0_18
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	w1, [x21, #8]
	cbz	w1, LBB0_10
; %bb.8:
	ldr	x2, [x21]
	cbz	x2, LBB0_10
; %bb.9:
	add	x0, x20, x22
	bl	_memcpy
LBB0_10:
	cbz	x20, LBB0_13
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_cma_format_hdr
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.12:
	str	x20, [sp, #24]
LBB0_13:
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x8, _cma_sidr_rep_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cma_sidr_rep_handler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ib_create_cm_id
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_17
LBB0_15:
	str	x21, [x19]
	mov	x21, x19
	ldr	w8, [x21, #8]!
	str	w8, [sp, #20]
	mov	x0, x19
	bl	_cma_dst_addr
	mov	x1, x0
	mov	x0, x21
	bl	_rdma_get_service_id
	str	w0, [sp, #16]
Lloh10:
	adrp	x8, _CMA_CM_RESPONSE_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMA_CM_RESPONSE_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	w8, w8, #8
	mov	w9, #1
	lsl	w8, w9, w8
Lloh13:
	adrp	x9, _CMA_MAX_CM_RETRIES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CMA_MAX_CM_RETRIES@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	ldr	x0, [x19]
	mov	x1, sp
	bl	_ib_send_cm_sidr_req
	mov	x21, x0
	cbz	w0, LBB0_17
; %bb.16:
	ldr	x0, [x19]
	bl	_ib_destroy_cm_id
	str	xzr, [x19]
LBB0_17:
	mov	x0, x20
	bl	_kfree
LBB0_18:
	mov	x0, x21
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cma_sidr_rep_handler,4,2       ; @cma_sidr_rep_handler
	.comm	_CMA_CM_RESPONSE_TIMEOUT,4,2    ; @CMA_CM_RESPONSE_TIMEOUT
	.comm	_CMA_MAX_CM_RETRIES,4,2         ; @CMA_MAX_CM_RETRIES
	.no_dead_strip	_cma_resolve_ib_udp
.subsections_via_symbols
