	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_intervals
_generate_intervals:                    ## @generate_intervals
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r12d
	movq	16(%rsi), %rax
	movslq	4(%rsi), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	-24(%rax,%rcx,8), %ecx
	subl	(%rax), %ecx
	movq	_DAY_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rsi,%rcx), %edi
	decl	%edi
	movl	%edi, %eax
	cltd
	idivl	%esi
	subl	%edx, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMAX
	movq	%rbx, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r11d
	testl	%r11d, %r11d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	jle	LBB0_10
## %bb.1:
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	16(%rsi), %r10
	leaq	16(%r10), %rdx
	leaq	-1(%r11), %r9
	xorl	%r8d, %r8d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, -8(%rdx)
	addq	$24, %rdx
	movq	%rdi, %rbx
	cmpq	%rdi, %r11
	je	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %rdi
	movl	-16(%rdx), %esi
	movl	%esi, -12(%rdx)
	cmpq	$0, (%rdx)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rsi
	cmpq	%rbx, %r9
	movl	$0, %eax
	cmovneq	%rsi, %rax
	leaq	(%rax,%rax,2), %rcx
	cmpq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %esi
	cmovbl	%r8d, %esi
	addl	(%r10,%rcx,8), %esi
	jmp	LBB0_2
LBB0_5:
	movl	$16, %r12d
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	-12(%r15,%r12), %edi
	movl	-8(%r15,%r12), %esi
	subl	-64(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_FFMAX
	movl	%eax, -8(%r15,%r12)
	leaq	(%rbx,%rbx,2), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	8(%r15,%rax,8), %edi
	movl	4(%r15,%rax,8), %esi
	addl	-64(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_FFMIN
	xorl	%edi, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 4(%r15,%rcx,8)
	movl	4(%rsi), %r11d
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rbx, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	cmovbl	%edi, %ecx
	addl	%eax, %ecx
	movl	%ecx, -4(%r15,%r12)
	movslq	%r11d, %rax
	addq	$24, %r12
	movq	%r13, %r14
	cmpq	%rax, %r13
	jge	LBB0_10
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rsi), %r15
	leaq	1(%r14), %r13
	movl	%r13d, %eax
	cltd
	idivl	%r11d
	movl	%edx, %ebx
	cmpq	$0, (%r15,%r12)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rbx,%rbx,2), %rax
	movl	4(%r15,%rax,8), %eax
	jmp	LBB0_7
LBB0_10:
	movq	16(%rsi), %rax
	leal	-1(%r11), %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movups	(%rax,%rcx,8), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	16(%rax,%rcx,8), %rax
	movq	%rax, -80(%rbp)
	movl	-92(%rbp), %edi
	movl	-88(%rbp), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%eax, %edi
	movl	%edi, -92(%rbp)
	subl	%eax, %r14d
	movl	%r14d, -88(%rbp)
	movl	-84(%rbp), %ebx
	subl	%eax, %ebx
	movl	%ebx, -84(%rbp)
	testl	%r11d, %r11d
	movl	-100(%rbp), %r13d               ## 4-byte Reload
	js	LBB0_14
## %bb.11:
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%r13d, %esi
	callq	_av_rescale
	movl	%eax, -92(%rbp)
	movl	(%r15), %edx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_av_rescale
	movl	%eax, -88(%rbp)
	movl	(%r15), %edx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_av_rescale
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, -84(%rbp)
	cmpl	$0, 4(%rsi)
	jle	LBB0_14
## %bb.12:
	xorl	%r14d, %r14d
	movl	$12, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rsi), %r12
	movl	-8(%r12,%rbx), %edi
	movl	(%r15), %edx
	movl	%r13d, %esi
	callq	_av_rescale
	movl	%eax, -8(%r12,%rbx)
	movl	-4(%r12,%rbx), %edi
	movl	(%r15), %edx
	movl	%r13d, %esi
	callq	_av_rescale
	movl	%eax, -4(%r12,%rbx)
	movl	(%r12,%rbx), %edi
	movl	(%r15), %edx
	movl	%r13d, %esi
	callq	_av_rescale
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%r12,%rbx)
	incl	%r14d
	addq	$24, %rbx
	cmpl	4(%rsi), %r14d
	jl	LBB0_13
LBB0_14:
	movl	8(%rsi), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.15:
	movq	24(%rsi), %rdi
	shlq	$3, %rdx
	movl	$255, %esi
	callq	_memset
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_16:
	movl	$-1, %r14d
	movq	-120(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rsi), %eax
	cmpl	%eax, %r14d
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	movq	16(%rsi), %rcx
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %rbx
	leaq	-96(%rbp), %rax
	cmovsq	%rax, %rbx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_generate_plateau
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r14d
	movl	%r14d, %eax
	cltd
	idivl	-56(%rbp)                       ## 4-byte Folded Reload
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r8
	movq	%r13, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_generate_transition
	testl	%eax, %eax
	movq	%r13, %rsi
	jns	LBB0_17
LBB0_23:
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_21:
	xorl	%r12d, %r12d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.22:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_av_log
LBB0_24:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAY_TS,4,2                     ## @DAY_TS
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Completely silent script.\n"

	.no_dead_strip	_generate_intervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_intervals
_generate_intervals:                    ; @generate_intervals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldp	w8, w9, [x1]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w8, #0
	cinc	w19, w8, lt
	ldr	x8, [x1, #16]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldur	w9, [x9, #-24]
	ldr	w8, [x8]
Lloh0:
	adrp	x10, _DAY_TS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DAY_TS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	sub	w8, w9, w8
	add	w8, w1, w8
	sub	w8, w8, #1
	sdiv	w8, w8, w1
	mul	w0, w8, w1
	bl	_FFMAX
	mov	x23, x0
	ldr	w8, [x21, #4]
	cmp	w8, #1
	stp	x24, x20, [sp]                  ; 16-byte Folded Spill
	b.lt	LBB0_10
; %bb.1:
	mov	x9, #0
	asr	w25, w19, #1
	ldr	x10, [x21, #16]
	add	x11, x10, #8
	sub	x12, x8, #1
	mov	w13, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	str	w14, [x11], #24
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x11, #-8]
	stur	w14, [x11, #-4]
	ldr	x15, [x11, #8]
	cbnz	x15, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x9
	csinc	x14, xzr, x9, eq
	mul	x15, x14, x13
	ldr	w15, [x10, x15]
	cmp	x9, x14
	csel	w14, wzr, w23, lo
	add	w14, w14, w15
	b	LBB0_2
LBB0_5:
	mov	x26, #0
	mov	x24, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	w0, w8, [x27, #4]
	sub	w1, w8, w25
	bl	_FFMAX
	str	w0, [x27, #8]
	mov	w8, #24
	madd	x27, x20, x8, x19
	ldp	w8, w0, [x27, #4]
	add	w1, w8, w25
	bl	_FFMIN
	str	w0, [x27, #4]
	ldr	w8, [x21, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	x24, x20
	csel	w9, wzr, w23, lo
	add	w9, w0, w9
	add	x10, x19, x26
	str	w9, [x10, #12]
	add	x26, x26, #24
	cmp	x28, w8, sxtw
	mov	x24, x28
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x21, #16]
	add	x28, x24, #1
	sdiv	w9, w28, w8
	msub	w20, w9, w8, w28
	add	x27, x19, x26
	ldr	x9, [x27, #16]
	cbz	x9, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #24
	madd	x9, x20, x9, x19
	ldr	w0, [x9, #4]
	b	LBB0_7
LBB0_10:
	ldr	x9, [x21, #16]
	sub	w10, w8, #1
	mov	w11, #24
	smaddl	x9, w10, w11, x9
	ldr	x10, [x9, #16]
	ldr	q0, [x9]
	str	q0, [sp, #16]
	str	x10, [sp, #32]
	ldp	w9, w10, [sp, #20]
	sub	w0, w9, w23
	sub	w24, w10, w23
	stp	w0, w24, [sp, #20]
	ldr	w9, [sp, #28]
	sub	w23, w9, w23
	str	w23, [sp, #28]
	tbnz	w8, #31, LBB0_14
; %bb.11:
Lloh3:
	adrp	x25, _AV_TIME_BASE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AV_TIME_BASE@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_av_rescale
	str	w0, [sp, #20]
	ldr	w2, [x25]
	mov	x0, x24
	mov	x1, x22
	bl	_av_rescale
	str	w0, [sp, #24]
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_av_rescale
	str	w0, [sp, #28]
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x19, #0
	mov	w23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x20, x8, x19
	ldr	w0, [x20, #4]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_av_rescale
	str	w0, [x20, #4]
	ldr	w0, [x20, #8]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_av_rescale
	str	w0, [x20, #8]
	ldr	w0, [x20, #12]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_av_rescale
	str	w0, [x20, #12]
	add	w23, w23, #1
	ldr	w8, [x21, #4]
	add	x19, x19, #24
	cmp	w23, w8
	b.lt	LBB0_13
LBB0_14:
	ldr	w8, [x21, #8]
	cmp	w8, #0
	ldp	x27, x26, [sp]                  ; 16-byte Folded Reload
	b.le	LBB0_16
; %bb.15:
	ldr	x0, [x21, #24]
	lsl	x2, x8, #3
	mov	w1, #255
	bl	_memset
LBB0_16:
	mov	w19, #-1
	mov	w20, #24
	add	x23, sp, #16
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x21, #4]
	cmp	w19, w24
	b.ge	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x25, [x21, #16]
	umaddl	x8, w19, w20, x25
	cmp	w19, #0
	csel	x22, x23, x8, lt
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	mov	x3, x22
	bl	_generate_plateau
	tbnz	w0, #31, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w19, w19, #1
	sdiv	w8, w19, w24
	msub	w8, w8, w24, w19
	smaddl	x4, w8, w20, x25
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	mov	x3, x22
	bl	_generate_transition
	tbz	w0, #31, LBB0_17
	b	LBB0_23
LBB0_20:
	ldr	w8, [x27]
	cbnz	w8, LBB0_22
; %bb.21:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	bl	_av_log
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DAY_TS,4,2                     ; @DAY_TS
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Completely silent script.\n"

	.no_dead_strip	_generate_intervals
.subsections_via_symbols
