	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function caf_write_header
_caf_write_header:                      ## @caf_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, %r13
	movq	24(%rdi), %r14
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_ff_codec_caf_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_ff_codec_get_tag
	cmpl	$1, (%r13)
	jne	LBB0_36
## %bb.1:
	movl	(%r12), %edi
	cmpl	$128, %edi
	jne	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_35
LBB0_36:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%eax, %r15d
	movl	4(%r12), %eax
	movq	_AV_CODEC_ID_OPUS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jne	LBB0_7
## %bb.4:
	cmpl	$3, 8(%r12)
	jl	LBB0_7
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:
	movl	12(%r12), %edx
	testl	%edx, %edx
	jne	LBB0_12
## %bb.10:
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_11
LBB0_12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jne	LBB0_14
## %bb.13:
	movl	$576, %ebx                      ## imm = 0x240
	cmpl	$576, %eax                      ## imm = 0x240
	je	LBB0_15
LBB0_14:
	movl	8(%r12), %esi
	callq	_samples_per_packet
	movl	%eax, %ebx
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_avio_wb16
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_avio_wb64
	movl	40(%r12), %edi
	callq	_av_double2int
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_wb64
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avio_wl32
	movl	(%r12), %edi
	callq	_codec_flags
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	movl	12(%r12), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_avio_wb32
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	(%r12), %edi
	callq	_av_get_bits_per_sample
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	cmpq	$0, 32(%r12)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_avio_wb64
	movq	32(%r12), %rsi
	movq	%r14, %rdi
	callq	_ff_mov_write_chan
LBB0_17:
	movl	(%r12), %eax
	movq	_AV_CODEC_ID_ALAC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movl	16(%r12), %esi
	addl	$12, %esi
	movq	%r14, %rdi
	callq	_avio_wb64
	leaq	l_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_avio_write
	jmp	LBB0_24
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_6:
	movq	%r13, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_35
LBB0_19:
	movq	_AV_CODEC_ID_AMR_NB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movl	$29, %esi
	callq	_avio_wb64
	leaq	l_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_avio_write
	movq	%r14, %rdi
	movl	$17, %esi
	callq	_avio_wb32
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_avio_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	%r14, %rdi
	movl	$33279, %esi                    ## imm = 0x81FF
	callq	_avio_wb16
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_avio_w8
	jmp	LBB0_25
LBB0_21:
	movq	_AV_CODEC_ID_QDM2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.22:
	movq	_AV_CODEC_ID_QDMC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
LBB0_23:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_avio_wb64
LBB0_24:
	movq	24(%r12), %rsi
	movl	16(%r12), %edx
	movq	%r14, %rdi
	callq	_avio_write
LBB0_25:
	movq	%r13, %rdi
	callq	_ff_standardize_creation_time
	movl	4(%r13), %edi
	callq	_av_dict_count
	testl	%eax, %eax
	je	LBB0_34
## %bb.26:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movl	4(%r13), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_strlen
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_strlen
	addl	%r12d, %eax
	addl	%eax, %r15d
	addl	$2, %r15d
	movl	4(%r13), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.30:
	addl	$4, %r15d
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %r12
	jmp	LBB0_31
LBB0_27:
	movl	$4, %r15d
LBB0_31:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avio_wb64
	movl	4(%r13), %edi
	callq	_av_dict_count
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	movl	4(%r13), %edi
	movl	(%r12), %ecx
	leaq	L_.str.13(%rip), %rsi
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	movq	%rax, %rbx
	leaq	L_.str.13(%rip), %r15
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_put_str
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_put_str
	movl	4(%r13), %edi
	movl	(%r12), %ecx
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_av_dict_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_33
LBB0_34:
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	callq	_avio_tell
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_avio_wb64
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r14, %rdi
	callq	_avio_flush
LBB0_35:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_codec_caf_tags,4,2          ## @ff_codec_caf_tags
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAF files have exactly one stream\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"muxing codec currently unsupported\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_CODEC_ID_OPUS,4,2           ## @AV_CODEC_ID_OPUS
L_.str.2:                               ## @.str.2
	.asciz	"Only mono and stereo are supported for Opus\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.3:                               ## @.str.3
	.asciz	"unsupported codec\n"

	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
L_.str.4:                               ## @.str.4
	.asciz	"Muxing variable packet size not supported on non seekable output\n"

	.comm	_AV_CODEC_ID_MP3,4,2            ## @AV_CODEC_ID_MP3
L_.str.5:                               ## @.str.5
	.asciz	"caff"

L_.str.6:                               ## @.str.6
	.asciz	"desc"

L_.str.7:                               ## @.str.7
	.asciz	"chan"

	.comm	_AV_CODEC_ID_ALAC,4,2           ## @AV_CODEC_ID_ALAC
L_.str.8:                               ## @.str.8
	.asciz	"kuki"

	.section	__TEXT,__const
l_.str.9:                               ## @.str.9
	.asciz	"\000\000\000\ffrmaalac"

	.comm	_AV_CODEC_ID_AMR_NB,4,2         ## @AV_CODEC_ID_AMR_NB
l_.str.10:                              ## @.str.10
	.asciz	"\000\000\000\ffrmasamr"

	.section	__TEXT,__cstring,cstring_literals
L_.str.11:                              ## @.str.11
	.asciz	"samrFFMP"

	.comm	_AV_CODEC_ID_QDM2,4,2           ## @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_QDMC,4,2           ## @AV_CODEC_ID_QDMC
L_.str.12:                              ## @.str.12
	.asciz	"info"

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

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
L_.str.14:                              ## @.str.14
	.asciz	"data"

	.no_dead_strip	_caf_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function caf_write_header
_caf_write_header:                      ; @caf_write_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x8, x20, [x0, #16]
	ldr	x24, [x0, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _ff_codec_caf_tags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_codec_caf_tags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_ff_codec_get_tag
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w0, [x23]
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_36
LBB0_3:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
	ldr	w8, [x23, #4]
Lloh19:
	adrp	x9, _AV_CODEC_ID_OPUS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AV_CODEC_ID_OPUS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w9, [x23, #8]
	cmp	w9, #3
	b.lt	LBB0_7
; %bb.6:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_7:
	cbz	w21, LBB0_13
; %bb.8:
	ldr	w2, [x23, #12]
	cbnz	w2, LBB0_10
; %bb.9:
	ldr	w9, [x20]
Lloh27:
	adrp	x10, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh28:
	ldr	x10, [x10, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_37
LBB0_10:
Lloh30:
	adrp	x9, _AV_CODEC_ID_MP3@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AV_CODEC_ID_MP3@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_15
; %bb.11:
	cmp	w8, #576
	b.ne	LBB0_15
; %bb.12:
	mov	w22, #576
	b	LBB0_16
LBB0_13:
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.3@PAGE
Lloh37:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_av_log
Lloh38:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	b	LBB0_36
LBB0_15:
	ldr	w1, [x23, #8]
	bl	_samples_per_packet
	mov	x22, x0
LBB0_16:
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	w1, #1
	bl	_avio_wb16
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wb16
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	w1, #32
	bl	_avio_wb64
	ldr	w0, [x23, #40]
	bl	_av_double2int
	mov	x1, x0
	mov	x0, x20
	bl	_avio_wb64
	mov	x0, x20
	mov	x1, x21
	bl	_avio_wl32
	ldr	w0, [x23]
	bl	_codec_flags
	mov	x1, x0
	mov	x0, x20
	bl	_avio_wb32
	ldr	w1, [x23, #12]
	mov	x0, x20
	bl	_avio_wb32
	mov	x0, x20
	mov	x1, x22
	bl	_avio_wb32
	ldr	w1, [x23, #8]
	mov	x0, x20
	bl	_avio_wb32
	ldr	w0, [x23]
	bl	_av_get_bits_per_sample
	mov	x1, x0
	mov	x0, x20
	bl	_avio_wb32
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_18
; %bb.17:
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	w1, #12
	bl	_avio_wb64
	ldr	x1, [x23, #32]
	mov	x0, x20
	bl	_ff_mov_write_chan
LBB0_18:
	ldr	w8, [x23]
Lloh47:
	adrp	x9, _AV_CODEC_ID_ALAC@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AV_CODEC_ID_ALAC@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
Lloh50:
	adrp	x1, l_.str.8@PAGE
Lloh51:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	ldr	w8, [x23, #16]
	add	w1, w8, #12
	mov	x0, x20
	bl	_avio_wb64
Lloh52:
	adrp	x1, l_.str.9@PAGE
Lloh53:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	w2, #12
	bl	_avio_write
	b	LBB0_25
LBB0_20:
Lloh54:
	adrp	x9, _AV_CODEC_ID_AMR_NB@GOTPAGE
Lloh55:
	ldr	x9, [x9, _AV_CODEC_ID_AMR_NB@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.21:
Lloh57:
	adrp	x1, l_.str.8@PAGE
Lloh58:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	w1, #29
	bl	_avio_wb64
Lloh59:
	adrp	x1, l_.str.10@PAGE
Lloh60:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	w2, #12
	bl	_avio_write
	mov	x0, x20
	mov	w1, #17
	bl	_avio_wb32
Lloh61:
	adrp	x1, l_.str.11@PAGE
Lloh62:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	mov	w2, #8
	bl	_avio_write
	mov	x0, x20
	mov	w1, #0
	bl	_avio_w8
	mov	x0, x20
	mov	w1, #33279
	bl	_avio_wb16
	mov	x0, x20
	mov	w1, #0
	bl	_avio_w8
	mov	x0, x20
	mov	w1, #1
	bl	_avio_w8
	b	LBB0_26
LBB0_22:
Lloh63:
	adrp	x9, _AV_CODEC_ID_QDM2@GOTPAGE
Lloh64:
	ldr	x9, [x9, _AV_CODEC_ID_QDM2@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.23:
Lloh66:
	adrp	x9, _AV_CODEC_ID_QDMC@GOTPAGE
Lloh67:
	ldr	x9, [x9, _AV_CODEC_ID_QDMC@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
LBB0_24:
Lloh69:
	adrp	x1, l_.str.8@PAGE
Lloh70:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	ldr	w1, [x23, #16]
	mov	x0, x20
	bl	_avio_wb64
LBB0_25:
	ldr	x1, [x23, #24]
	ldr	w2, [x23, #16]
	mov	x0, x20
	bl	_avio_write
LBB0_26:
	mov	x0, x19
	bl	_ff_standardize_creation_time
	ldr	w0, [x19, #4]
	bl	_av_dict_count
	cbz	w0, LBB0_35
; %bb.27:
Lloh71:
	adrp	x1, l_.str.12@PAGE
Lloh72:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	ldr	w0, [x19, #4]
Lloh73:
	adrp	x25, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh74:
	ldr	x25, [x25, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh75:
	adrp	x1, l_.str.13@PAGE
Lloh76:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_31
; %bb.28:
	mov	x21, x0
	mov	w26, #0
Lloh77:
	adrp	x22, l_.str.13@PAGE
Lloh78:
	add	x22, x22, l_.str.13@PAGEOFF
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	bl	_strlen
	mov	x23, x0
	ldr	w0, [x21]
	bl	_strlen
	add	w8, w0, w23
	add	w8, w26, w8
	add	w26, w8, #2
	ldr	w0, [x19, #4]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x21
	bl	_av_dict_get
	mov	x21, x0
	cbnz	x0, LBB0_29
; %bb.30:
	add	w1, w26, #4
	b	LBB0_32
LBB0_31:
	mov	w1, #4
LBB0_32:
	mov	x0, x20
	bl	_avio_wb64
	ldr	w0, [x19, #4]
	bl	_av_dict_count
	mov	x1, x0
	mov	x0, x20
	bl	_avio_wb32
	ldr	w0, [x19, #4]
	ldr	w3, [x25]
Lloh79:
	adrp	x1, l_.str.13@PAGE
Lloh80:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_35
; %bb.33:
	mov	x21, x0
Lloh81:
	adrp	x22, l_.str.13@PAGE
Lloh82:
	add	x22, x22, l_.str.13@PAGEOFF
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_avio_put_str
	ldr	w1, [x21]
	mov	x0, x20
	bl	_avio_put_str
	ldr	w0, [x19, #4]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x21
	bl	_av_dict_get
	mov	x21, x0
	cbnz	x0, LBB0_34
LBB0_35:
Lloh83:
	adrp	x1, l_.str.14@PAGE
Lloh84:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	bl	_avio_tell
	str	w0, [x24]
	mov	x0, x20
	mov	w1, #-1
	bl	_avio_wb64
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x20
	bl	_avio_flush
	mov	w0, #0
LBB0_36:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_37:
Lloh85:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh86:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
Lloh88:
	adrp	x2, l_.str.4@PAGE
Lloh89:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_codec_caf_tags,4,2          ; @ff_codec_caf_tags
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAF files have exactly one stream\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"muxing codec currently unsupported\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_CODEC_ID_OPUS,4,2           ; @AV_CODEC_ID_OPUS
l_.str.2:                               ; @.str.2
	.asciz	"Only mono and stereo are supported for Opus\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.3:                               ; @.str.3
	.asciz	"unsupported codec\n"

	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
l_.str.4:                               ; @.str.4
	.asciz	"Muxing variable packet size not supported on non seekable output\n"

	.comm	_AV_CODEC_ID_MP3,4,2            ; @AV_CODEC_ID_MP3
l_.str.5:                               ; @.str.5
	.asciz	"caff"

l_.str.6:                               ; @.str.6
	.asciz	"desc"

l_.str.7:                               ; @.str.7
	.asciz	"chan"

	.comm	_AV_CODEC_ID_ALAC,4,2           ; @AV_CODEC_ID_ALAC
l_.str.8:                               ; @.str.8
	.asciz	"kuki"

	.section	__TEXT,__const
l_.str.9:                               ; @.str.9
	.asciz	"\000\000\000\ffrmaalac"

	.comm	_AV_CODEC_ID_AMR_NB,4,2         ; @AV_CODEC_ID_AMR_NB
l_.str.10:                              ; @.str.10
	.asciz	"\000\000\000\ffrmasamr"

	.section	__TEXT,__cstring,cstring_literals
l_.str.11:                              ; @.str.11
	.asciz	"samrFFMP"

	.comm	_AV_CODEC_ID_QDM2,4,2           ; @AV_CODEC_ID_QDM2
	.comm	_AV_CODEC_ID_QDMC,4,2           ; @AV_CODEC_ID_QDMC
l_.str.12:                              ; @.str.12
	.asciz	"info"

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

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
l_.str.14:                              ; @.str.14
	.asciz	"data"

	.no_dead_strip	_caf_write_header
.subsections_via_symbols
