	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_portid_str_via      ## -- Begin function ib_resolve_portid_str_via
	.p2align	4, 0x90
_ib_resolve_portid_str_via:             ## @ib_resolve_portid_str_via
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -52(%rbp)
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IB_LID_VALID
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_portid_set                  ## TAILCALL
LBB0_13:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_IBWARN
	jmp	LBB0_14
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoull
	movl	%eax, -48(%rbp)
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_ib_resolve_guid_via
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_11:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_inet_pton
	testl	%eax, %eax
	jle	LBB0_15
## %bb.12:
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_ib_resolve_gid_via
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_8:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r13d
	movq	-48(%rbp), %rbx
	incq	%rbx
	movq	%rbx, -48(%rbp)
	movl	%eax, %edi
	callq	_IB_LID_VALID
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ib_portid_set
	leaq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_ib_resolve_self_via
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	addq	$4, %r12
	movl	-64(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_5
LBB0_4:
	addq	$4, %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
LBB0_5:
	xorl	%ecx, %ecx
	callq	_str2drpath
	testl	%eax, %eax
	jns	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_15:
	movl	$-1, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad dest_type %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_portid_str_via      ; -- Begin function ib_resolve_portid_str_via
	.p2align	2
_ib_resolve_portid_str_via:             ; @ib_resolve_portid_str_via
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x20, x0
	bl	_IB_LID_VALID
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	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
	add	sp, sp, #96
	b	_ib_portid_set
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_IBWARN
	b	LBB0_14
LBB0_5:
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_strtoull
	str	w0, [sp, #24]
	cbz	w0, LBB0_14
; %bb.6:
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	bl	_ib_resolve_guid_via
	b	LBB0_16
LBB0_7:
Lloh4:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x2, sp, #24
	mov	x1, x22
	bl	_inet_pton
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.8:
	ldr	w1, [sp, #24]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	bl	_ib_resolve_gid_via
	b	LBB0_16
LBB0_9:
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #0
	bl	_strtol
	mov	x22, x0
	ldr	x8, [sp, #24]
	add	x21, x8, #1
	str	x21, [sp, #24]
	bl	_IB_LID_VALID
	cbz	w0, LBB0_14
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_ib_portid_set
	add	x0, sp, #8
	add	x1, sp, #4
	mov	w2, #0
	mov	x3, x20
	bl	_ib_resolve_self_via
	tbnz	w0, #31, LBB0_15
; %bb.11:
	add	x0, x19, #4
	ldr	w2, [sp, #8]
	mov	x1, x21
	b	LBB0_13
LBB0_12:
	add	x0, x19, #4
	mov	x1, x22
	mov	w2, #0
LBB0_13:
	mov	w3, #0
	bl	_str2drpath
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #31, LBB0_16
LBB0_14:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_15:
	mov	w0, #-1
LBB0_16:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad dest_type %d"

.subsections_via_symbols
