	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_function
_test_function:                         ## @test_function
	.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, %r14
	movq	$0, -48(%rbp)
	movl	8(%rdi), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_av_audio_fifo_alloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
LBB0_2:
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_write_samples_to_audio_fifo
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERROR
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_write_samples_to_audio_fifo
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERROR
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%r13, %rdi
	callq	_av_audio_fifo_size
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r14), %edx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_read_samples_from_audio_fifo
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_ERROR
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_print_audio_bytes
	movq	%r13, %rdi
	callq	_av_audio_fifo_size
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movl	(%r13), %edx
	movq	%r13, %rdi
	callq	_av_audio_fifo_peek
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	callq	_ERROR
LBB0_10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_print_audio_bytes
	movl	$10, %edi
	callq	_putchar
	leaq	L_str.14(%rip), %rdi
	callq	_puts
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.11:
	leaq	L_.str.11(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_print_audio_bytes
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_av_audio_fifo_peek_at
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.10(%rip), %rdi
	callq	_ERROR
	jmp	LBB0_14
LBB0_15:
	movl	$10, %edi
	callq	_putchar
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_av_audio_fifo_drain
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	cmpl	$0, (%r13)
	je	LBB0_19
LBB0_18:
	leaq	L_.str.13(%rip), %rdi
	callq	_ERROR
LBB0_19:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_free_data_planes
	movq	%r13, %rdi
	callq	_av_audio_fifo_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.12(%rip), %rdi
	callq	_ERROR
	cmpl	$0, (%r13)
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: av_audio_fifo_alloc returned NULL!"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: av_audio_fifo_write failed!"

L_.str.2:                               ## @.str.2
	.asciz	"written: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"remaining samples in audio_fifo: %d\n\n"

L_.str.4:                               ## @.str.4
	.asciz	"ERROR: av_audio_fifo_read failed!"

L_.str.5:                               ## @.str.5
	.asciz	"read: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"ERROR: av_audio_fifo_peek failed!"

L_.str.10:                              ## @.str.10
	.asciz	"ERROR: av_audio_fifo_peek_at failed!"

L_.str.11:                              ## @.str.11
	.asciz	"%d:\n"

L_.str.12:                              ## @.str.12
	.asciz	"ERROR: av_audio_fifo_drain failed!"

L_.str.13:                              ## @.str.13
	.asciz	"drain failed to flush all samples in audio_fifo!"

L_str:                                  ## @str
	.asciz	"peek:"

L_str.14:                               ## @str.14
	.asciz	"peek_at:"

	.no_dead_strip	_test_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_function
_test_function:                         ; @test_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #8]
	ldp	w2, w1, [x20]
	bl	_av_audio_fifo_alloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
LBB0_2:
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_samples_to_audio_fifo
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERROR
LBB0_4:
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_write_samples_to_audio_fifo
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERROR
LBB0_6:
	str	x21, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_av_audio_fifo_size
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_samples_from_audio_fifo
	mov	x21, x0
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERROR
LBB0_8:
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_print_audio_bytes
	mov	x0, x19
	bl	_av_audio_fifo_size
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_av_audio_fifo_peek
	mov	x21, x0
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERROR
LBB0_10:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_print_audio_bytes
	mov	w0, #10
	bl	_putchar
Lloh22:
	adrp	x0, l_str.14@PAGE
Lloh23:
	add	x0, x0, l_str.14@PAGEOFF
	bl	_puts
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w21, #0
Lloh24:
	adrp	x22, l_.str.10@PAGE
Lloh25:
	add	x22, x22, l_.str.10@PAGEOFF
Lloh26:
	adrp	x23, l_.str.11@PAGE
Lloh27:
	add	x23, x23, l_.str.11@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x21, [sp]
	mov	x0, x23
	bl	_printf
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x24
	bl	_print_audio_bytes
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	bl	_av_audio_fifo_peek_at
	mov	x24, x0
	tbz	w0, #31, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_ERROR
	b	LBB0_12
LBB0_15:
	mov	w0, #10
	bl	_putchar
	ldr	w1, [x19]
	mov	x0, x19
	bl	_av_audio_fifo_drain
	tbnz	w0, #31, LBB0_19
; %bb.16:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
LBB0_17:
Lloh28:
	adrp	x0, l_.str.13@PAGE
Lloh29:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_ERROR
LBB0_18:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_free_data_planes
	mov	x0, x19
	bl	_av_audio_fifo_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
Lloh30:
	adrp	x0, l_.str.12@PAGE
Lloh31:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_ERROR
	ldr	w8, [x19]
	cbnz	w8, LBB0_17
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: av_audio_fifo_alloc returned NULL!"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: av_audio_fifo_write failed!"

l_.str.2:                               ; @.str.2
	.asciz	"written: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"remaining samples in audio_fifo: %d\n\n"

l_.str.4:                               ; @.str.4
	.asciz	"ERROR: av_audio_fifo_read failed!"

l_.str.5:                               ; @.str.5
	.asciz	"read: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"ERROR: av_audio_fifo_peek failed!"

l_.str.10:                              ; @.str.10
	.asciz	"ERROR: av_audio_fifo_peek_at failed!"

l_.str.11:                              ; @.str.11
	.asciz	"%d:\n"

l_.str.12:                              ; @.str.12
	.asciz	"ERROR: av_audio_fifo_drain failed!"

l_.str.13:                              ; @.str.13
	.asciz	"drain failed to flush all samples in audio_fifo!"

l_str:                                  ; @str
	.asciz	"peek:"

l_str.14:                               ; @str.14
	.asciz	"peek_at:"

	.no_dead_strip	_test_function
.subsections_via_symbols
