	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_format_path_lid_from_req
_cm_format_path_lid_from_req:           ## @cm_format_path_lid_from_req
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_SA_PATH_REC_TYPE_OPA@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	leaq	20(%r15), %rdi
	callq	_opa_get_lid_from_gid
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sa_path_set_dlid
	leaq	16(%r15), %rdi
	callq	_opa_get_lid_from_gid
	jmp	LBB0_3
LBB0_1:
	movl	28(%r15), %edi
	callq	_ntohs
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sa_path_set_dlid
	movl	24(%r15), %edi
	callq	_ntohs
LBB0_3:
	movl	%eax, %esi
	movq	%rbx, %rdi
	callq	_sa_path_set_slid
	movq	%r15, %rdi
	callq	_cm_req_has_alt_path
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.6:
	leaq	4(%r15), %rdi
	callq	_opa_get_lid_from_gid
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sa_path_set_dlid
	movq	%r15, %rdi
	callq	_opa_get_lid_from_gid
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	12(%r15), %edi
	callq	_ntohs
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sa_path_set_dlid
	movl	8(%r15), %edi
	callq	_ntohs
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sa_path_set_slid               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SA_PATH_REC_TYPE_OPA,8,3       ## @SA_PATH_REC_TYPE_OPA
	.no_dead_strip	_cm_format_path_lid_from_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_format_path_lid_from_req
_cm_format_path_lid_from_req:           ; @cm_format_path_lid_from_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _SA_PATH_REC_TYPE_OPA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SA_PATH_REC_TYPE_OPA@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #20
	bl	_opa_get_lid_from_gid
	mov	x1, x0
	mov	x0, x21
	bl	_sa_path_set_dlid
	add	x0, x20, #16
	bl	_opa_get_lid_from_gid
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #28]
	bl	_ntohs
	mov	x1, x0
	mov	x0, x21
	bl	_sa_path_set_dlid
	ldr	w0, [x20, #24]
	bl	_ntohs
LBB0_3:
	mov	x1, x0
	mov	x0, x21
	bl	_sa_path_set_slid
	mov	x0, x20
	bl	_cm_req_has_alt_path
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	add	x0, x20, #4
	bl	_opa_get_lid_from_gid
	mov	x1, x0
	mov	x0, x19
	bl	_sa_path_set_dlid
	mov	x0, x20
	bl	_opa_get_lid_from_gid
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x20, #12]
	bl	_ntohs
	mov	x1, x0
	mov	x0, x19
	bl	_sa_path_set_dlid
	ldr	w0, [x20, #8]
	bl	_ntohs
LBB0_8:
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sa_path_set_slid
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SA_PATH_REC_TYPE_OPA,8,3       ; @SA_PATH_REC_TYPE_OPA
	.no_dead_strip	_cm_format_path_lid_from_req
.subsections_via_symbols
