	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wav_reader_read
_wav_reader_read:                       ## @wav_reader_read
	.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	%rdx, %rcx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	(%r12), %rsi
	imull	$8000000, %esi, %eax            ## imm = 0x7A1200
	movq	(%rdx), %rdx
	movq	(%rdx), %rdi
	cltd
	idivl	(%rdi)
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%r8d, %r8d
	jmp	LBB0_3
LBB0_2:
	movq	16(%r12), %rdi
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
LBB0_3:
	movq	$0, 8(%r12)
	leaq	(%rdi,%rsi), %rdx
	movq	24(%r12), %rbx
	movq	%rbx, %r13
	subq	%rsi, %r13
	cmpq	%rbx, %rdx
	cmovleq	%rdi, %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rdx
	testq	%rcx, (%rdx)
	je	LBB0_13
## %bb.6:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rdx
	testq	%rcx, (%rdx)
	je	LBB0_7
## %bb.8:
	movq	%r8, 24(%r15)
	movl	%eax, 4(%r15)
	movl	%eax, (%r15)
	movq	$0, 40(%r15)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_SKIP_BYTES
	jmp	LBB0_9
LBB0_4:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	%r8, 24(%r15)
	movl	%eax, 4(%r15)
	movl	%eax, (%r15)
	movq	$0, 40(%r15)
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testq	%rcx, (%rax)
	je	LBB0_16
## %bb.14:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_SKIP_BYTES
	subq	%rax, %r13
	movq	%r13, 8(%r12)
	addl	%eax, (%r12)
	jmp	LBB0_12
LBB0_16:
	movq	16(%r15), %rsi
	subq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_MIN
	movl	32(%r15), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_READ_BYTES
LBB0_9:
	subq	%rax, %r13
	movq	%r13, 8(%r12)
	jne	LBB0_11
## %bb.10:
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rcx, 24(%r15)
LBB0_11:
	addl	%eax, (%r12)
	addq	%rax, 8(%r15)
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,8,3 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ## @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,8,3 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_wav_reader_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wav_reader_read
_wav_reader_read:                       ; @wav_reader_read
	.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	x20, x1
	mov	x19, x0
	ldp	x10, x8, [x0]
	ldr	x22, [x8]
	ldrsw	x9, [x22]
	ldr	x8, [x10]
	ldr	x11, [x8]
	ldr	x10, [x22, #8]
	cbz	x10, LBB0_2
; %bb.1:
	mov	x8, #0
	b	LBB0_3
LBB0_2:
	ldr	x10, [x22, #16]
Lloh0:
	adrp	x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_3:
	ldr	w11, [x11]
	str	xzr, [x22, #8]
	ldr	x12, [x22, #24]
	sub	x13, x12, x9
	add	x14, x10, x9
	cmp	x14, x12
	csel	x21, x13, x10, gt
	cbz	x21, LBB0_7
; %bb.4:
	mov	w10, #4608
	movk	w10, #122, lsl #16
	mul	w9, w9, w10
	sdiv	w9, w9, w11
Lloh3:
	adrp	x10, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	tst	x10, x2
	b.eq	LBB0_8
; %bb.5:
Lloh6:
	adrp	x10, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	tst	x10, x2
	b.eq	LBB0_11
; %bb.6:
	str	x8, [x20, #24]
	stp	w9, w9, [x20]
	str	xzr, [x20, #40]
	mov	x0, x19
	mov	x1, x21
	bl	_SKIP_BYTES
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	str	x8, [x20, #24]
	stp	w9, w9, [x20]
	str	xzr, [x20, #40]
Lloh11:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	tst	x8, x2
	b.eq	LBB0_12
; %bb.9:
Lloh14:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_SKIP_BYTES
	sub	x8, x21, x0
	str	x8, [x22, #8]
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	b	LBB0_16
LBB0_12:
	ldp	x9, x8, [x20, #8]
	sub	x1, x8, x9
	mov	x0, x21
	bl	_MIN
	mov	x2, x0
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_READ_BYTES
LBB0_13:
	subs	x8, x21, x0
	str	x8, [x22, #8]
	b.ne	LBB0_15
; %bb.14:
Lloh16:
	adrp	x8, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x20, #24]
	orr	x8, x9, x8
	str	x8, [x20, #24]
LBB0_15:
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	ldr	x8, [x20, #8]
	add	x8, x8, x0
	str	x8, [x20, #8]
LBB0_16:
	mov	x0, x19
	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	_STREAM_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,8,3 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ; @VC_CONTAINER_READ_FLAG_INFO
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,8,3 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_wav_reader_read
.subsections_via_symbols
