	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3GetBestRoute                 ## -- Begin function L3GetBestRoute
	.p2align	4, 0x90
_L3GetBestRoute:                        ## @L3GetBestRoute
	.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
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r12
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	(%rdi), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %r15
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	(%r12), %edi
	callq	_LIST_NUM
	movq	%r15, %r14
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	8(%rax), %r15
	movq	(%rax), %rcx
	xorq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	testq	%r15, %rcx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r14, %r15
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rax), %rcx
	cmpq	%rcx, %r13
	cmovgeq	%rcx, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmovgeq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_10:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,8,3                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3GetBestRoute                 ; -- Begin function L3GetBestRoute
	.p2align	2
_L3GetBestRoute:                        ; @L3GetBestRoute
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, #0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w0, [x0]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
	mov	x24, #0
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	w0, [x20]
	bl	_LIST_NUM
	cmp	x22, x0
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	bl	_LIST_DATA
	ldp	x9, x8, [x0]
	eor	x9, x9, x19
	and	x9, x9, x8
	cmp	x9, #0
	ccmp	x8, x24, #8, eq
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x0, #16]
	cmp	x23, x9
	csel	x23, x23, x9, lt
	csel	x21, x21, x0, lt
	mov	x24, x8
	b	LBB0_4
LBB0_7:
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,8,3                   ; @INFINITE
.subsections_via_symbols
