	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dfn_findcycle                  ## -- Begin function dfn_findcycle
	.p2align	4, 0x90
_dfn_findcycle:                         ## @dfn_findcycle
	.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
	movq	%rdi, %rbx
	movq	_dfn_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_dfn_stack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	movl	%edx, %r14d
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edx
	movq	(%rcx,%rdx,8), %r15
	cmpq	%rbx, %r15
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	cmpq	%rbx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %rdx
	jne	LBB0_7
	jmp	LBB0_10
LBB0_1:
                                        ## implicit-def: $r15
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	_dfn_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	cmpl	%eax, %r14d
	jne	LBB0_11
LBB0_23:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dfn_self_cycle                 ## TAILCALL
LBB0_4:
	movq	%rbx, %r15
	cmpl	%eax, %r14d
	je	LBB0_23
LBB0_11:
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.13:
	cmpl	%eax, %r14d
	jge	LBB0_22
## %bb.14:
	movq	(%r15), %r12
	movslq	%r14d, %r13
	movq	_dfn_stack@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_22
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	(%r14), %rcx
	movq	8(%rcx,%r13,8), %rcx
	incq	%r13
	movq	(%rcx), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%r12, %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_fprintf
	movq	_dfn_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rcx, 8(%rbx)
	movq	%r12, (%rcx)
	movq	8(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, %rbx
	movq	%r12, (%rdx)
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_18
	jmp	LBB0_21
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dfn_depth,4,2                  ## @dfn_depth
	.comm	_dfn_stack,8,3                  ## @dfn_stack
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[dfn_findcycle] couldn't find head of cycle"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"[dfn_busy] glommed, but not to cyclehead\n"

	.comm	_DFNDEBUG,4,2                   ## @DFNDEBUG
	.comm	_debug,4,2                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dfn_findcycle                  ; -- Begin function dfn_findcycle
	.p2align	2
_dfn_findcycle:                         ; @dfn_findcycle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _dfn_depth@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dfn_depth@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
Lloh2:
	adrp	x9, _dfn_stack@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dfn_stack@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	mov	x23, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x9, w23, uxtw #3]
	cmp	x22, x19
	b.eq	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x19]
	cmp	x10, x19
	ccmp	x10, x22, #0, ne
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w23, w23, #1
	b.gt	LBB0_2
; %bb.5:
	mov	w8, #0
	b	LBB0_7
LBB0_6:
                                        ; implicit-def: $x22
LBB0_7:
	mov	x23, x8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	w8, [x20]
LBB0_8:
	cmp	w23, w8
	b.ne	LBB0_11
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dfn_self_cycle
LBB0_10:
	mov	x22, x19
	cmp	w23, w8
	b.eq	LBB0_9
LBB0_11:
	mov	x9, x22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_12
; %bb.13:
	cmp	w23, w8
	b.ge	LBB0_22
; %bb.14:
	ldr	x22, [x22]
	sxtw	x23, w23
Lloh7:
	adrp	x24, _dfn_stack@GOTPAGE
Lloh8:
	ldr	x24, [x24, _dfn_stack@GOTPAGEOFF]
Lloh9:
	adrp	x19, l_.str.1@PAGE
Lloh10:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh11:
	adrp	x25, _stderr@GOTPAGE
Lloh12:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x21, x9
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	x23, w8, sxtw
	b.ge	LBB0_22
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	add	x23, x23, #1
	ldr	x9, [x24]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x10, [x9]
	cmp	x10, x9
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x10, x22
	b.eq	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	bl	_fprintf
	ldr	w8, [x20]
	b	LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	str	x9, [x21, #8]
	str	x22, [x9]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_15
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x21, x10
	str	x22, [x10]
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_21
	b	LBB0_16
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dfn_depth,4,2                  ; @dfn_depth
	.comm	_dfn_stack,8,3                  ; @dfn_stack
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[dfn_findcycle] couldn't find head of cycle"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"[dfn_busy] glommed, but not to cyclehead\n"

	.comm	_DFNDEBUG,4,2                   ; @DFNDEBUG
	.comm	_debug,4,2                      ; @debug
.subsections_via_symbols
