	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_hop_path
_next_hop_path:                         ## @next_hop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%esi, %ebx
	xorl	%r15d, %r15d
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r8
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.3:
	movq	%rcx, %r9
	movq	%rdx, %rcx
	cmpl	$1, %ebx
	je	LBB0_5
	jmp	LBB0_10
LBB0_1:
	movq	%rcx, %r8
	movq	%rdx, %r9
	movq	%rdx, %rcx
	jmp	LBB0_5
LBB0_4:
	movq	%rdx, %r9
LBB0_5:
	movq	(%rdi), %rax
	movq	(%r8), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	8(%r9), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	16(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.6:
	movl	%ebx, %esi
	callq	_ring_dir_path
	addl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:
	orl	$1, %ebx
LBB0_9:
	movl	%ebx, (%r14)
	movl	$1, %r15d
	jmp	LBB0_10
LBB0_8:
	js	LBB0_9
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_next_hop_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_hop_path
_next_hop_path:                         ; @next_hop_path
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x20, x1
	cbz	w1, LBB0_3
; %bb.1:
	mov	x8, x2
	cmp	w20, #2
	b.eq	LBB0_4
; %bb.2:
	mov	x9, x3
	mov	x3, x2
	cmp	w20, #1
	b.eq	LBB0_5
	b	LBB0_10
LBB0_3:
	mov	x8, x3
	mov	x9, x2
	mov	x3, x2
	b	LBB0_5
LBB0_4:
	mov	x9, x2
LBB0_5:
	ldr	x10, [x0]
	ldr	x8, [x8]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x9, [x9, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x3, #16]
	ldr	x3, [x8, x9, lsl #3]
	cbz	x3, LBB0_10
; %bb.6:
	mov	x1, x20
	bl	_ring_dir_path
	lsl	w8, w20, #1
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	orr	w8, w8, #0x1
LBB0_8:
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	tbnz	w0, #31, LBB0_8
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_next_hop_path
.subsections_via_symbols
