	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_text_init_avio              ## -- Begin function ff_text_init_avio
	.p2align	4, 0x90
_ff_text_init_avio:                     ## @ff_text_init_avio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, 24(%rsi)
	movq	$0, 32(%rsi)
	movq	$0, 8(%rsi)
	movq	_FF_UTF_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi)
	movq	%rdx, %rdi
	callq	_avio_r8
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 32(%rbx)
	movq	%rax, (%rcx,%rdx,8)
	movq	24(%rbx), %rdi
	callq	_avio_r8
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 32(%rbx)
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	16(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	24(%rbx), %rdi
	callq	_avio_r8
	movq	16(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 32(%rbx)
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	testq	%r14, %r14
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	movq	_FF_UTF16LE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_FF_UTF16BE@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$2, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$3, %eax
LBB0_7:
	addq	%rax, 8(%rbx)
	testq	%r14, %r14
	je	LBB0_11
LBB0_9:
	movq	(%rbx), %rax
	movq	_FF_UTF16LE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_FF_UTF16BE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_UTF_8,8,3                   ## @FF_UTF_8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\377\376"

	.comm	_FF_UTF16LE,8,3                 ## @FF_UTF16LE
L_.str.1:                               ## @.str.1
	.asciz	"\376\377"

	.comm	_FF_UTF16BE,8,3                 ## @FF_UTF16BE
L_.str.2:                               ## @.str.2
	.asciz	"\357\273\277"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"UTF16 is automatically converted to UTF8, do not specify a character encoding\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_text_init_avio              ; -- Begin function ff_text_init_avio
	.p2align	2
_ff_text_init_avio:                     ; @ff_text_init_avio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	stp	x2, xzr, [x1, #24]
Lloh0:
	adrp	x8, _FF_UTF_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_UTF_8@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, xzr, [x1]
	mov	x0, x2
	bl	_avio_r8
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #32]
	add	x10, x9, #1
	str	x10, [x20, #32]
	str	x0, [x8, x9, lsl #3]
	ldr	x0, [x20, #24]
	bl	_avio_r8
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #32]
	add	x10, x9, #1
	str	x10, [x20, #32]
	str	x0, [x8, x9, lsl #3]
	ldr	x1, [x20, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #2
	bl	_strncmp
Lloh5:
	adrp	x21, _FF_UTF16LE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FF_UTF16LE@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x1, [x20, #16]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_avio_r8
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #32]
	add	x10, x9, #1
	str	x10, [x20, #32]
	str	x0, [x8, x9, lsl #3]
	ldr	x1, [x20, #16]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w22, #3
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.3:
	cbnz	x19, LBB0_8
	b	LBB0_10
LBB0_4:
	mov	x8, x21
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _FF_UTF16BE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FF_UTF16BE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	w22, #2
LBB0_7:
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	str	x8, [x20, #8]
	cbz	x19, LBB0_10
LBB0_8:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.9:
Lloh13:
	adrp	x9, _FF_UTF16BE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FF_UTF16BE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh16:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_av_log
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_UTF_8,8,3                   ; @FF_UTF_8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\377\376"

	.comm	_FF_UTF16LE,8,3                 ; @FF_UTF16LE
l_.str.1:                               ; @.str.1
	.asciz	"\376\377"

	.comm	_FF_UTF16BE,8,3                 ; @FF_UTF16BE
l_.str.2:                               ; @.str.2
	.asciz	"\357\273\277"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"UTF16 is automatically converted to UTF8, do not specify a character encoding\n"

.subsections_via_symbols
