	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_wave_data
_read_wave_data:                        ## @read_wave_data
	.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, %rax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_vtable@GOTPCREL(%rip), %rdx
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
	xorl	%ecx, %ecx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	notl	%ecx
	addl	(%rdi), %ecx
	movl	$1, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	movq	(%rdx), %rsi
	addq	$12, %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_qdmc_get_vlc
	testl	%eax, %eax
	js	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leal	-1(%r14), %r15d
	movl	$2, %edx
	movl	$1, %esi
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	subl	%r14d, %edx
	movl	$1, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=2
	incl	%r13d
	movq	_vtable@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$12, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_qdmc_get_vlc
	testl	%eax, %eax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	js	LBB0_19
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%r13d, %ecx
	movl	%eax, %r13d
	addl	%ecx, %r13d
	cmpl	%r15d, %r13d
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	addl	%edx, %r13d
	addl	%esi, %r12d
	addl	%r14d, %ebx
	cmpl	%r15d, %r13d
	jge	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	4(%rdi), %ebx
	jge	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$2, 8(%rdi)
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_vtable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	$8, %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	movq	%rax, %r14
	callq	_qdmc_get_vlc
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, %edx
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	_vtable@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	$16, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_qdmc_get_vlc
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rsi
	addq	$20, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_qdmc_get_vlc
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	subl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	subl	%eax, %ecx
	leal	8(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%r13d, %eax
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	incl	%eax
	cmpl	12(%r14), %eax
	jge	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	andl	$1, %r8d
	movl	%edx, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	callq	_add_tone
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	xorl	$1, %r8d
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_add_tone
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cmpl	$5, %ecx
	movq	_vtable@GOTPCREL(%rip), %rdx
	jne	LBB0_1
## %bb.21:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vtable,8,3                     ## @vtable
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_read_wave_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_wave_data
_read_wave_data:                        ; @read_wave_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x28, x1
	mov	x23, x0
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x27, _vtable@GOTPAGE
Lloh1:
	ldr	x27, [x27, _vtable@GOTPAGEOFF]
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
	stp	x1, x0, [sp, #24]               ; 16-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	w19, [x23]
	ldr	x8, [x27]
	add	x1, x8, #12
	mov	x0, x28
	mov	w2, #1
	bl	_qdmc_get_vlc
	tbnz	w0, #31, LBB0_21
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	mov	w21, #0
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	mvn	w8, w9
	add	w8, w19, w8
	mov	w10, #1
	lsl	w25, w10, w8
	mov	w8, #4
	sub	w9, w8, w9
	sub	w22, w25, #1
	mov	w8, #2
	sub	w20, w8, w25
	mov	w23, #1
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	lsl	w19, w23, w9
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w23, w26, #1
Lloh2:
	adrp	x27, _vtable@GOTPAGE
Lloh3:
	ldr	x27, [x27, _vtable@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x1, x8, #12
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	w2, #1
	bl	_qdmc_get_vlc
	tbnz	w0, #31, LBB0_21
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	add	w26, w0, w23
	cmp	w26, w22
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w21, w21, w25
	add	w24, w24, w19
	add	w26, w26, w20
	cmp	w26, w22
	b.ge	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23, #4]
	cmp	w21, w8
	b.ge	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23, #8]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x28
	mov	w1, #2
	bl	_get_bits
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x27]
	add	x1, x8, #8
	mov	x0, x28
	mov	w2, #0
	bl	_qdmc_get_vlc
	tbnz	w0, #31, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x27, x0
	mov	x0, x28
	mov	w1, #3
	bl	_get_bits
	mov	x6, x0
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=2
	stp	w6, w27, [sp, #8]               ; 8-byte Folded Spill
Lloh4:
	adrp	x27, _vtable@GOTPAGE
Lloh5:
	ldr	x27, [x27, _vtable@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x1, x8, #16
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	w2, #0
	bl	_qdmc_get_vlc
	tbnz	w0, #31, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x23, x0
	ldr	x8, [x27]
	add	x1, x8, #20
	mov	x0, x28
	mov	w2, #0
	bl	_qdmc_get_vlc
	tbnz	w0, #31, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=2
	ldp	w6, w27, [sp, #8]               ; 8-byte Folded Reload
	sub	w8, w27, w23
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	sub	w8, w6, w0
	add	w9, w8, #8
	cmp	w8, #0
	csel	w8, w9, w8, lt
	str	w8, [sp]                        ; 4-byte Folded Spill
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	asr	w8, w26, w8
	add	w8, w8, #1
	ldr	w9, [x23, #12]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x28, x23
	mov	x5, x27
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
	and	w23, w27, #0x1
	mov	x0, x28
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	mov	x2, x24
	mov	x3, x26
	mov	x4, x23
	bl	_add_tone
	cmp	w27, #2
	b.lt	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=2
	eor	w4, w23, #0x1
	mov	x0, x28
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	mov	x2, x24
	mov	x3, x26
	ldp	w6, w5, [sp]                    ; 8-byte Folded Reload
	bl	_add_tone
	b	LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	cmp	w8, #5
	b.ne	LBB0_1
; %bb.20:
	mov	w0, #0
	b	LBB0_22
LBB0_21:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vtable,8,3                     ; @vtable
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_wave_data
.subsections_via_symbols
