	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_lid
_resolve_lid:                           ## @resolve_lid
	.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	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r9
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movq	_IB_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-288(%rbp), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smp_query_via
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IB_PORT_LID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-288(%rbp), %rdi
	leaq	-292(%rbp), %rdx
	callq	_mad_decode_field
	movl	-292(%rbp), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ib_portid_set
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r14
	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	_IB_PORT_LID_F,4,2              ## @IB_PORT_LID_F
	.no_dead_strip	_resolve_lid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_lid
_resolve_lid:                           ; @resolve_lid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x5, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x8, sp, #16
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #224]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x8, _IB_ATTR_PORT_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	bl	_smp_query_via
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IB_PORT_LID_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PORT_LID_F@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #16
	add	x2, sp, #12
	bl	_mad_decode_field
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ib_portid_set
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ATTR_PORT_INFO,4,2          ; @IB_ATTR_PORT_INFO
	.comm	_IB_PORT_LID_F,4,2              ; @IB_PORT_LID_F
	.no_dead_strip	_resolve_lid
.subsections_via_symbols
