	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shortest_path
_shortest_path:                         ## @shortest_path
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r12
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cl_list_construct
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_cl_list_init
	movslq	%r14d, %rax
	movq	(%r12,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_enqueue
	movq	%rbx, %rdi
	callq	_cl_is_list_empty
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	leaq	-44(%rbp), %rdi
	callq	_cl_list_destroy
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-44(%rbp), %r15
	movq	_UNQUEUED@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_cl_is_list_empty
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_dequeue
	movq	-56(%rbp), %rax
	movq	24(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movq	24(%rax), %rcx
	movl	(%rcx), %edx
	cmpq	%rdx, %r14
	jae	LBB0_2
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx), %rcx
	movq	(%r12,%rcx,8), %rbx
	movq	(%rbx), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_enqueue
	movl	8(%rbx), %ecx
	movq	-56(%rbp), %rax
	movq	16(%rax), %rdx
	movslq	12(%rax), %rsi
	leal	1(%rsi), %edi
	movl	%edi, 12(%rax)
	movl	%ecx, (%rdx,%rsi,4)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_UNQUEUED,8,3                   ## @UNQUEUED
	.no_dead_strip	_shortest_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shortest_path
_shortest_path:                         ; @shortest_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0]
	add	x0, sp, #4
	bl	_cl_list_construct
	add	x0, sp, #4
	mov	w1, #20
	bl	_cl_list_init
	ldr	x1, [x20, w19, sxtw #3]
	add	x0, sp, #4
	bl	_enqueue
	add	x0, sp, #4
	bl	_cl_is_list_empty
	cbz	w0, LBB0_2
LBB0_1:
	add	x0, sp, #4
	bl	_cl_list_destroy
	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
	add	sp, sp, #64
	ret
LBB0_2:
Lloh0:
	adrp	x21, _UNQUEUED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNQUEUED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #4
	bl	_cl_is_list_empty
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_dequeue
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #24]
	ldr	w10, [x9]
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x22, x22, #1
	ldr	x9, [x8, #24]
	ldr	w10, [x9]
	cmp	x22, x10
	b.hs	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x9, #8]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9]
	ldr	x19, [x20, x9, lsl #3]
	ldr	x9, [x19]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x0, sp, #4
	mov	x1, x19
	bl	_enqueue
	ldr	w9, [x19, #8]
	ldr	x8, [sp, #8]
	ldr	x10, [x8, #16]
	ldrsw	x11, [x8, #12]
	add	w12, w11, #1
	str	w12, [x8, #12]
	str	w9, [x10, x11, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UNQUEUED,8,3                   ; @UNQUEUED
	.no_dead_strip	_shortest_path
.subsections_via_symbols
