	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fifo_basic_test
_fifo_basic_test:                       ## @fifo_basic_test
	.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, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-44(%rbp), %rdi
	callq	_av_init_packet
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_avformat_write_header
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	$15, %ebx
	jne	LBB0_4
## %bb.9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_av_write_frame
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_av_write_trailer
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_6
LBB0_10:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %r15
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	callq	_av_write_trailer
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected write_header failure: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to prepare test packet: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unexpected write_frame error: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unexpected write_frame error during flushing: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unexpected write_trailer error during flushing: %s\n"

	.no_dead_strip	_fifo_basic_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fifo_basic_test
_fifo_basic_test:                       ; @fifo_basic_test
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #12
	bl	_av_init_packet
	mov	x0, x19
	mov	x1, x20
	bl	_avformat_write_header
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_av_err2str
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_fprintf
	b	LBB0_14
LBB0_3:
	mov	w23, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x23
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	bl	_av_write_frame
	mov	x20, x0
	add	x0, sp, #12
	bl	_av_packet_unref
	tbnz	w20, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, #15
	b.ne	LBB0_4
; %bb.7:
	mov	x0, x19
	mov	x1, #0
	bl	_av_write_frame
	tbnz	w0, #31, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_av_write_trailer
	mov	x20, x0
	tbz	w0, #31, LBB0_14
; %bb.9:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_av_err2str
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_10:
	mov	x20, x0
	b	LBB0_13
LBB0_11:
	mov	x21, x24
	b	LBB0_13
LBB0_12:
	mov	x20, x0
Lloh14:
	adrp	x21, l_.str.3@PAGE
Lloh15:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_13:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_av_err2str
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_fprintf
	mov	x0, x19
	bl	_av_write_trailer
LBB0_14:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected write_header failure: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to prepare test packet: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unexpected write_frame error: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unexpected write_frame error during flushing: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unexpected write_trailer error during flushing: %s\n"

	.no_dead_strip	_fifo_basic_test
.subsections_via_symbols
