	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function mov_read_wave
LCPI0_0:
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mov_read_wave:                         ## @mov_read_wave
	.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
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_20
## %bb.1:
	movl	%edx, %r12d
	cmpl	$1073741825, %edx               ## imm = 0x40000001
	jl	LBB0_3
## %bb.2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_3:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %r13
	movq	(%r13), %rdi
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_QDM2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.4:
	movq	_AV_CODEC_ID_QDMC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.5:
	movq	_AV_CODEC_ID_SPEEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.6:
	cmpl	$9, %r12d
	jl	LBB0_19
## %bb.7:
	movq	_AV_CODEC_ID_ALAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	cmpl	$24, %r12d
	jb	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_ffio_ensure_seekback
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	%r15, %rdi
	callq	_avio_rb64
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$114, %edi
	movl	$109, %esi
	movl	$97, %edx
	callq	_MKBETAG
	movq	(%r13), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_17
## %bb.11:
	addl	$-8, %r12d
LBB0_12:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_mov_read_default
	testl	%eax, %eax
	jns	LBB0_20
	jmp	LBB0_15
LBB0_14:
	addq	$8, %rdi
	callq	_av_freep
	movq	(%rbx), %rdi
	movq	(%r13), %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_ff_get_extradata
	testl	%eax, %eax
	jns	LBB0_20
LBB0_15:
	movl	%eax, %r14d
	jmp	LBB0_20
LBB0_17:
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$36, %rdi
	callq	_av_mallocz
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	$36, 16(%rcx)
	movl	$36, %esi
	movq	%rax, %rdi
	callq	_AV_WB32
	movq	(%r13), %rax
	movq	8(%rax), %rbx
	addq	$4, %rbx
	movl	$97, %edi
	movl	$108, %esi
	movl	$97, %edx
	movl	$99, %ecx
	callq	_MKTAG
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_AV_WB32
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	addq	$12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_AV_WB64
	movq	(%r13), %rax
	movq	8(%rax), %rsi
	addq	$20, %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_avio_read
	addl	$-32, %r12d
LBB0_19:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_skip
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_QDM2,8,3           ## @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_QDMC,8,3           ## @AV_CODEC_ID_QDMC
	.comm	_AV_CODEC_ID_SPEEX,8,3          ## @AV_CODEC_ID_SPEEX
	.comm	_AV_CODEC_ID_ALAC,8,3           ## @AV_CODEC_ID_ALAC
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ALAC_EXTRADATA_SIZE,8,3        ## @ALAC_EXTRADATA_SIZE
	.no_dead_strip	_mov_read_wave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_wave
_mov_read_wave:                         ; @mov_read_wave
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x2
	mov	w10, #1
	movk	w10, #16384, lsl #16
	cmp	w20, w10
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_3:
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x8, #8]
	ldr	x23, [x8, w9, uxtw #3]
	ldr	x9, [x23]
	ldr	x8, [x9]
Lloh3:
	adrp	x10, _AV_CODEC_ID_QDM2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_QDM2@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _AV_CODEC_ID_QDMC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AV_CODEC_ID_QDMC@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _AV_CODEC_ID_SPEEX@GOTPAGE
Lloh10:
	ldr	x12, [x12, _AV_CODEC_ID_SPEEX@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_5
; %bb.4:
	add	x0, x9, #8
	bl	_av_freep
	ldr	x0, [x21]
	ldr	x1, [x23]
	mov	x2, x19
	mov	x3, x20
	bl	_ff_get_extradata
	tbz	w0, #31, LBB0_13
	b	LBB0_14
LBB0_5:
	cmp	w20, #9
	b.lt	LBB0_11
; %bb.6:
Lloh12:
	adrp	x9, _AV_CODEC_ID_ALAC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_ID_ALAC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w20, #24, #0, eq
	b.lo	LBB0_10
; %bb.7:
	mov	x0, x19
	mov	w1, #8
	bl	_ffio_ensure_seekback
	tbnz	w0, #31, LBB0_14
; %bb.8:
	mov	x0, x19
	bl	_avio_rb64
	mov	x22, x0
	mov	w8, #1120665600
	fmov	s0, w8
	mov	w0, #114
	mov	w1, #109
	mov	w2, #97
	bl	_MKBETAG
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_15
; %bb.9:
	mov	w8, #-8
	add	x20, x20, x8
LBB0_10:
	and	x2, x20, #0xffffffff
	mov	x0, x21
	mov	x1, x19
	bl	_mov_read_default
	tbz	w0, #31, LBB0_13
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	mov	x1, x20
LBB0_12:
	bl	_avio_skip
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh15:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x0, x8, #36
	bl	_av_mallocz
	ldr	x8, [x23]
	str	x0, [x8, #8]
	cbz	x0, LBB0_17
; %bb.16:
	mov	w9, #36
	str	x9, [x8, #16]
	mov	w1, #36
	bl	_AV_WB32
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x21, x8, #4
	mov	w0, #97
	mov	w1, #108
	mov	w2, #97
	mov	w3, #99
	bl	_MKTAG
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WB32
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x0, x8, #12
	mov	x1, x22
	bl	_AV_WB64
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x1, x8, #20
	mov	x0, x19
	mov	w2, #16
	bl	_avio_read
	sub	w1, w20, #32
	mov	x0, x19
	b	LBB0_12
LBB0_17:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_QDM2,8,3           ; @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_QDMC,8,3           ; @AV_CODEC_ID_QDMC
	.comm	_AV_CODEC_ID_SPEEX,8,3          ; @AV_CODEC_ID_SPEEX
	.comm	_AV_CODEC_ID_ALAC,8,3           ; @AV_CODEC_ID_ALAC
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ALAC_EXTRADATA_SIZE,8,3        ; @ALAC_EXTRADATA_SIZE
	.no_dead_strip	_mov_read_wave
.subsections_via_symbols
