	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_self_via            ## -- Begin function ib_resolve_self_via
	.p2align	4, 0x90
_ib_resolve_self_via:                   ## @ib_resolve_self_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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -576(%rbp)
	movq	$0, -584(%rbp)
	movq	_IB_ATTR_NODE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-560(%rbp), %rdi
	leaq	-584(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_smp_query_via
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_IB_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-304(%rbp), %rdi
	leaq	-584(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_smp_query_via
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_IB_PORT_LID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_mad_decode_field
	movq	_IB_PORT_SMSL_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$4, %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_mad_decode_field
	movq	_IB_PORT_GID_PREFIX_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-564(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mad_decode_field
	movq	_IB_NODE_PORT_GUID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-560(%rbp), %rdi
	leaq	-568(%rbp), %rdx
	callq	_mad_decode_field
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_IB_NODE_LOCAL_PORT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-560(%rbp), %rdi
	movq	%r15, %rdx
	callq	_mad_decode_field
LBB0_4:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movq	_IB_GID_PREFIX_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-564(%rbp), %rdx
	callq	_mad_encode_field
	movl	(%r14), %edi
	movq	_IB_GID_GUID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-568(%rbp), %rdx
	callq	_mad_encode_field
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %eax
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ATTR_NODE_INFO,4,2          ## @IB_ATTR_NODE_INFO
	.comm	_IB_ATTR_PORT_INFO,4,2          ## @IB_ATTR_PORT_INFO
	.comm	_IB_PORT_LID_F,4,2              ## @IB_PORT_LID_F
	.comm	_IB_PORT_SMSL_F,4,2             ## @IB_PORT_SMSL_F
	.comm	_IB_PORT_GID_PREFIX_F,4,2       ## @IB_PORT_GID_PREFIX_F
	.comm	_IB_NODE_PORT_GUID_F,4,2        ## @IB_NODE_PORT_GUID_F
	.comm	_IB_NODE_LOCAL_PORT_F,4,2       ## @IB_NODE_LOCAL_PORT_F
	.comm	_IB_GID_PREFIX_F,4,2            ## @IB_GID_PREFIX_F
	.comm	_IB_GID_GUID_F,4,2              ## @IB_GID_GUID_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_resolve_self_via            ; -- Begin function ib_resolve_self_via
	.p2align	2
_ib_resolve_self_via:                   ; @ib_resolve_self_via
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #544
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _IB_ATTR_NODE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_ATTR_NODE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x1, sp, #8
	mov	w3, #0
	mov	w4, #0
	mov	x5, x22
	bl	_smp_query_via
	cbz	w0, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _IB_ATTR_PORT_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #280
	add	x1, sp, #8
	mov	w3, #0
	mov	w4, #0
	mov	x5, x22
	bl	_smp_query_via
	cbz	w0, LBB0_7
; %bb.2:
Lloh9:
	adrp	x8, _IB_PORT_LID_F@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_PORT_LID_F@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #280
	mov	x2, x21
	bl	_mad_decode_field
Lloh12:
	adrp	x8, _IB_PORT_SMSL_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_PORT_SMSL_F@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, x21, #4
	add	x0, sp, #280
	bl	_mad_decode_field
Lloh15:
	adrp	x8, _IB_PORT_GID_PREFIX_F@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_PORT_GID_PREFIX_F@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x0, sp, #280
	mov	x2, sp
	bl	_mad_decode_field
Lloh18:
	adrp	x8, _IB_NODE_PORT_GUID_F@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_NODE_PORT_GUID_F@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #24
	add	x2, sp, #4
	bl	_mad_decode_field
	cbz	x20, LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _IB_NODE_LOCAL_PORT_F@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_NODE_LOCAL_PORT_F@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x0, sp, #24
	mov	x2, x20
	bl	_mad_decode_field
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _IB_GID_PREFIX_F@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_GID_PREFIX_F@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_mad_encode_field
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _IB_GID_GUID_F@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_GID_GUID_F@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_mad_encode_field
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #544
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ATTR_NODE_INFO,4,2          ; @IB_ATTR_NODE_INFO
	.comm	_IB_ATTR_PORT_INFO,4,2          ; @IB_ATTR_PORT_INFO
	.comm	_IB_PORT_LID_F,4,2              ; @IB_PORT_LID_F
	.comm	_IB_PORT_SMSL_F,4,2             ; @IB_PORT_SMSL_F
	.comm	_IB_PORT_GID_PREFIX_F,4,2       ; @IB_PORT_GID_PREFIX_F
	.comm	_IB_NODE_PORT_GUID_F,4,2        ; @IB_NODE_PORT_GUID_F
	.comm	_IB_NODE_LOCAL_PORT_F,4,2       ; @IB_NODE_LOCAL_PORT_F
	.comm	_IB_GID_PREFIX_F,4,2            ; @IB_GID_PREFIX_F
	.comm	_IB_GID_GUID_F,4,2              ; @IB_GID_GUID_F
.subsections_via_symbols
