	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fifo_overflow_drop_test
_fifo_overflow_drop_test:               ## @fifo_overflow_drop_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_2
## %bb.1:
	movl	%eax, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rsi
LBB0_23:
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_24
LBB0_2:
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movl	%eax, %r15d
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_16
## %bb.4:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_16
## %bb.6:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_16
## %bb.8:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$3, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_16
## %bb.10:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
	testl	%r13d, %r13d
	js	LBB0_16
## %bb.12:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	movl	$5, %edx
	callq	_prepare_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.15:
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_write_frame
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_packet_unref
LBB0_16:
	xorl	%eax, %eax
	callq	_av_gettime_relative
	subl	%r15d, %eax
	movq	_SLEEPTIME_50_MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_19
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_18
LBB0_13:
	movl	%eax, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movq	%r14, %rdi
	callq	_av_write_trailer
LBB0_24:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_21:
	movq	%r14, %rdi
	callq	_av_write_trailer
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_24
## %bb.22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_23
	.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"

	.comm	_SLEEPTIME_50_MS,4,2            ## @SLEEPTIME_50_MS
L_.str.2:                               ## @.str.2
	.asciz	"Writing packets to fifo muxer took too much time while testingbuffer overflow with drop_pkts_on_overflow was on.\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
L_.str.3:                               ## @.str.3
	.asciz	"Unexpected write_packet error: %s\n"

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

	.no_dead_strip	_fifo_overflow_drop_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fifo_overflow_drop_test
_fifo_overflow_drop_test:               ; @fifo_overflow_drop_test
	.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	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
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_fprintf
	b	LBB0_20
LBB0_3:
	bl	_av_gettime_relative
	mov	x21, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #0
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.4:
	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_15
; %bb.5:
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #1
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.6:
	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_15
; %bb.7:
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #2
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.8:
	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_15
; %bb.9:
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #3
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.10:
	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_15
; %bb.11:
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #4
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.12:
	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_15
; %bb.13:
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #5
	bl	_prepare_packet
	tbnz	w0, #31, LBB0_17
; %bb.14:
	add	x1, sp, #12
	mov	x0, x19
	bl	_av_write_frame
	mov	x20, x0
	add	x0, sp, #12
	bl	_av_packet_unref
LBB0_15:
	bl	_av_gettime_relative
Lloh5:
	adrp	x8, _SLEEPTIME_50_MS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SLEEPTIME_50_MS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	sub	w9, w0, w21
	cmp	w9, w8
	b.le	LBB0_21
; %bb.16:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh13:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	b	LBB0_19
LBB0_17:
	mov	x20, x0
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	bl	_av_err2str
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	mov	x0, x21
	bl	_fprintf
LBB0_19:
	mov	x0, x19
	bl	_av_write_trailer
LBB0_20:
	mov	x0, x20
	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
LBB0_21:
	cbz	w20, LBB0_23
; %bb.22:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_av_err2str
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_23:
	mov	x0, x19
	bl	_av_write_trailer
	mov	x20, x0
	tbz	w0, #31, LBB0_20
; %bb.24:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_av_err2str
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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"

	.comm	_SLEEPTIME_50_MS,4,2            ; @SLEEPTIME_50_MS
l_.str.2:                               ; @.str.2
	.asciz	"Writing packets to fifo muxer took too much time while testingbuffer overflow with drop_pkts_on_overflow was on.\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
l_.str.3:                               ; @.str.3
	.asciz	"Unexpected write_packet error: %s\n"

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

	.no_dead_strip	_fifo_overflow_drop_test
.subsections_via_symbols
