	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vorbis_encode_frame
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vorbis_encode_frame:                   ## @vorbis_encode_frame
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movq	(%r12), %rax
	movl	4(%rax), %ecx
	decl	%ecx
	movl	$1, %r14d
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rdx, %rbx
	leaq	32(%r12), %rdi
	movq	%rdx, %rsi
	callq	_ff_af_queue_add
	testl	%eax, %eax
	js	LBB0_59
## %bb.2:
	movq	%rbx, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	leaq	80(%r12), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_ff_bufqueue_add
	movl	(%r15), %esi
	movl	80(%r12), %ecx
	imull	%esi, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jge	LBB0_11
	jmp	LBB0_59
LBB0_4:
	cmpl	$0, 32(%r12)
	je	LBB0_58
## %bb.5:
	movl	80(%r12), %ecx
	movl	(%r15), %esi
	movl	%esi, %eax
	imull	%ecx, %eax
	cmpl	%r14d, %eax
	jge	LBB0_11
## %bb.6:
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	subl	%ecx, %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.7:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	addq	$80, %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	movq	%r15, %rdi
	callq	_spawn_empty_frame
	testq	%rax, %rax
	je	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_ff_bufqueue_add
	decl	%ebx
	jne	LBB0_8
## %bb.10:
	movl	(%r15), %esi
	movq	%r13, %r12
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	movq	%r12, %rdi
	callq	_move_audio
	movq	%r12, %rdi
	callq	_apply_window_and_mdct
	testl	%eax, %eax
	je	LBB0_58
## %bb.12:
	movq	%r15, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_59
## %bb.13:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_put_bits
	movl	-56(%rbp), %ebx
	movq	%r14, %rdi
	callq	_put_bits_count
	subl	%eax, %ebx
	movq	72(%r12), %rdi
	decq	%rdi
	callq	_ilog
	cmpl	%eax, %ebx
	jle	LBB0_52
## %bb.14:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	72(%r12), %rdi
	decq	%rdi
	callq	_ilog
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	56(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	64(%r12), %rax
	movq	16(%rax), %rbx
	cmpq	$0, 24(%rax)
	je	LBB0_16
## %bb.15:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
LBB0_16:
	movl	8(%r12), %r9d
	leaq	(%rbx,%rbx,2), %rbx
	testl	%r9d, %r9d
	jle	LBB0_21
## %bb.17:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	addq	$8, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rax,%rcx,8), %rbx
	shlq	$2, %rbx
	addq	48(%r12), %rbx
	movq	_MAX_FLOOR_VALUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r13
	shlq	$2, %r13
	movq	16(%r12), %rdx
	addq	%r13, %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r8, %rcx
	movl	%r15d, %r8d
	callq	_floor_fit
	addq	24(%r12), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	%r13, %r8
	movl	%r15d, %r9d
	callq	_floor_encode
	testq	%rax, %rax
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	incq	%r14
	movslq	8(%r12), %r9
	cmpq	%r9, %r14
	jl	LBB0_18
## %bb.20:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_21:
	movl	%r9d, %esi
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	testl	%esi, %esi
	jle	LBB0_41
## %bb.22:
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	%esi, %edx
	cmpl	$4, %esi
	jb	LBB0_23
## %bb.27:
	leaq	(%rcx,%rdx,4), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_30
## %bb.28:
	leaq	(%rax,%rdx,4), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_30
LBB0_23:
	xorl	%esi, %esi
LBB0_37:
	movq	%rsi, %rdi
	notq	%rdi
	testb	$1, %dl
	je	LBB0_39
## %bb.38:
	movss	(%rax,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	(%rcx,%rsi,4), %xmm0
	movss	%xmm0, (%rax,%rsi,4)
	orq	$1, %rsi
LBB0_39:
	addq	%rdx, %rdi
	je	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rax,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	(%rcx,%rsi,4), %xmm0
	movss	4(%rax,%rsi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax,%rsi,4)
	divss	4(%rcx,%rsi,4), %xmm1
	movss	%xmm1, 4(%rax,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_40
	jmp	LBB0_41
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_59
LBB0_30:
	movq	%rbx, %r11
	movl	%edx, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.31:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%ebx, %ebx
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rbx,4), %xmm0
	movups	(%rax,%rbx,4), %xmm1
	divps	%xmm0, %xmm1
	movups	16(%rax,%rbx,4), %xmm0
	movups	%xmm1, (%rax,%rbx,4)
	movups	16(%rcx,%rbx,4), %xmm1
	divps	%xmm1, %xmm0
	movups	%xmm0, 16(%rax,%rbx,4)
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_32
	jmp	LBB0_34
LBB0_33:
	xorl	%ebx, %ebx
LBB0_34:
	testb	$1, %r8b
	je	LBB0_36
## %bb.35:
	movups	(%rcx,%rbx,4), %xmm0
	movups	(%rax,%rbx,4), %xmm1
	divps	%xmm0, %xmm1
	movups	%xmm1, (%rax,%rbx,4)
LBB0_36:
	cmpq	%rdx, %rsi
	movq	%r11, %rbx
	jne	LBB0_37
LBB0_41:
	shlq	$4, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %r14
	movl	16(%rax,%rbx), %r10d
	movq	16(%r12), %r8
	testl	%r10d, %r10d
	jle	LBB0_51
## %bb.42:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	24(%rax,%r14), %r11
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmpl	$2, %edx
	movl	$1, %edi
	cmovgel	%edx, %edi
	movq	32(%rax,%r14), %rbx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	incq	%rax
	cmpq	%r10, %rax
	je	LBB0_51
LBB0_44:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 Depth 2
	movl	(%r11,%rax,4), %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	shll	%cl, %edx
	movl	(%rbx,%rax,4), %esi
	shll	%cl, %esi
	cmpl	$31, %ecx
	je	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movslq	%edx, %rcx
	leaq	(%r8,%rcx,4), %rcx
	movslq	%esi, %rdx
	leaq	(%r8,%rdx,4), %rdx
	xorl	%esi, %esi
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=2
	incq	%rsi
	cmpq	%rsi, %rdi
	je	LBB0_43
LBB0_47:                                ##   Parent Loop BB0_44 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rdx,%rsi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	subss	(%rcx,%rsi,4), %xmm3
	movss	%xmm3, (%rdx,%rsi,4)
	movss	(%rcx,%rsi,4), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm4
	jbe	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=2
	xorps	%xmm1, %xmm3
	movss	%xmm3, (%rdx,%rsi,4)
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=2
	ucomiss	%xmm3, %xmm0
	jbe	LBB0_46
## %bb.50:                              ##   in Loop: Header=BB0_47 Depth=2
	movss	%xmm2, (%rcx,%rsi,4)
	jmp	LBB0_46
LBB0_51:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%r14), %rax
	movq	40(%rcx,%r14), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rsi
	shlq	$2, %rsi
	addq	40(%r12), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r8, %rcx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_residue_encode
	testq	%rax, %rax
	je	LBB0_54
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_53:
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_59
LBB0_54:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
	sarl	$3, %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	addq	$32, %r12
	leaq	8(%rbx), %rdx
	leaq	4(%rbx), %r15
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	callq	_ff_af_queue_remove
	cmpl	4(%rbx), %r14d
	jle	LBB0_57
## %bb.55:
	movq	_AV_PKT_DATA_SKIP_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_av_packet_new_side_data
	testq	%rax, %rax
	je	LBB0_61
## %bb.56:
	addq	$16, %rax
	subl	(%r15), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_AV_WL32
LBB0_57:
	movl	$1, (%r13)
LBB0_58:
	xorl	%eax, %eax
LBB0_59:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_62
## %bb.60:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_61:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_62:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"output buffer is too small\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_FLOOR_VALUES,4,2           ## @MAX_FLOOR_VALUES
	.comm	_AV_PKT_DATA_SKIP_SAMPLES,4,2   ## @AV_PKT_DATA_SKIP_SAMPLES
	.no_dead_strip	_vorbis_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vorbis_encode_frame
_vorbis_encode_frame:                   ; @vorbis_encode_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #64
	mov	x20, x3
	mov	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x0, #8]
	ldr	x8, [x23]
	ldr	w8, [x8, #4]
	sub	w26, w8, #1
	mov	w8, #1
	lsl	w21, w8, w26
	cbz	x2, LBB0_4
; %bb.1:
	mov	x24, x2
	add	x0, x23, #32
	mov	x1, x2
	bl	_ff_af_queue_add
	tbnz	w0, #31, LBB0_45
; %bb.2:
	mov	x0, x24
	bl	_av_frame_clone
	cbz	x0, LBB0_27
; %bb.3:
	mov	x2, x0
	add	x1, x23, #80
	mov	x0, x22
	bl	_ff_bufqueue_add
	ldr	w8, [x23, #80]
	ldr	w1, [x22]
	mul	w8, w1, w8
	cmp	w8, w21
	b.ge	LBB0_10
	b	LBB0_26
LBB0_4:
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_26
; %bb.5:
	mov	x24, x23
	ldr	w8, [x24, #80]!
	ldr	w1, [x22]
	mul	w9, w1, w8
	cmp	w9, w21
	b.ge	LBB0_10
; %bb.6:
	sdiv	w9, w21, w1
	sub	w19, w9, w8
	cmp	w19, #1
	b.lt	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x22
	bl	_spawn_empty_frame
	cbz	x0, LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_ff_bufqueue_add
	subs	w19, w19, #1
	b.ne	LBB0_7
; %bb.9:
	ldr	w1, [x22]
LBB0_10:
	mov	x0, x23
	bl	_move_audio
	mov	x0, x23
	bl	_apply_window_and_mdct
	cbz	w0, LBB0_45
; %bb.11:
	mov	x0, x22
	mov	x1, x25
	mov	w2, #8192
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_45
; %bb.12:
	ldr	w1, [x25, #12]
	ldr	w2, [x25]
	sub	x0, x29, #96
	bl	_init_put_bits
	ldur	w19, [x29, #-96]
	sub	x0, x29, #96
	bl	_put_bits_count
	sub	w19, w19, w0
	ldr	x8, [x23, #72]
	sub	x0, x8, #1
	bl	_ilog
	cmp	w19, w0
	b.le	LBB0_43
; %bb.13:
	sub	x0, x29, #96
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	x8, [x23, #72]
	sub	x0, x8, #1
	bl	_ilog
	mov	x1, x0
	sub	x0, x29, #96
	mov	w2, #1
	bl	_put_bits
	ldp	x19, x8, [x23, #56]
	ldp	x24, x8, [x8, #16]
	cbz	x8, LBB0_15
; %bb.14:
	sub	x0, x29, #96
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	sub	x0, x29, #96
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
LBB0_15:
	ldr	w5, [x23, #8]
	cmp	w5, #1
	b.lt	LBB0_20
; %bb.16:
	stp	x25, x20, [x29, #-128]          ; 16-byte Folded Spill
	stur	w21, [x29, #-100]               ; 4-byte Folded Spill
	mov	x27, #0
	mov	w8, #48
	stp	x24, x19, [x29, #-144]          ; 16-byte Folded Spill
	madd	x19, x24, x8, x19
	add	x8, x19, #8
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	w21, w21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
	ldr	x8, [x23, #48]
	ldr	x9, [x19]
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	ldr	x10, [x10]
	ldr	x10, [x10, x27, lsl #3]
	ldr	x9, [x9, x10, lsl #3]
	add	x24, x8, x9, lsl #2
Lloh3:
	adrp	x8, _MAX_FLOOR_VALUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_FLOOR_VALUES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	x8, [x23, #16]
	lsl	w9, w27, w26
	sbfiz	x20, x9, #2, #32
	add	x2, x8, x20
	mov	x0, x23
	mov	x1, x24
	mov	x3, x25
	mov	x4, x21
	bl	_floor_fit
	ldr	x8, [x23, #24]
	add	x4, x8, x20
	sub	x2, x29, #96
	mov	x0, x23
	mov	x1, x24
	mov	x3, x25
	mov	x5, x21
	bl	_floor_encode
	cbnz	x0, LBB0_47
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	sp, x28
	add	x27, x27, #1
	ldrsw	x5, [x23, #8]
	cmp	x27, x5
	b.lt	LBB0_17
; %bb.19:
	ldp	x25, x20, [x29, #-128]          ; 16-byte Folded Reload
	ldur	w21, [x29, #-100]               ; 4-byte Folded Reload
	ldp	x24, x19, [x29, #-144]          ; 16-byte Folded Reload
LBB0_20:
	lsl	w8, w5, w26
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.21:
	ldp	x10, x9, [x23, #16]
	cmp	w8, #16
	b.lo	LBB0_29
; %bb.22:
	lsl	x11, x8, #2
	add	x12, x10, x11
	add	x11, x9, x11
	cmp	x10, x11
	ccmp	x9, x12, #2, lo
	b.lo	LBB0_29
; %bb.23:
	and	x11, x8, #0xfffffff0
	add	x12, x10, #32
	add	x13, x9, #32
	mov	x14, x11
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12]
	fdiv.4s	v0, v4, v0
	fdiv.4s	v1, v5, v1
	fdiv.4s	v2, v6, v2
	fdiv.4s	v3, v7, v3
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_24
; %bb.25:
	cmp	x11, x8
	b.ne	LBB0_30
	b	LBB0_32
LBB0_26:
	mov	w0, #0
	b	LBB0_45
LBB0_27:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.28:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_29:
	mov	x11, #0
LBB0_30:
	lsl	x12, x11, #2
	add	x10, x10, x12
	add	x9, x9, x12
	sub	x8, x8, x11
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x9], #4
	ldr	s1, [x10]
	fdiv	s0, s1, s0
	str	s0, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_31
LBB0_32:
	mov	w8, #48
	mul	x8, x24, x8
	add	x8, x19, x8
	ldr	w8, [x8, #16]
	ldr	x3, [x23, #16]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.33:
	mov	x9, #0
	mov	w10, #48
	mul	x10, x24, x10
	add	x11, x19, x10
	ldp	x10, x11, [x11, #24]
	cmp	w21, #1
	csinc	w12, w21, wzr, gt
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_42
LBB0_35:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_38 Depth 2
	cmp	w26, #31
	b.eq	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	lsl	x14, x9, #2
	ldr	w13, [x10, x14]
	lsl	w13, w13, w26
	add	x13, x3, w13, sxtw #2
	ldr	w14, [x11, x14]
	lsl	w14, w14, w26
	add	x14, x3, w14, sxtw #2
	mov	x15, x12
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=2
	add	x13, x13, #4
	add	x14, x14, #4
	subs	x15, x15, #1
	b.eq	LBB0_34
LBB0_38:                                ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x14]
	ldr	s1, [x13]
	fsub	s1, s0, s1
	str	s1, [x14]
	ldr	s2, [x13]
	fcmp	s2, #0.0
	b.le	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=2
	fneg	s1, s1
	str	s1, [x14]
LBB0_40:                                ;   in Loop: Header=BB0_38 Depth=2
	fcmp	s1, #0.0
	b.pl	LBB0_37
; %bb.41:                               ;   in Loop: Header=BB0_38 Depth=2
	str	s0, [x13]
	b	LBB0_37
LBB0_42:
	ldr	x8, [x23, #40]
	mov	w9, #48
	mul	x9, x24, x9
	add	x9, x19, x9
	ldr	x10, [x9, #40]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x9, [x10, x9, lsl #3]
	add	x1, x8, x9, lsl #2
	sub	x2, x29, #96
	mov	x0, x23
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_residue_encode
	cbz	x0, LBB0_48
LBB0_43:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_44:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_45:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.46:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_47:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	sp, x28
	b	LBB0_45
LBB0_48:
	sub	x0, x29, #96
	bl	_flush_put_bits
	sub	x0, x29, #96
	bl	_put_bits_count
	asr	w8, w0, #3
	str	w8, [x25]
	add	x0, x23, #32
	add	x2, x25, #8
	add	x22, x25, #4
	mov	x1, x21
	mov	x3, x22
	bl	_ff_af_queue_remove
	ldr	w8, [x25, #4]
	cmp	w21, w8
	b.le	LBB0_51
; %bb.49:
Lloh32:
	adrp	x8, _AV_PKT_DATA_SKIP_SAMPLES@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_PKT_DATA_SKIP_SAMPLES@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #10
	bl	_av_packet_new_side_data
	cbz	x0, LBB0_52
; %bb.50:
	add	x0, x0, #16
	ldr	w8, [x22]
	sub	w1, w21, w8
	bl	_AV_WL32
LBB0_51:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_45
LBB0_52:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_44
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"output buffer is too small\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_FLOOR_VALUES,4,2           ; @MAX_FLOOR_VALUES
	.comm	_AV_PKT_DATA_SKIP_SAMPLES,4,2   ; @AV_PKT_DATA_SKIP_SAMPLES
	.no_dead_strip	_vorbis_encode_frame
.subsections_via_symbols
