	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peer                       ## -- Begin function get_peer
	.p2align	4, 0x90
_get_peer:                              ## @get_peer
	.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	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %rsi
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movl	$0, -36(%rbp)
	leaq	-96(%rbp), %rdi
	movl	$48, %edx
	callq	_memcpy
	movl	$1, -96(%rbp)
	movq	-88(%rbp), %rax
	movl	%ebx, 4(%rax)
	movq	_srcport@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-144(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ib_resolve_self_via
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IBEXIT
LBB0_2:
	movq	-112(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$65535, -80(%rbp)               ## imm = 0xFFFF
	movq	_buf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_IB_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r9d
	leaq	-96(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smp_query_via
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_IBEXIT
LBB0_4:
	movl	(%rbx), %edi
	movq	_IB_PORT_LID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_mad_decode_field
	movl	(%rbx), %edi
	movq	_IB_PORT_LOCAL_PORT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_mad_decode_field
	xorl	%eax, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_srcport,4,2                    ## @srcport
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to resolve self portid"

	.comm	_buf,4,2                        ## @buf
	.comm	_IB_ATTR_PORT_INFO,4,2          ## @IB_ATTR_PORT_INFO
L_.str.1:                               ## @.str.1
	.asciz	"get peer portinfo failed - unable to configure lossy\n"

	.comm	_IB_PORT_LID_F,4,2              ## @IB_PORT_LID_F
	.comm	_IB_PORT_LOCAL_PORT_F,4,2       ## @IB_PORT_LOCAL_PORT_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peer                       ; -- Begin function get_peer
	.p2align	2
_get_peer:                              ; @get_peer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x1, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	wzr, [sp, #12]
	add	x0, sp, #16
	mov	w2, #48
	bl	_memcpy
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x8, [sp, #24]
	str	w21, [x8, #4]
Lloh0:
	adrp	x22, _srcport@GOTPAGE
Lloh1:
	ldr	x22, [x22, _srcport@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x0, sp, #64
	add	x1, sp, #12
	mov	w2, #0
	bl	_ib_resolve_self_via
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBEXIT
LBB0_2:
	ldr	x8, [sp, #96]
	str	x8, [sp, #40]
	mov	w8, #65535
Lloh4:
	adrp	x21, _buf@GOTPAGE
Lloh5:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	str	w8, [sp, #32]
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _IB_ATTR_PORT_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w5, [x22]
	add	x1, sp, #16
	mov	w3, #0
	mov	w4, #0
	bl	_smp_query_via
	cbnz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBEXIT
LBB0_4:
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _IB_PORT_LID_F@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_PORT_LID_F@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_mad_decode_field
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _IB_PORT_LOCAL_PORT_F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_PORT_LOCAL_PORT_F@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_mad_decode_field
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_srcport,4,2                    ; @srcport
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to resolve self portid"

	.comm	_buf,4,2                        ; @buf
	.comm	_IB_ATTR_PORT_INFO,4,2          ; @IB_ATTR_PORT_INFO
l_.str.1:                               ; @.str.1
	.asciz	"get peer portinfo failed - unable to configure lossy\n"

	.comm	_IB_PORT_LID_F,4,2              ; @IB_PORT_LID_F
	.comm	_IB_PORT_LOCAL_PORT_F,4,2       ; @IB_PORT_LOCAL_PORT_F
.subsections_via_symbols
