	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_port
_get_port:                              ## @get_port
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movl	%esi, (%rdi)
	movq	_IB_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_srcport@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_smp_query_via
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IB_PORT_LID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%rbx), %rdx
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	callq	_mad_decode_field
	movq	_IB_PORT_LMC_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rdx
	movq	%r12, %rdi
	callq	_mad_decode_field
	movq	_IB_PORT_STATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rbx), %rdx
	movq	%r12, %rdi
	callq	_mad_decode_field
	movq	_IB_PORT_PHYS_STATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%rbx), %rdx
	movq	%r12, %rdi
	callq	_mad_decode_field
	movq	%r15, %rdi
	callq	_portid2str
	movl	12(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_VERBOSE
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ATTR_PORT_INFO,4,2          ## @IB_ATTR_PORT_INFO
	.comm	_timeout,4,2                    ## @timeout
	.comm	_srcport,4,2                    ## @srcport
	.comm	_IB_PORT_LID_F,4,2              ## @IB_PORT_LID_F
	.comm	_IB_PORT_LMC_F,4,2              ## @IB_PORT_LMC_F
	.comm	_IB_PORT_STATE_F,4,2            ## @IB_PORT_STATE_F
	.comm	_IB_PORT_PHYS_STATE_F,4,2       ## @IB_PORT_PHYS_STATE_F
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"portid %s portnum %d: lid %d state %d physstate %d"

	.no_dead_strip	_get_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_port
_get_port:                              ; @get_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	str	w1, [x0]
Lloh3:
	adrp	x8, _IB_ATTR_PORT_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _timeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _srcport@GOTPAGE
Lloh10:
	ldr	x8, [x8, _srcport@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, sp
	mov	x1, x21
	mov	x3, x19
	bl	_smp_query_via
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _IB_PORT_LID_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_PORT_LID_F@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, x20, #12
	mov	x0, sp
	bl	_mad_decode_field
Lloh15:
	adrp	x8, _IB_PORT_LMC_F@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_PORT_LMC_F@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x20, #16
	mov	x0, sp
	bl	_mad_decode_field
Lloh18:
	adrp	x8, _IB_PORT_STATE_F@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_PORT_STATE_F@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x20, #8
	mov	x0, sp
	bl	_mad_decode_field
Lloh21:
	adrp	x8, _IB_PORT_PHYS_STATE_F@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_F@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, x20, #4
	mov	x0, sp
	bl	_mad_decode_field
	mov	x0, x21
	bl	_portid2str
	mov	x1, x0
	ldp	w4, w3, [x20, #8]
	ldr	w5, [x20, #4]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_VERBOSE
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ATTR_PORT_INFO,4,2          ; @IB_ATTR_PORT_INFO
	.comm	_timeout,4,2                    ; @timeout
	.comm	_srcport,4,2                    ; @srcport
	.comm	_IB_PORT_LID_F,4,2              ; @IB_PORT_LID_F
	.comm	_IB_PORT_LMC_F,4,2              ; @IB_PORT_LMC_F
	.comm	_IB_PORT_STATE_F,4,2            ; @IB_PORT_STATE_F
	.comm	_IB_PORT_PHYS_STATE_F,4,2       ; @IB_PORT_PHYS_STATE_F
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"portid %s portnum %d: lid %d state %d physstate %d"

	.no_dead_strip	_get_port
.subsections_via_symbols
