	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addcycle                       ## -- Begin function addcycle
	.p2align	4, 0x90
_addcycle:                              ## @addcycle
	.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
	movq	%rsi, %r15
	subq	%rdi, %rsi
	movq	%rsi, %r9
	shrq	$3, %r9
	leal	1(%r9), %r12d
	movq	_TRUE@GOTPCREL(%rip), %r8
	cmpl	$2, %r12d
	jl	LBB0_28
## %bb.1:
	movq	%rdi, %r14
                                        ## implicit-def: $r13
	cmpq	%r15, %rdi
	ja	LBB0_3
## %bb.2:
	leaq	8(%r14), %rcx
	movq	%r14, %r13
	cmpq	%r15, %rcx
	jbe	LBB0_21
LBB0_3:
	movq	_cyclehead@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r12d, %r10
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rbx, %rdx
	je	LBB0_28
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rcx), %rcx
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, (%rcx)
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rcx), %rdx
	leaq	(%rdx,%r10,8), %rbx
	cmpl	$2147483646, %r9d               ## imm = 0x7FFFFFFE
	ja	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	$8, %rdi
	cmpq	%r15, %rdi
	cmovaq	%r14, %rdi
	addq	$8, %rdx
	cmpq	%rbx, %rdx
	jb	LBB0_10
	jmp	LBB0_4
LBB0_12:
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, %rbx
	addl	$24, %esi
	andl	$-8, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	cmpl	$2147483646, %ebx               ## imm = 0x7FFFFFFE
	ja	LBB0_18
## %bb.14:
	movq	16(%rax), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %r10
	movq	_ONLIST@GOTPCREL(%rip), %r9
	movq	_archead@GOTPCREL(%rip), %r8
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$8, %rcx
	cmpq	%r10, %rcx
	jae	LBB0_18
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	$8, %r13
	cmpq	%r15, %r13
	cmovaq	%r14, %r13
	movq	%rdi, (%rcx)
	incl	16(%rdi)
	movl	(%rdi), %esi
	movl	(%r9), %edx
	testl	%esi, %edx
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	orl	%esi, %edx
	movl	%edx, (%rdi)
	movq	(%r8), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, (%r8)
	jmp	LBB0_15
LBB0_18:
	movl	%r12d, (%rax)
	movq	_cyclehead@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%rdx)
	movq	_cyclecnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_CYCLEMAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_27
## %bb.19:
	movq	_TRUE@GOTPCREL(%rip), %r8
	jmp	LBB0_28
LBB0_20:
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_warnx
LBB0_27:
	movq	_FALSE@GOTPCREL(%rip), %r8
LBB0_28:
	movl	(%r8), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	(%r14), %rdx
	xorl	%eax, %eax
	movq	%r14, %r13
	movq	%rdx, %rdi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	$8, %rcx
	cmpq	%r15, %rcx
	ja	LBB0_3
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rdi, %rdx
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	(%rcx), %rdi
	cmpq	%rdx, %rdi
	seta	%al
	ja	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rcx, %r13
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_cyclehead,8,3                  ## @cyclehead
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no room for %zu bytes of subcycle storage"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ONLIST,4,2                     ## @ONLIST
	.comm	_archead,8,3                    ## @archead
	.comm	_cyclecnt,8,3                   ## @cyclecnt
	.comm	_CYCLEMAX,8,3                   ## @CYCLEMAX
	.comm	_SUBCYCLELIST,4,2               ## @SUBCYCLELIST
	.comm	_debug,4,2                      ## @debug
	.comm	_newcycle,4,2                   ## @newcycle
	.comm	_oldcycle,4,2                   ## @oldcycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addcycle                       ; -- Begin function addcycle
	.p2align	2
_addcycle:                              ; @addcycle
	.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
	sub	x8, x1, x0
	lsr	x25, x8, #3
	add	w23, w25, #1
Lloh0:
	adrp	x22, _TRUE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	cmp	w23, #2
	b.lt	LBB0_23
; %bb.1:
	mov	x19, x1
	mov	x20, x0
                                        ; implicit-def: $x24
	cmp	x0, x1
	b.hi	LBB0_5
; %bb.2:
	add	x10, x20, #8
	mov	x24, x20
	cmp	x10, x19
	b.hi	LBB0_5
; %bb.3:
	mov	w11, #0
	ldr	x9, [x20]
	mov	x24, x20
	mov	x13, x9
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tst	w11, #0x1
	csel	x9, x9, x13, ne
	ldr	x13, [x12], #8
	cmp	x13, x9
	csel	x24, x24, x10, hi
	cset	w11, hi
	mov	x10, x12
	cmp	x12, x19
	b.ls	LBB0_4
LBB0_5:
Lloh2:
	adrp	x26, _cyclehead@GOTPAGE
Lloh3:
	ldr	x26, [x26, _cyclehead@GOTPAGEOFF]
	ldr	x9, [x26]
	cbz	x9, LBB0_14
; %bb.6:
	sxtw	x11, w23
	mov	w12, #2147483646
Lloh4:
	adrp	x10, _TRUE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x13, x14
	b.eq	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w13, [x9]
	cmp	w13, w23
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x13, [x9, #16]
	add	x14, x13, x11, lsl #3
	cmp	w25, w12
	b.hi	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x15, x24
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x15]
	ldr	x17, [x13]
	cmp	x16, x17
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x15, x15, #8
	cmp	x15, x19
	csel	x15, x20, x15, hi
	add	x13, x13, #8
	cmp	x13, x14
	b.lo	LBB0_12
	b	LBB0_7
LBB0_14:
	add	w8, w8, #24
	and	w21, w8, #0xfffffff8
	mov	w0, #1
	mov	x1, x21
	bl	_calloc
	cbz	x0, LBB0_21
; %bb.15:
	mov	w8, #2147483646
	cmp	w25, w8
	b.hi	LBB0_20
; %bb.16:
	ldr	x8, [x0, #16]
	add	x9, x8, w23, sxtw #3
Lloh6:
	adrp	x10, _ONLIST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ONLIST@GOTPAGEOFF]
Lloh8:
	adrp	x11, _archead@GOTPAGE
Lloh9:
	ldr	x11, [x11, _archead@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x8, #8
	cmp	x8, x9
	b.hs	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x24], #8
	str	x12, [x8]
	cmp	x24, x19
	csel	x24, x20, x24, hi
	ldr	w13, [x12, #16]
	add	w13, w13, #1
	str	w13, [x12, #16]
	ldr	w13, [x12]
	ldr	w14, [x10]
	tst	w14, w13
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	orr	w13, w14, w13
	str	w13, [x12]
	ldr	x13, [x11]
	str	x13, [x12, #8]
	str	x12, [x11]
	b	LBB0_17
LBB0_20:
	str	w23, [x0]
	ldr	x8, [x26]
	str	x8, [x0, #8]
	str	x0, [x26]
Lloh10:
	adrp	x8, _cyclecnt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cyclecnt@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
Lloh12:
	adrp	x10, _CYCLEMAX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CYCLEMAX@GOTPAGEOFF]
	str	x9, [x8]
Lloh14:
	ldr	x8, [x10]
Lloh15:
	adrp	x10, _FALSE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
	cmp	x9, x8
	csel	x22, x22, x10, lt
	b	LBB0_23
LBB0_21:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_warnx
Lloh19:
	adrp	x22, _FALSE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
	mov	x22, x10
LBB0_23:
	ldr	w0, [x22]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_cyclehead,8,3                  ; @cyclehead
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no room for %zu bytes of subcycle storage"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ONLIST,4,2                     ; @ONLIST
	.comm	_archead,8,3                    ; @archead
	.comm	_cyclecnt,8,3                   ; @cyclecnt
	.comm	_CYCLEMAX,8,3                   ; @CYCLEMAX
	.comm	_SUBCYCLELIST,4,2               ; @SUBCYCLELIST
	.comm	_debug,4,2                      ; @debug
	.comm	_newcycle,4,2                   ; @newcycle
	.comm	_oldcycle,4,2                   ; @oldcycle
.subsections_via_symbols
