	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fifo_thread_write_header
_fifo_thread_write_header:              ## @fifo_thread_write_header
	.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	8(%rdi), %r12
	movq	24(%r12), %rax
	movq	8(%rax), %r15
	movq	$0, -48(%rbp)
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	16(%r12), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ff_format_output_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.4:
	movq	8(%r15), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_7
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_6:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%r12), %r15d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_19
LBB0_7:
	andl	$-8, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	8(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	16(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	24(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	32(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	40(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	48(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	56(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	$0, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_avformat_write_header
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	$1, (%r14)
LBB0_14:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.15:
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	-48(%rbp), %rdi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_19:
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
LBB0_20:
	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_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening %s: %s\n"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.2:                               ## @.str.2
	.asciz	"Unknown option '%s'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fifo_thread_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fifo_thread_write_header
_fifo_thread_write_header:              ; @fifo_thread_write_header
	.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
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #24]
	ldr	x19, [x8, #8]
	str	xzr, [sp, #8]
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_av_dict_copy
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w1, [x22, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ff_format_output_open
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	ldr	x9, [x19, #8]
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.4:
	mov	x10, #0
	b	LBB0_10
LBB0_5:
	mov	x21, x0
	b	LBB0_20
LBB0_6:
	mov	x21, x0
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w20, [x22, #16]
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	mov	x3, x20
	bl	_av_log
	b	LBB0_19
LBB0_7:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x14, [x11, #-16]
	ldp	x15, x16, [x11], #32
	str	xzr, [x13]
	str	xzr, [x14]
	str	xzr, [x15]
	str	xzr, [x16]
	subs	x12, x12, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x8
	b.eq	LBB0_12
LBB0_10:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	xzr, [x10]
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	add	x1, sp, #8
	mov	x0, x19
	bl	_avformat_write_header
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x20]
LBB0_14:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.15:
Lloh5:
	adrp	x23, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_18
; %bb.16:
	mov	x20, x0
Lloh9:
	adrp	x24, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.2@PAGE
Lloh12:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x21
	bl	_av_log
	ldr	x0, [sp, #8]
	ldr	w3, [x23]
	mov	x1, x22
	mov	x2, x20
	bl	_av_dict_get
	mov	x20, x0
	cbnz	x0, LBB0_17
LBB0_18:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_19:
	add	x0, sp, #8
	bl	_av_dict_free
LBB0_20:
	mov	x0, x21
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening %s: %s\n"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.2:                               ; @.str.2
	.asciz	"Unknown option '%s'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fifo_thread_write_header
.subsections_via_symbols
