	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_set_ib_path
_ucma_set_ib_path:                      ## @ucma_set_ib_path
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testb	$7, %dl
	je	LBB0_1
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_IB_PATH_GMP@GOTPCREL(%rip), %rcx
	movq	_IB_PATH_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_IB_PATH_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%r12,%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	movq	(%r14), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.7:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_SA_PATH_REC_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	4(%r12,%rbx), %edi
	movq	%r15, %rsi
	callq	_ib_sa_unpack_path
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_rdma_cap_opa_ah
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %rbx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sa_convert_path_ib_to_opa
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_10
LBB0_9:
	movq	(%r14), %rdi
	leaq	-40(%rbp), %rsi
LBB0_10:
	callq	_rdma_set_ib_path
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_ucma_event_handler
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_PATH_GMP,4,2                ## @IB_PATH_GMP
	.comm	_IB_PATH_PRIMARY,4,2            ## @IB_PATH_PRIMARY
	.comm	_IB_PATH_BIDIRECTIONAL,4,2      ## @IB_PATH_BIDIRECTIONAL
	.comm	_SA_PATH_REC_TYPE_IB,4,2        ## @SA_PATH_REC_TYPE_IB
	.comm	_RDMA_CM_EVENT_ROUTE_RESOLVED,4,2 ## @RDMA_CM_EVENT_ROUTE_RESOLVED
	.no_dead_strip	_ucma_set_ib_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_set_ib_path
_ucma_set_ib_path:                      ; @ucma_set_ib_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tst	x2, #0x7
	b.eq	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	cbz	x2, LBB0_1
; %bb.4:
	mov	x19, x0
Lloh3:
	adrp	x8, _IB_PATH_GMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PATH_GMP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IB_PATH_PRIMARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_PATH_PRIMARY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IB_PATH_BIDIRECTIONAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_PATH_BIDIRECTIONAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	add	x20, x1, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x20, #-4]
	cmp	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #8
	subs	x2, x2, #8
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_1
; %bb.8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh12:
	adrp	x8, _SA_PATH_REC_TYPE_IB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SA_PATH_REC_TYPE_IB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_ib_sa_unpack_path
	ldr	x8, [x19]
	ldp	w1, w0, [x8]
	bl	_rdma_cap_opa_ah
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, sp
	add	x1, sp, #8
	bl	_sa_convert_path_ib_to_opa
	ldr	x0, [x19]
	mov	x1, sp
	bl	_rdma_set_ib_path
	cbnz	w0, LBB0_2
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_rdma_set_ib_path
	cbnz	w0, LBB0_2
LBB0_11:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh15:
	adrp	x8, _RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x0, [x19]
	mov	x1, sp
	bl	_ucma_event_handler
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_PATH_GMP,4,2                ; @IB_PATH_GMP
	.comm	_IB_PATH_PRIMARY,4,2            ; @IB_PATH_PRIMARY
	.comm	_IB_PATH_BIDIRECTIONAL,4,2      ; @IB_PATH_BIDIRECTIONAL
	.comm	_SA_PATH_REC_TYPE_IB,4,2        ; @SA_PATH_REC_TYPE_IB
	.comm	_RDMA_CM_EVENT_ROUTE_RESOLVED,4,2 ; @RDMA_CM_EVENT_ROUTE_RESOLVED
	.no_dead_strip	_ucma_set_ib_path
.subsections_via_symbols
