	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebuild_filter_bank_with_compensation
_rebuild_filter_bank_with_compensation: ## @rebuild_filter_bank_with_compensation
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	xorl	%ebx, %ebx
	cmpl	4(%rdi), %r14d
	jne	LBB0_2
LBB0_1:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpl	$0, 72(%r12)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, 8(%r12)
	sete	%dil
LBB0_4:
	callq	_av_assert0
	movl	12(%r12), %edi
	leal	1(%r14), %esi
	imull	16(%r12), %esi
	callq	_av_calloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	movl	68(%r12), %edx
	movb	20(%r12), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	64(%r12), %ecx
	movl	12(%r12), %r8d
	movl	60(%r12), %r10d
	movl	56(%r12), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	callq	_build_filter
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movl	12(%r12), %edx
	movl	16(%r12), %eax
	movl	%edx, %ecx
	imull	%r14d, %ecx
	incl	%ecx
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	leaq	(%r15,%rcx,4), %rdi
	decl	%edx
	imull	%eax, %edx
	movq	%r15, %rsi
	callq	_memcpy
	movl	12(%r12), %eax
	movl	16(%r12), %edx
	movl	%eax, %ecx
	imull	%r14d, %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r15,%rcx,4), %rdi
	decl	%eax
	imull	%edx, %eax
	cltq
	leaq	(%r15,%rax,4), %rsi
	callq	_memcpy
	movl	24(%r12), %ecx
	movl	%r14d, %eax
	cltd
	idivl	4(%r12)
	imull	28(%r12), %eax
	movq	_INT32_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_av_reduce
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	-40(%rbp), %ecx
	movl	%ecx, 24(%r12)
	movl	-36(%rbp), %edx
	movl	%edx, 28(%r12)
	cmpl	$1048575, %edx                  ## imm = 0xFFFFF
	jg	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1048575, %ecx                  ## imm = 0xFFFFF
	jg	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leal	(%rdx,%rdx), %eax
	movl	%eax, 28(%r12)
	addl	%ecx, %ecx
	movl	%ecx, 24(%r12)
	cmpl	$524288, %edx                   ## imm = 0x80000
	movl	%eax, %edx
	jl	LBB0_8
	jmp	LBB0_15
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_1
LBB0_14:
	movl	%edx, %eax
LBB0_15:
	movl	%eax, 32(%r12)
	cltd
	idivl	%ecx
	movl	%eax, 36(%r12)
	movl	%edx, 8(%r12)
	movl	%r14d, %eax
	cltd
	idivl	4(%r12)
	imull	40(%r12), %eax
	movl	%eax, 40(%r12)
	movl	%r14d, 4(%r12)
	leaq	48(%r12), %rdi
	callq	_av_freep
	movq	%r15, 48(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT32_MAX,4,2                  ## @INT32_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rebuild_filter_bank_with_compensation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebuild_filter_bank_with_compensation
_rebuild_filter_bank_with_compensation: ; @rebuild_filter_bank_with_compensation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldp	w20, w8, [x0]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:
	mov	x0, 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
	add	sp, sp, #80
	ret
LBB0_3:
	mov	x19, x0
	ldr	w8, [x0, #72]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
LBB0_6:
	bl	_av_assert0
	ldp	w0, w8, [x19, #12]
	madd	w1, w8, w20, w8
	bl	_av_calloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
	ldp	w3, w2, [x19, #64]
	ldr	w4, [x19, #12]
	ldr	w8, [x19, #20]
	mov	w9, #1
	lsl	w6, w9, w8
	ldp	w8, w7, [x19, #56]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x20
	bl	_build_filter
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldp	w8, w9, [x19, #12]
	mul	w10, w8, w20
	madd	w10, w9, w10, w9
	add	x0, x21, w10, sxtw #2
	sub	w8, w8, #1
	mul	w2, w8, w9
	mov	x1, x21
	bl	_memcpy
	ldp	w8, w2, [x19, #12]
	mul	w9, w8, w20
	mul	w9, w9, w2
	add	x0, x21, w9, sxtw #2
	sub	w8, w8, #1
	mul	w8, w8, w2
	add	x1, x21, w8, sxtw #2
	bl	_memcpy
	ldp	w2, w8, [x19, #24]
	ldr	w9, [x19, #4]
	sdiv	w9, w20, w9
	mul	w3, w9, w8
Lloh0:
	adrp	x8, _INT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w4, w8, #1
	add	x0, sp, #20
	add	x1, sp, #16
	bl	_av_reduce
	cbz	w0, LBB0_16
; %bb.9:
	ldp	w9, w8, [sp, #16]
	stp	w8, w9, [x19, #24]
	cmp	w9, #256, lsl #12               ; =1048576
	b.ge	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #256, lsl #12               ; =1048576
	b.ge	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	w10, w9, #1
	lsl	w8, w8, #1
	stp	w8, w10, [x19, #24]
	cmp	w9, #128, lsl #12               ; =524288
	mov	x9, x10
	b.lt	LBB0_10
	b	LBB0_15
LBB0_12:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_13:
	mov	x22, x0
	add	x0, sp, #24
	bl	_av_freep
	b	LBB0_2
LBB0_14:
	mov	x10, x9
LBB0_15:
	sdiv	w9, w10, w8
	stp	w10, w9, [x19, #32]
	ldr	w11, [x19, #4]
	ldr	w12, [x19, #40]
	sdiv	w11, w20, w11
	mul	w11, w12, w11
	str	w11, [x19, #40]
	msub	w8, w9, w8, w10
	stp	w20, w8, [x19, #4]
	add	x0, x19, #48
	bl	_av_freep
	mov	w22, #0
	str	x21, [x19, #48]
	b	LBB0_2
LBB0_16:
	add	x0, sp, #24
	bl	_av_freep
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT32_MAX,4,2                  ; @INT32_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rebuild_filter_bank_with_compensation
.subsections_via_symbols
