	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movl	$52, %edi
	callq	_av_fifo_alloc
	movq	%rax, %rbx
	movl	$0, -44(%rbp)
	movq	%rax, %rdi
	callq	_av_fifo_space
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	incl	-44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_space
	cmpl	$3, %eax
	ja	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_av_fifo_size
	movl	%eax, %r14d
	sarl	$2, %r14d
	movl	$1, %esi
	subl	%r14d, %esi
	movl	%esi, -44(%rbp)
	cmpl	%r14d, %esi
	jge	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$2, %esi
	movq	%rbx, %rdi
	callq	_av_fifo_peek2
	movl	-44(%rbp), %esi
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %esi
	incl	%esi
	movl	%esi, -44(%rbp)
	cmpl	%r14d, %esi
	jl	LBB0_5
LBB0_6:
	movl	$10, %edi
	callq	_putchar
	movq	%rbx, %rdi
	callq	_av_fifo_size
	movl	$0, -44(%rbp)
	cmpl	$4, %eax
	jl	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	sarl	$2, %r14d
	leaq	-48(%rbp), %r15
	leaq	L_.str(%rip), %r12
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	shll	$2, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_av_fifo_generic_peek_at
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %edx
	incl	%edx
	movl	%edx, -44(%rbp)
	cmpl	%r14d, %edx
	jl	LBB0_8
LBB0_9:
	movl	$10, %edi
	callq	_putchar
	movq	%rbx, %rdi
	callq	_av_fifo_size
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.10:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_peek
	movl	$0, -44(%rbp)
	cmpl	$4, %r15d
	jl	LBB0_13
## %bb.11:
	sarl	$2, %r15d
	leaq	L_.str(%rip), %r12
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rsi
	movl	(%r14,%rsi,4), %edx
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	cmpl	%r15d, %eax
	jl	LBB0_12
LBB0_13:
	movl	$10, %edi
	callq	_putchar
	movl	$0, -44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_size
	cmpl	$4, %eax
	jb	LBB0_16
## %bb.14:
	leaq	-48(%rbp), %r15
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	incl	-44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_size
	cmpl	$3, %eax
	ja	LBB0_15
LBB0_16:
	movl	$10, %edi
	callq	_putchar
	movq	%rbx, %rdi
	callq	_av_fifo_reset
	movabsq	$-21474836486, %rax             ## imm = 0xFFFFFFFAFFFFFFFA
	movq	%rax, (%rbx)
	movl	$0, -44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_space
	cmpl	$4, %eax
	jb	LBB0_19
## %bb.17:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	incl	-44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_space
	cmpl	$3, %eax
	ja	LBB0_18
LBB0_19:
	movq	%rbx, %rdi
	callq	_av_fifo_size
	movl	$0, -44(%rbp)
	cmpl	$4, %eax
	jl	LBB0_22
## %bb.20:
	movl	%eax, %r15d
	sarl	$2, %r15d
	leaq	-48(%rbp), %r12
	leaq	L_.str(%rip), %r13
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	shll	$2, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_av_fifo_generic_peek_at
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %edx
	incl	%edx
	movl	%edx, -44(%rbp)
	cmpl	%r15d, %edx
	jl	LBB0_21
LBB0_22:
	movl	$10, %edi
	callq	_putchar
	movq	%rbx, %rdi
	movl	$60, %esi
	callq	_av_fifo_grow
	movq	%rbx, %rdi
	callq	_av_fifo_size
	sarl	$2, %eax
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_space
	cmpl	$4, %eax
	jb	LBB0_25
## %bb.23:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	incl	-44(%rbp)
	movq	%rbx, %rdi
	callq	_av_fifo_space
	cmpl	$3, %eax
	ja	LBB0_24
LBB0_25:
	movq	%rbx, %rdi
	callq	_av_fifo_size
	movl	$0, -44(%rbp)
	cmpl	$4, %eax
	jl	LBB0_28
## %bb.26:
	movl	%eax, %r15d
	sarl	$2, %r15d
	leaq	-48(%rbp), %r12
	leaq	L_.str(%rip), %r13
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	shll	$2, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_av_fifo_generic_peek_at
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %edx
	incl	%edx
	movl	%edx, -44(%rbp)
	cmpl	%r15d, %edx
	jl	LBB0_27
LBB0_28:
	movq	%rbx, %rdi
	callq	_av_fifo_free
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: %d\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate memory.\n"

L_.str.3:                               ## @.str.3
	.asciz	"%d "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	w0, #52
	bl	_av_fifo_alloc
	mov	x19, x0
	str	wzr, [sp, #28]
	bl	_av_fifo_space
	cmp	w0, #4
	b.lo	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	mov	x0, x19
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_write
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_space
	cmp	w0, #3
	b.hi	LBB0_1
LBB0_2:
	mov	x0, x19
	bl	_av_fifo_size
	asr	w21, w0, #2
	mov	w8, #1
	sub	w8, w8, w21
	cmp	w8, w21
	str	w8, [sp, #28]
	b.ge	LBB0_5
; %bb.3:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w1, w8, #2
	mov	x0, x19
	bl	_av_fifo_peek2
	ldr	w8, [x0]
	ldr	w9, [sp, #28]
	stp	x9, x8, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w21
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	bl	_av_fifo_size
	str	wzr, [sp, #28]
	cmp	w0, #4
	b.lt	LBB0_8
; %bb.6:
	mov	w8, #0
	asr	w21, w0, #2
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w2, w8, #2
	add	x1, sp, #24
	mov	x0, x19
	mov	w3, #4
	mov	x4, #0
	bl	_av_fifo_generic_peek_at
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w21
	b.lt	LBB0_7
LBB0_8:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	bl	_av_fifo_size
	mov	x21, x0
	bl	_malloc
	cbz	x0, LBB0_26
; %bb.9:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	bl	_av_fifo_generic_peek
	str	wzr, [sp, #28]
	cmp	w21, #4
	b.lt	LBB0_12
; %bb.10:
	mov	w8, #0
	asr	w22, w21, #2
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, w8, sxtw #2]
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w22
	b.lt	LBB0_11
LBB0_12:
	mov	w0, #10
	bl	_putchar
	str	wzr, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_size
	cmp	w0, #4
	b.lo	LBB0_15
; %bb.13:
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_read
	ldr	w8, [sp, #24]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_size
	cmp	w0, #3
	b.hi	LBB0_14
LBB0_15:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	bl	_av_fifo_reset
	mvni.2s	v0, #5
	str	d0, [x19]
	str	wzr, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_space
	cmp	w0, #4
	b.lo	LBB0_17
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	mov	x0, x19
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_write
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_space
	cmp	w0, #3
	b.hi	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_av_fifo_size
	str	wzr, [sp, #28]
	cmp	w0, #4
	b.lt	LBB0_20
; %bb.18:
	mov	w8, #0
	asr	w22, w0, #2
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	w2, w8, #2
	add	x1, sp, #24
	mov	x0, x19
	mov	w3, #4
	mov	x4, #0
	bl	_av_fifo_generic_peek_at
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w22
	b.lt	LBB0_19
LBB0_20:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	mov	w1, #60
	bl	_av_fifo_grow
	mov	x0, x19
	bl	_av_fifo_size
	asr	w8, w0, #2
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_space
	cmp	w0, #4
	b.lo	LBB0_22
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	mov	x0, x19
	mov	w2, #4
	mov	x3, #0
	bl	_av_fifo_generic_write
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	mov	x0, x19
	bl	_av_fifo_space
	cmp	w0, #3
	b.hi	LBB0_21
LBB0_22:
	mov	x0, x19
	bl	_av_fifo_size
	str	wzr, [sp, #28]
	cmp	w0, #4
	b.lt	LBB0_25
; %bb.23:
	mov	w8, #0
	asr	w22, w0, #2
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	lsl	w2, w8, #2
	add	x1, sp, #24
	mov	x0, x19
	mov	w3, #4
	mov	x4, #0
	bl	_av_fifo_generic_peek_at
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w8, [sp, #28]
	add	w8, w8, #1
	str	w8, [sp, #28]
	cmp	w8, w22
	b.lt	LBB0_24
LBB0_25:
	mov	x0, x19
	bl	_av_fifo_free
	mov	x0, x20
	bl	_free
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
LBB0_26:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: %d\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate memory.\n"

l_.str.3:                               ; @.str.3
	.asciz	"%d "

.subsections_via_symbols
