	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_audio
_extract_audio:                         ## @extract_audio
	.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
	movl	%edx, %ebx
	testl	%edx, %edx
	setns	%al
	movq	_DCA_ABITS_MAX@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert1
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%ebx, %rdx
	movl	-4(%rax,%rdx,4), %ecx
	movq	_ff_dca_quant_index_group_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	-4(%rax,%rdx,4), %ecx
	jge	LBB0_4
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_huffman_codes            ## TAILCALL
LBB0_1:
	movq	_DCA_SUBBAND_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_6
LBB0_4:
	cmpl	$7, %ebx
	jg	LBB0_5
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_block_codes              ## TAILCALL
LBB0_5:
	addq	$8, %r15
	movq	_DCA_SUBBAND_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$-3, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_get_array
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_ABITS_MAX,4,2              ## @DCA_ABITS_MAX
	.comm	_DCA_SUBBAND_SAMPLES,4,2        ## @DCA_SUBBAND_SAMPLES
	.comm	_DCA_CODE_BOOKS,4,2             ## @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ## @ff_dca_quant_index_group_size
	.no_dead_strip	_extract_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_audio
_extract_audio:                         ; @extract_audio
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	w2, #0
Lloh0:
	adrp	x8, _DCA_ABITS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCA_ABITS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w2, #8, ge
	cset	w0, ge
	bl	_av_assert1
	cbz	w20, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _DCA_CODE_BOOKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCA_CODE_BOOKS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.lt	LBB0_7
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8, w22, sxtw #3]
	sub	w9, w20, #1
	sbfiz	x9, x9, #2, #32
	ldr	w3, [x8, x9]
Lloh6:
	adrp	x8, _ff_dca_quant_index_group_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_dca_quant_index_group_size@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	cmp	w3, w8
	b.ge	LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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
	b	_parse_huffman_codes
LBB0_4:
Lloh9:
	adrp	x8, _DCA_SUBBAND_SAMPLES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DCA_SUBBAND_SAMPLES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	b	LBB0_8
LBB0_5:
	cmp	w20, #7
	b.gt	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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
	b	_parse_block_codes
LBB0_7:
	add	x0, x21, #8
Lloh12:
	adrp	x8, _DCA_SUBBAND_SAMPLES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DCA_SUBBAND_SAMPLES@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	sub	w3, w20, #3
	mov	x1, x19
	bl	_get_array
LBB0_8:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_ABITS_MAX,4,2              ; @DCA_ABITS_MAX
	.comm	_DCA_SUBBAND_SAMPLES,4,2        ; @DCA_SUBBAND_SAMPLES
	.comm	_DCA_CODE_BOOKS,4,2             ; @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ; @ff_dca_quant_index_group_size
	.no_dead_strip	_extract_audio
.subsections_via_symbols
