	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_subframe_samples
_put_subframe_samples:                  ## @put_subframe_samples
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movslq	%ecx, %r14
	movq	(%rax,%r14,8), %rcx
	movslq	%edx, %rdi
	movl	(%rcx,%rdi,4), %ecx
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jg	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setg	%dil
	callq	_av_assert0
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rax,%r14,8), %rdx
	movslq	(%rdx,%rdi,4), %r8
	movl	-4(%rcx,%r8,4), %ecx
	movq	_ff_dca_quant_index_group_size@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	-4(%rdx,%r8,4), %ecx
	jge	LBB0_2
## %bb.7:
	decq	%r8
	movq	16(%r12), %rax
	addq	$24, %r12
	movq	(%rax,%r14,8), %rax
	shll	$3, %ebx
	movslq	%ebx, %rsi
	shlq	$3, %rsi
	addq	(%rax,%rdi,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_dca_vlc_enc_quant           ## TAILCALL
LBB0_2:
	cmpl	$7, %r8d
	jg	LBB0_3
## %bb.8:
	shll	$3, %ebx
	leaq	24(%r12), %r15
	movslq	%ebx, %r13
	movq	_ff_dca_quant_levels@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r8,4), %ecx
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%rdi,8), %rax
	leal	-1(%rcx), %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx), %esi
	decl	%esi
	sarl	%esi
	movl	24(%rax,%r13,8), %edx
	addl	%esi, %edx
	imull	%ecx, %edx
	addl	%esi, %edx
	addl	16(%rax,%r13,8), %edx
	imull	%ecx, %edx
	addl	%esi, %edx
	addl	8(%rax,%r13,8), %edx
	imull	%ecx, %edx
	addl	%esi, %edx
	addl	(%rax,%r13,8), %edx
	movq	_bit_consumption@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r8,4), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movq	%rdi, %rbx
	movq	%r15, %rdi
	callq	_put_bits
	movq	_ff_dca_quant_levels@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r12), %rax
	movq	16(%r12), %rdx
	movq	(%rax,%r14,8), %rax
	movslq	(%rax,%rbx,4), %rax
	movl	(%rcx,%rax,4), %esi
	movq	(%rdx,%r14,8), %rcx
	movq	(%rcx,%rbx,8), %rcx
	leal	-1(%rsi), %edx
	shrl	$31, %edx
	leal	(%rsi,%rdx), %edi
	decl	%edi
	sarl	%edi
	movl	56(%rcx,%r13,8), %edx
	addl	%edi, %edx
	imull	%esi, %edx
	addl	%edi, %edx
	addl	48(%rcx,%r13,8), %edx
	imull	%esi, %edx
	addl	%edi, %edx
	addl	40(%rcx,%r13,8), %edx
	imull	%esi, %edx
	addl	%edi, %edx
	addl	32(%rcx,%r13,8), %edx
	movq	_bit_consumption@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
LBB0_3:
	leaq	24(%r12), %r15
	shll	$3, %ebx
	movslq	%ebx, %rbx
	shlq	$3, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_bit_consumption@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%r14,8), %rax
	movslq	(%rax,%rdi,4), %rax
	movl	(%rcx,%rax,4), %eax
	leal	15(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$4, %esi
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%rdi,8), %rax
	addq	%rbx, %rax
	movq	(%rax,%r13,8), %rdx
	movq	%r15, %rdi
	callq	_put_sbits
	cmpq	$7, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	incq	%r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_CODE_BOOKS,4,2             ## @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ## @ff_dca_quant_index_group_size
	.comm	_ff_dca_quant_levels,8,3        ## @ff_dca_quant_levels
	.comm	_bit_consumption,8,3            ## @bit_consumption
	.no_dead_strip	_put_subframe_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_subframe_samples
_put_subframe_samples:                  ; @put_subframe_samples
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	sxtw	x21, w3
	ldr	x9, [x8, w3, sxtw #3]
	ldr	w9, [x9, w2, sxtw #2]
	sxtw	x22, w2
Lloh0:
	adrp	x10, _DCA_CODE_BOOKS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DCA_CODE_BOOKS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	lsl	x23, x21, #3
	cmp	w9, w10
	b.gt	LBB0_5
; %bb.1:
	cmp	w9, #0
	cset	w0, gt
	bl	_av_assert0
	ldp	x8, x9, [x19]
	ldr	x10, [x9, x23]
	ldr	x9, [x8, x23]
	ldrsw	x9, [x9, x22, lsl #2]
	sub	x4, x9, #1
	lsl	x11, x4, #2
	ldr	w3, [x10, x11]
Lloh3:
	adrp	x10, _ff_dca_quant_index_group_size@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ff_dca_quant_index_group_size@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w10, [x10, x11]
	cmp	w3, w10
	b.ge	LBB0_3
; %bb.2:
	add	x0, x19, #24
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	sxtw	x9, w20
	add	x1, x8, x9, lsl #6
	mov	w2, #8
                                        ; kill: def $w4 killed $w4 killed $x4
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ff_dca_vlc_enc_quant
LBB0_3:
	cmp	w9, #7
	b.gt	LBB0_5
; %bb.4:
	add	x21, x19, #24
Lloh6:
	adrp	x24, _ff_dca_quant_levels@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ff_dca_quant_levels@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x9, x9, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x23]
	lsl	x25, x22, #3
	ldr	x10, [x10, x25]
	sub	w11, w8, #1
	cmp	w11, #0
	csel	w11, w8, w11, lt
	asr	w11, w11, #1
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x20, x20, #6, #32
	add	x10, x10, x20
	ldr	w12, [x10, #24]
	add	w12, w11, w12
	ldr	w13, [x10, #16]
	madd	w12, w8, w12, w11
	add	w12, w12, w13
	ldr	w13, [x10, #8]
	madd	w12, w8, w12, w11
	add	w12, w12, w13
	ldr	w10, [x10]
	madd	w8, w8, w12, w11
	add	w2, w8, w10
Lloh8:
	adrp	x26, _bit_consumption@GOTPAGE
Lloh9:
	ldr	x26, [x26, _bit_consumption@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8, x9]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	mov	x0, x21
	bl	_put_bits
	ldr	x8, [x24]
	ldr	x9, [x19]
	ldr	x9, [x9, x23]
	ldrsw	x9, [x9, x22, lsl #2]
	lsl	x9, x9, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x23]
	ldr	x10, [x10, x25]
	sub	w11, w8, #1
	cmp	w11, #0
	csel	w11, w8, w11, lt
	asr	w11, w11, #1
	add	x10, x10, x20
	ldr	w12, [x10, #56]
	add	w12, w11, w12
	ldr	w13, [x10, #48]
	madd	w12, w8, w12, w11
	add	w12, w12, w13
	ldr	w13, [x10, #40]
	madd	w12, w8, w12, w11
	add	w12, w12, w13
	ldr	w10, [x10, #32]
	madd	w8, w8, w12, w11
	add	w2, w8, w10
	ldr	x8, [x26]
	ldr	w8, [x8, x9]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_put_bits
LBB0_5:
	mov	x24, #0
	add	x21, x19, #24
	lsl	w9, w20, #3
	sbfiz	x20, x9, #3, #32
Lloh10:
	adrp	x25, _bit_consumption@GOTPAGE
Lloh11:
	ldr	x25, [x25, _bit_consumption@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldr	x8, [x8, x23]
	ldrsw	x8, [x8, x22, lsl #2]
	ldr	w8, [x9, x8, lsl #2]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x23]
	asr	w1, w8, #4
	ldr	x8, [x9, x22, lsl #3]
	add	x8, x8, x20
	ldr	x2, [x8, x24]
	mov	x0, x21
	bl	_put_sbits
	cmp	x24, #56
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x24, x24, #8
	b	LBB0_6
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_CODE_BOOKS,4,2             ; @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ; @ff_dca_quant_index_group_size
	.comm	_ff_dca_quant_levels,8,3        ; @ff_dca_quant_levels
	.comm	_bit_consumption,8,3            ; @bit_consumption
	.no_dead_strip	_put_subframe_samples
.subsections_via_symbols
