	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roce_resolve_route_from_path   ## -- Begin function roce_resolve_route_from_path
	.p2align	4, 0x90
_roce_resolve_route_from_path:          ## @roce_resolve_route_from_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 8(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	16(%rdi), %rsi
	leaq	-32(%rbp), %rdi
	callq	_rdma_gid2ip
	leaq	12(%rbx), %rsi
	leaq	-24(%rbp), %rdi
	callq	_rdma_gid2ip
	movq	-32(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.3:
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.5:
	movq	_init_net@GOTPCREL(%rip), %rax
	movq	%rax, -40(%rbp)
	movq	%r14, -48(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_addr_resolve
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-56(%rbp), %rax
	movq	_RDMA_NETWORK_IPV4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_RDMA_NETWORK_IPV6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	(%rbx), %rax
	movq	_SA_PATH_REC_TYPE_ROCE_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_9:
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_init_net,4,2                   ## @init_net
	.comm	_RDMA_NETWORK_IPV4,8,3          ## @RDMA_NETWORK_IPV4
	.comm	_RDMA_NETWORK_IPV6,8,3          ## @RDMA_NETWORK_IPV6
	.comm	_SA_PATH_REC_TYPE_ROCE_V2,8,3   ## @SA_PATH_REC_TYPE_ROCE_V2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roce_resolve_route_from_path   ; -- Begin function roce_resolve_route_from_path
	.p2align	2
_roce_resolve_route_from_path:          ; @roce_resolve_route_from_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	xzr, [sp, #8]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x1, x0, #16
	sub	x0, x29, #24
	bl	_rdma_gid2ip
	add	x1, x19, #12
	add	x0, sp, #32
	bl	_rdma_gid2ip
	ldur	x8, [x29, #-24]
	ldr	x9, [sp, #32]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	cbz	x20, LBB0_9
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _init_net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_net@GOTPAGEOFF]
	stp	x20, x8, [sp, #16]
	sub	x0, x29, #24
	add	x1, sp, #32
	add	x2, sp, #8
	mov	w3, #0
	mov	w4, #1
	mov	w5, #0
	bl	_addr_resolve
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _RDMA_NETWORK_IPV4@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RDMA_NETWORK_IPV4@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _RDMA_NETWORK_IPV6@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RDMA_NETWORK_IPV6@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SA_PATH_REC_TYPE_ROCE_V2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SA_PATH_REC_TYPE_ROCE_V2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_init_net,4,2                   ; @init_net
	.comm	_RDMA_NETWORK_IPV4,8,3          ; @RDMA_NETWORK_IPV4
	.comm	_RDMA_NETWORK_IPV6,8,3          ; @RDMA_NETWORK_IPV6
	.comm	_SA_PATH_REC_TYPE_ROCE_V2,8,3   ; @SA_PATH_REC_TYPE_ROCE_V2
.subsections_via_symbols
