	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbr_make_f_derived
_sbr_make_f_derived:                    ## @sbr_make_f_derived
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	movq	80(%rsi), %rsi
	subl	%esi, %eax
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	leal	1(%rax), %edx
	sarl	%edx
	movl	%edx, (%rcx)
	movq	16(%r12), %rdi
	shlq	$2, %rsi
	addq	96(%r12), %rsi
	leal	4(,%rax,4), %edx
	callq	_memcpy
	movq	(%r12), %rdx
	movq	16(%r12), %rdi
	movslq	4(%rdx), %rax
	movl	(%rdi,%rax,4), %eax
	subl	(%rdi), %eax
	movq	24(%r12), %rbx
	movl	%eax, 4(%rbx)
	movl	(%rdi), %ecx
	movq	32(%r12), %rsi
	movl	%ecx, 4(%rsi)
	movl	4(%rbx), %eax
	addl	%ecx, %eax
	cmpl	$65, %eax
	jl	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movl	%eax, %ecx
	jmp	LBB0_5
LBB0_3:
	cmpl	$33, %ecx
	jl	LBB0_8
## %bb.4:
	movl	(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	callq	_av_log
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rdi), %ecx
	movq	40(%r12), %rax
	movl	%ecx, (%rax)
	cmpl	$0, (%rdx)
	jle	LBB0_11
## %bb.9:
	movl	4(%rdx), %ecx
	andl	$1, %ecx
	movl	$2, %ebx
	subq	%rcx, %rbx
	leaq	(%rdi,%rbx,4), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,8), %ebx
	movl	%ebx, 4(%rax,%rdi,4)
	movslq	(%rdx), %rbx
	incq	%rdi
	cmpq	%rbx, %rdi
	jl	LBB0_10
LBB0_11:
	movl	88(%r12), %r15d
	movq	48(%r12), %rax
	cvtsi2ssl	8(%rax), %xmm0
	cvtsi2ssl	4(%rsi), %xmm1
	divss	%xmm1, %xmm0
	callq	_log2f
	imull	%eax, %r15d
	movl	%r15d, %edi
	callq	_lrintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, 56(%r12)
	cmpl	$6, %eax
	jl	LBB0_13
## %bb.12:
	movl	(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_13:
	movq	40(%r12), %r8
	movq	64(%r12), %r9
	movl	(%r8), %eax
	movl	%eax, (%r9)
	movl	56(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_16
## %bb.14:
	movq	(%r12), %r10
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %eax
	subl	%ebx, %eax
	addl	%edi, %esi
	cltd
	idivl	%esi
	addl	%eax, %ebx
	movslq	%ebx, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, 4(%r9,%rcx,4)
	movslq	56(%r12), %rsi
	decl	%edi
	incq	%rcx
	cmpq	%rsi, %rcx
	jl	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sbr_hf_calc_npatches
	testq	%rax, %rax
	js	LBB0_6
## %bb.17:
	movq	%r12, %rdi
	callq	_sbr_make_f_tablelim
	movq	72(%r12), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stop frequency border too high: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Start frequency border too high: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Too many noise floor scale factors: %d\n"

	.comm	_CONST_RECIP_LN2,4,2            ## @CONST_RECIP_LN2
	.no_dead_strip	_sbr_make_f_derived
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbr_make_f_derived
_sbr_make_f_derived:                    ; @sbr_make_f_derived
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	ldr	x9, [x1, #80]
	sub	w8, w8, w9
	ldr	x10, [x1]
	add	w11, w8, #1
	asr	w11, w11, #1
	stp	w11, w8, [x10]
	ldr	x0, [x1, #16]
	ldr	x10, [x1, #96]
	add	x1, x10, x9, lsl #2
	lsl	w8, w8, #2
	add	w2, w8, #4
	bl	_memcpy
	ldr	x9, [x19]
	ldrsw	x8, [x9, #4]
	ldp	x11, x12, [x19, #16]
	ldr	w8, [x11, x8, lsl #2]
	ldr	w10, [x11]
	sub	w8, w8, w10
	str	w8, [x12, #4]
	ldr	w3, [x11]
	ldr	x10, [x19, #32]
	str	w3, [x10, #4]
	ldr	w8, [x12, #4]
	add	w8, w8, w3
	cmp	w8, #65
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x8
	b	LBB0_9
LBB0_2:
	cmp	w3, #33
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w8, [x11]
	ldr	x12, [x19, #40]
	str	w8, [x12]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	ldr	w13, [x9, #4]
	and	x13, x13, #0x1
	mov	w14, #2
	sub	x13, x14, x13
	add	x11, x11, x13, lsl #2
	add	x12, x12, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #8
	str	w13, [x12, x8, lsl #2]
	ldrsw	x13, [x9]
	add	x8, x8, #1
	cmp	x8, x13
	b.lt	LBB0_6
LBB0_7:
	ldr	w21, [x19, #88]
	ldr	x8, [x19, #48]
	ldr	s0, [x8, #8]
	scvtf	s0, s0
	ldr	s1, [x10, #4]
	scvtf	s1, s1
	fdiv	s0, s0, s1
	bl	_log2f
	mul	w0, w0, w21
	bl	_lrintf
	mov	x1, x0
	mov	w0, #1
	bl	_FFMAX
	str	w0, [x19, #56]
	cmp	w0, #6
	b.lt	LBB0_12
; %bb.8:
	mov	x3, x0
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	bl	_av_log
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x8, [x19, #40]
	ldr	w9, [x8]
	ldr	x14, [x19, #64]
	str	w9, [x14]
	ldr	w12, [x19, #56]
	cmp	w12, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x9, #0
	mov	w10, #0
	mov	w11, #0
	ldr	x13, [x19]
	add	x14, x14, #4
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	sub	w15, w15, w11
	add	w12, w12, w10
	sdiv	w12, w15, w12
	add	w11, w12, w11
	ldr	w12, [x8, w11, sxtw #2]
	str	w12, [x14, x9, lsl #2]
	ldrsw	x12, [x19, #56]
	sub	w10, w10, #1
	add	x9, x9, #1
	cmp	x9, x12
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_sbr_hf_calc_npatches
	tbnz	x0, #63, LBB0_10
; %bb.16:
	mov	x0, x19
	bl	_sbr_make_f_tablelim
	mov	w0, #0
	ldr	x8, [x19, #72]
	stp	xzr, xzr, [x8]
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stop frequency border too high: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Start frequency border too high: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Too many noise floor scale factors: %d\n"

	.comm	_CONST_RECIP_LN2,4,2            ; @CONST_RECIP_LN2
	.no_dead_strip	_sbr_make_f_derived
.subsections_via_symbols
