	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_relative_connection        ## -- Begin function get_relative_connection
	.p2align	4, 0x90
_get_relative_connection:               ## @get_relative_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	(%rdi), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	24(%rdi), %edi
	popq	%rbp
	jmp	_get_target_connection          ## TAILCALL
LBB0_5:
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.6:
	movq	(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	8(%rdi), %rdx
	cmoveq	%rcx, %rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_relative_connection        ; -- Begin function get_relative_connection
	.p2align	2
_get_relative_connection:               ; @get_relative_connection
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.2:
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	w0, [x0, #24]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_get_target_connection
LBB0_4:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x8]
	ldr	x10, [x0, #8]
	cmp	x9, x10
	csel	x0, x8, xzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $x0
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
