	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_init_av_by_path
_cm_init_av_by_path:                    ## @cm_init_av_by_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	%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	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_get_cm_port_from_path
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	(%rbx), %r15d
	movl	8(%r12), %edi
	callq	_be16_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rcx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ib_find_cached_pkey
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 16(%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdx
	movq	%r13, %r8
	callq	_ib_init_ah_attr_from_path
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	incq	%rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_add_cm_id_to_port_list
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdi
	callq	_rdma_destroy_ah_attr
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rdma_move_ah_attr
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cm_init_av_by_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_init_av_by_path
_cm_init_av_by_path:                    ; @cm_init_av_by_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	bl	_get_cm_port_from_path
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x26, [x0, #8]
	ldr	w24, [x26]
	ldr	w25, [x0]
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	mov	x2, x0
	add	x3, x19, #24
	mov	x0, x24
	mov	x1, x25
	bl	_ib_find_cached_pkey
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.2:
	str	x22, [x19, #16]
	ldr	w0, [x26]
	ldr	w1, [x22]
	add	x3, sp, #8
	mov	x2, x21
	mov	x4, x23
	bl	_ib_init_ah_attr_from_path
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_cm_id_to_port_list
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.4:
	add	x0, sp, #8
	bl	_rdma_destroy_ah_attr
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_rdma_move_ah_attr
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cm_init_av_by_path
.subsections_via_symbols
