	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_decode_convert_and_store
_read_decode_convert_and_store:         ## @read_decode_convert_and_store
	.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	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -60(%rbp)
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rdi
	callq	_init_input_frame
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	movq	%r15, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r8
	callq	_decode_audio_frame
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	cmpl	$0, (%r14)
	je	LBB0_3
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_av_freep
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, -60(%rbp)
	je	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_init_converted_samples
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	movq	-56(%rbp), %rsi
	movl	(%rax), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_convert_samples
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_samples_to_fifo
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.no_dead_strip	_read_decode_convert_and_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_decode_convert_and_store
_read_decode_convert_and_store:         ; @read_decode_convert_and_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, sp, #24
	bl	_init_input_frame
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #24]
	add	x3, sp, #12
	mov	x1, x25
	mov	x2, x24
	mov	x4, x23
	bl	_decode_audio_frame
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x23]
	cbz	w8, LBB0_7
LBB0_3:
	mov	w19, #0
LBB0_4:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_av_freep
	ldr	x0, [sp, #16]
	bl	_free
LBB0_6:
	add	x0, sp, #24
	bl	_av_frame_free
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.8:
	ldr	x8, [sp, #24]
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x22
	bl	_init_converted_samples
	cbnz	x0, LBB0_4
; %bb.9:
	ldp	x1, x8, [sp, #16]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
	mov	x3, x21
	bl	_convert_samples
	cbnz	x0, LBB0_4
; %bb.10:
	ldp	x1, x8, [sp, #16]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_add_samples_to_fifo
	cbnz	x0, LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.no_dead_strip	_read_decode_convert_and_store
.subsections_via_symbols
