	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_interval
_generate_interval:                     ## @generate_interval
	.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
	xorl	%r14d, %r14d
	cmpq	%rcx, %r8
	jle	LBB0_18
## %bb.1:
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	16(%rbp), %r11
	movq	(%r9), %r10
	testq	%r10, %r10
	jne	LBB0_3
## %bb.2:
	cmpq	$0, (%r11)
	je	LBB0_18
LBB0_3:
	movl	8(%rbx), %ecx
	leal	-128(%rcx), %edx
	cmpl	$5, %edx
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	16(%rbp), %r11
	movq	(%rbx), %r10
LBB0_6:
	movq	_WS_NOISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	3(%r10), %rax
	testq	%r10, %r10
	cmovnsq	%r10, %rax
	sarq	$2, %rax
	subq	%rax, %r10
	movq	(%r11), %rax
	leaq	3(%rax), %rdx
	testq	%rax, %rax
	cmovnsq	%rax, %rdx
	sarq	$2, %rdx
	subq	%rdx, %rax
	movq	%r12, %rdi
	movl	$3, %edx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	jmp	LBB0_7
LBB0_9:
	movl	12(%rbx), %edi
	movl	16(%rbx), %ecx
	movl	12(%r11), %edx
	movq	_WS_SINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %r9d
	movl	%edi, %eax
	orl	%edx, %eax
	jne	LBB0_15
## %bb.10:
	movl	24(%r11), %eax
	movq	%r12, %rdi
	movl	$3, %edx
	movq	%r13, %r8
	pushq	(%r11)
	pushq	%rax
LBB0_7:
	pushq	%r15
	pushq	%r10
	movq	%r11, %rbx
	callq	_add_interval
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movl	%eax, 20(%rbx)
	movl	%eax, 16(%rbx)
	jmp	LBB0_18
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_13:
	cmpl	$2, 24(%rbp)
	jne	LBB0_18
## %bb.14:
	movl	24(%rbx), %r8d
	movq	(%r11), %r9
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_add_bell
	testl	%eax, %eax
	jns	LBB0_18
	jmp	LBB0_11
LBB0_15:
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	addl	%eax, %r9d
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	addl	24(%r11), %eax
	movq	%r12, %rdi
	movl	$1, %edx
	movq	%r13, %r8
	pushq	(%r11)
	pushq	%rax
	pushq	%r15
	pushq	%r10
	callq	_add_interval
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.16:
	movq	16(%rbp), %r10
	movl	%eax, 16(%r10)
	movq	_WS_SINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %ecx
	movl	24(%rbx), %r9d
	movl	12(%rbx), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	subl	%edx, %r9d
	movl	24(%r10), %eax
	movl	12(%r10), %edx
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	subl	%edi, %eax
	movq	%r12, %rdi
	movl	$2, %edx
	movq	%r13, %r8
	pushq	(%r10)
	pushq	%rax
	pushq	%r15
	pushq	(%rbx)
	callq	_add_interval
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.17:
	movq	16(%rbp), %rcx
	movl	%eax, 20(%rcx)
	jmp	LBB0_18
LBB0_11:
	movl	%eax, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_18
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_WS_SINE,4,2                    ## @WS_SINE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spinning noise not implemented, using pink noise instead.\n"

	.comm	_WS_NOISE,4,2                   ## @WS_NOISE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Type %d is not implemented\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_generate_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_interval
_generate_interval:                     ; @generate_interval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cmp	x4, x3
	b.le	LBB0_17
; %bb.1:
	mov	x19, x6
	mov	x23, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	ldr	x6, [x5]
	cbnz	x6, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
LBB0_3:
	ldr	w8, [x23, #8]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_11
; %bb.4:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x6, [x23]
LBB0_6:
Lloh7:
	adrp	x8, _WS_NOISE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WS_NOISE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x23, #16]
	add	x8, x6, #3
	cmp	x6, #0
	csel	x8, x8, x6, lt
	sub	x6, x6, x8, asr #2
	ldr	x8, [x19]
	add	x9, x8, #3
	cmp	x8, #0
	csel	x9, x9, x8, lt
	sub	x8, x8, x9, asr #2
	str	wzr, [sp]
	str	x8, [sp, #8]
	mov	x0, x22
	mov	w2, #3
	mov	x4, x21
	mov	w5, #0
LBB0_7:
	mov	x7, x20
	bl	_add_interval
	tbnz	w0, #31, LBB0_18
; %bb.8:
	stp	w0, w0, [x19, #16]
	b	LBB0_17
LBB0_9:
Lloh10:
	adrp	x24, _WS_SINE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _WS_SINE@GOTPAGEOFF]
	ldr	w8, [x19, #12]
	ldr	w1, [x24]
	ldp	w9, w3, [x23, #12]
	ldr	w5, [x23, #24]
	orr	w10, w9, w8
	cbnz	w10, LBB0_14
; %bb.10:
	ldr	w8, [x19, #24]
	ldr	x9, [x19]
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x22
	mov	w2, #3
	mov	x4, x21
	b	LBB0_7
LBB0_11:
Lloh12:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh17:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_12:
	cmp	w7, #2
	b.ne	LBB0_17
; %bb.13:
	ldr	w4, [x23, #24]
	ldr	x5, [x19]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_add_bell
	tbz	w0, #31, LBB0_17
	b	LBB0_18
LBB0_14:
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w5, w5, w9, asr #1
	ldr	w9, [x19, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w9, w8, asr #1
	ldr	x9, [x19]
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x22
	mov	w2, #1
	mov	x4, x21
	mov	x7, x20
	bl	_add_interval
	tbnz	w0, #31, LBB0_18
; %bb.15:
	str	w0, [x19, #16]
	ldr	w1, [x24]
	ldp	w3, w8, [x23, #20]
	ldr	w9, [x23, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w5, w8, w9, asr #1
	ldr	x6, [x23]
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w8, w8, w9, asr #1
	ldr	x9, [x19]
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x22
	mov	w2, #2
	mov	x4, x21
	mov	x7, x20
	bl	_add_interval
	tbnz	w0, #31, LBB0_18
; %bb.16:
	str	w0, [x19, #20]
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_WS_SINE,4,2                    ; @WS_SINE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spinning noise not implemented, using pink noise instead.\n"

	.comm	_WS_NOISE,4,2                   ; @WS_NOISE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Type %d is not implemented\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_generate_interval
.subsections_via_symbols
