	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cycle_exists
_cycle_exists:                          ## @cycle_exists
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r13
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	cmpl	%r15d, %ecx
	jge	LBB0_15
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, 4(%r13)
	sete	%al
	jmp	LBB0_15
LBB0_4:
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_CL_ASSERT
	movq	%r12, %r13
LBB0_5:
	movl	%r15d, (%r13)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r13, 32(%r14)
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	16(%r13), %rax
	sete	%dil
	callq	_CL_ASSERT
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	setg	%dil
	callq	_CL_ASSERT
LBB0_7:
	cmpl	$0, 24(%r13)
	jle	LBB0_8
## %bb.9:
	incl	%r15d
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%edx
	movl	%edx, %ebx
	cmpl	%ecx, %edx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_cycle_exists
	movl	24(%r13), %ecx
	movl	%ecx, %edx
	cmpl	$1, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edx
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
LBB0_13:
	movl	$1, 4(%r13)
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	$0, 32(%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cycle_exists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cycle_exists
_cycle_exists:                          ; @cycle_exists
	.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	x22, x3
	mov	x19, x2
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	cmp	w8, w22
	b.ge	LBB0_13
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_14
LBB0_4:
	cmp	x19, #0
	cset	w0, eq
	bl	_CL_ASSERT
	mov	x20, x21
LBB0_5:
	str	w22, [x20]
	cbz	x19, LBB0_7
; %bb.6:
	str	x20, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w0, eq
	bl	_CL_ASSERT
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, gt
	bl	_CL_ASSERT
LBB0_7:
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w23, #0
	add	w22, w22, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldr	x1, [x8, w23, sxtw #3]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_cycle_exists
	ldr	w8, [x20, #24]
	cmp	w0, #1
	csel	w9, w8, w23, eq
	add	w23, w9, #1
	cmp	w23, w8
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	mov	w8, #1
	str	w8, [x20, #4]
	cbz	x19, LBB0_14
; %bb.12:
	str	xzr, [x19, #32]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cycle_exists
.subsections_via_symbols
