	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_encoder
_choose_encoder:                        ## @choose_encoder
	.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, %rbx
	movq	%rsi, %r14
	movq	16(%rdx), %r8
	movq	(%r8), %rax
	movl	(%rax), %eax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.6:
	movq	$1, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	movq	_codec_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_MATCH_PER_STREAM_OPT
	movq	(%r14), %rdi
	movl	8(%r14), %edx
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_av_guess_codec
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movl	%eax, %edi
	callq	_avcodec_find_encoder
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, 4(%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	28(%rbx), %r12d
	movl	24(%rbx), %r13d
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_avcodec_get_name
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_av_log
	movq	_AVERROR_ENCODER_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_codec_names,4,2                ## @codec_names
	.comm	_str,4,2                        ## @str
	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Automatic encoder selection failed for output stream #%d:%d. Default encoder for format %s (codec %s) is probably disabled. Please choose an encoder manually.\n"

	.comm	_AVERROR_ENCODER_NOT_FOUND,4,2  ## @AVERROR_ENCODER_NOT_FOUND
	.no_dead_strip	_choose_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function choose_encoder
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_choose_encoder:                        ; @choose_encoder
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	ldr	x4, [x2, #16]
	ldr	x8, [x4]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
Lloh9:
	adrp	x8, _codec_names@GOTPAGE
Lloh10:
	ldr	x8, [x8, _codec_names@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _str@GOTPAGE
Lloh13:
	ldr	x8, [x8, _str@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, #0
	mov	x3, x20
	bl	_MATCH_PER_STREAM_OPT
	ldr	x0, [x20]
	ldr	w2, [x20, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w4, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_av_guess_codec
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	w0, [x8, #4]
	bl	_avcodec_find_encoder
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #4]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	ldp	w23, w22, [x19, #24]
	ldr	x8, [x20]
	ldr	w20, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_avcodec_get_name
	mov	x6, x0
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x20
	bl	_av_log
Lloh22:
	adrp	x8, _AVERROR_ENCODER_NOT_FOUND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVERROR_ENCODER_NOT_FOUND@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_codec_names,4,2                ; @codec_names
	.comm	_str,4,2                        ; @str
	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Automatic encoder selection failed for output stream #%d:%d. Default encoder for format %s (codec %s) is probably disabled. Please choose an encoder manually.\n"

	.comm	_AVERROR_ENCODER_NOT_FOUND,4,2  ; @AVERROR_ENCODER_NOT_FOUND
	.no_dead_strip	_choose_encoder
.subsections_via_symbols
