	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_buffered_output
_handle_buffered_output:                ## @handle_buffered_output
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	callq	_av_audio_fifo_size
	testq	%rax, %rax
	jle	LBB0_7
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_3:
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	12(%r15), %edi
	movq	8(%rbx), %rcx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_audio_data_add_to_fifo
	testl	%eax, %eax
	js	LBB0_12
LBB0_4:
	testq	%r14, %r14
	je	LBB0_11
## %bb.5:
	cmpq	$0, (%r14)
	jle	LBB0_11
## %bb.6:
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	12(%r15), %edi
	movq	(%r14), %rdx
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_audio_data_read_from_fifo   ## TAILCALL
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	movq	(%r14), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_3
## %bb.9:
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	$0, 8(%r14)
	movq	(%r15), %rax
	movq	_REMAP_OUT_COPY@GOTPCREL(%rip), %rcx
	leaq	8(%r15), %rdx
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ff_audio_data_copy
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	8(%r14), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[FIFO] add %s to out_fifo\n"

L_.str.1:                               ## @.str.1
	.asciz	"[FIFO] read from out_fifo to output\n"

L_.str.2:                               ## @.str.2
	.asciz	"[end conversion]\n"

L_.str.3:                               ## @.str.3
	.asciz	"[copy] %s to output\n"

	.comm	_REMAP_OUT_COPY,8,3             ## @REMAP_OUT_COPY
	.no_dead_strip	_handle_buffered_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_buffered_output
_handle_buffered_output:                ; @handle_buffered_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_av_audio_fifo_size
	cmp	x0, #0
	b.le	LBB0_7
LBB0_2:
	cbz	x21, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x21, #16]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w0, [x20, #12]
	ldr	x3, [x21, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_ff_audio_data_add_to_fifo
	tbnz	w0, #31, LBB0_12
LBB0_4:
	cbz	x19, LBB0_11
; %bb.5:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.6:
Lloh5:
	adrp	x21, _AV_LOG_TRACE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w1, [x21]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w0, [x20, #12]
	ldr	x2, [x19]
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_ff_audio_data_read_from_fifo
LBB0_7:
	cbz	x21, LBB0_11
; %bb.8:
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.9:
Lloh11:
	adrp	x22, _AV_LOG_TRACE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x21, #16]
	str	x8, [sp]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x8, x20
	ldr	x9, [x8], #8
	str	xzr, [x19, #8]
Lloh15:
	adrp	x10, _REMAP_OUT_COPY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REMAP_OUT_COPY@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x2, x8, xzr, eq
	mov	x0, x19
	mov	x1, x21
	bl	_ff_audio_data_copy
	tbnz	w0, #31, LBB0_12
; %bb.10:
	ldr	w1, [x22]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w0, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[FIFO] add %s to out_fifo\n"

l_.str.1:                               ; @.str.1
	.asciz	"[FIFO] read from out_fifo to output\n"

l_.str.2:                               ; @.str.2
	.asciz	"[end conversion]\n"

l_.str.3:                               ; @.str.3
	.asciz	"[copy] %s to output\n"

	.comm	_REMAP_OUT_COPY,8,3             ; @REMAP_OUT_COPY
	.no_dead_strip	_handle_buffered_output
.subsections_via_symbols
