	.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_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_5
## %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_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_6:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	4(%r12,%rbx), %edi
	movq	%r15, %rsi
	callq	_ib_sa_unpack_path
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_rdma_set_ib_paths
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ucma_event_handler
	jmp	LBB0_8
	.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	_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:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_ib_sa_unpack_path
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_rdma_set_ib_paths
	cbnz	w0, LBB0_2
; %bb.8:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh12:
	adrp	x8, _RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_CM_EVENT_ROUTE_RESOLVED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	w0, [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
	.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	_RDMA_CM_EVENT_ROUTE_RESOLVED,4,2 ; @RDMA_CM_EVENT_ROUTE_RESOLVED
	.no_dead_strip	_ucma_set_ib_path
.subsections_via_symbols
