	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_frame_setup_input
_celt_frame_setup_input:                ## @celt_frame_setup_input
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movslq	(%rax), %r15
	movl	4(%rdi), %edi
	callq	_OPUS_BLOCK_SIZE
	cltd
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	idivl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ff_bufqueue_get
	movq	%rax, -48(%rbp)
	cmpl	$0, (%r14)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r12
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movl	16(%r13), %edi
	callq	_av_get_bytes_per_sample
	movq	(%r12,%r15), %rdi
	imulq	8(%r13), %rax
	movq	%r14, %rsi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_memcpy
	incq	%rbx
	movslq	(%r14), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_15
## %bb.4:
	leal	-1(%rax), %r15d
	movl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	cmpq	%r15, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ff_bufqueue_peek
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_bufqueue_get
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -48(%rbp)
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	imulq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	$1, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r12
	movq	(%rax), %rcx
	movq	(%rcx,%r15), %r13
	movl	16(%rax), %edi
	callq	_av_get_bytes_per_sample
	movq	%rax, %r14
	movq	-48(%rbp), %rax
	movq	8(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rbx
	subq	%rsi, %rbx
	imulq	%r14, %rbx
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	imulq	%rax, %r14
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	(%r12,%r15,2), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r12,%r15,2), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movslq	(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %rcx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-48(%rbp), %rax
	addq	$8, %r15
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%r15, %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_14
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_celt_frame_setup_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_frame_setup_input
_celt_frame_setup_input:                ; @celt_frame_setup_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldrsw	x21, [x8]
	ldr	w0, [x0, #4]
	bl	_OPUS_BLOCK_SIZE
	sdiv	w8, w0, w21
	stp	x20, x8, [sp, #8]               ; 16-byte Folded Spill
	mov	x0, x20
	bl	_ff_bufqueue_get
	str	x0, [sp, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x20, #0
	mov	w24, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #8]
	ldr	x8, [x22]
	ldr	x23, [x8, x20, lsl #3]
	ldr	w0, [x22, #16]
	bl	_av_get_bytes_per_sample
	ldr	x8, [x25, x24]
	ldr	x9, [x22, #8]
	mul	x2, x9, x0
	mov	x0, x8
	mov	x1, x23
	bl	_memcpy
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x24, x24, #16
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, sp, #24
	bl	_av_frame_free
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	subs	w20, w8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x27, #0
	str	x20, [sp]                       ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	x27, x20
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	w1, #0
	bl	_ff_bufqueue_peek
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_ff_bufqueue_get
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [sp, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	mov	x25, #0
	mul	x20, x27, x21
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x19, #8]
	ldr	x8, [x0]
	ldr	x22, [x8, x25, lsl #3]
	ldr	w0, [x0, #16]
	bl	_av_get_bytes_per_sample
	mov	x23, x0
	ldr	x8, [sp, #24]
	ldr	x1, [x8, #8]
	sub	x8, x21, x1
	mul	x24, x8, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mul	x2, x0, x23
	ldr	x8, [x26, x28]
	add	x0, x8, x20, lsl #2
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x26, x28]
	ldr	x9, [sp, #24]
	ldr	x9, [x9, #8]
	add	x0, x8, x9, lsl #2
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	add	x25, x25, #1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x0, [sp, #24]
	add	x28, x28, #16
	b	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cmp	x27, x20
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	bl	_av_frame_free
	b	LBB0_5
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_celt_frame_setup_input
.subsections_via_symbols
