	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_codec_or_die
_find_codec_or_die:                     ## @find_codec_or_die
	.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
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r12
	testl	%edx, %edx
	cmoveq	%rax, %r12
	je	LBB0_2
## %bb.1:
	callq	_avcodec_find_encoder_by_name
	jmp	LBB0_3
LBB0_2:
	callq	_avcodec_find_decoder_by_name
LBB0_3:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	cmpl	%ebx, (%r15)
	je	LBB0_14
LBB0_13:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%edi, %edi
	movq	%r12, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_avcodec_descriptor_get_by_name
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	callq	_avcodec_find_encoder
	jmp	LBB0_8
LBB0_7:
	callq	_avcodec_find_decoder
LBB0_8:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	4(%r15), %r8
	movl	(%rbx), %r9d
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_11
LBB0_10:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r12, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, (%r15)
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoder"

L_.str.1:                               ## @.str.1
	.asciz	"decoder"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"Matched %s '%s' for codec '%s'.\n"

	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
L_.str.3:                               ## @.str.3
	.asciz	"Unknown %s '%s'\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid %s type '%s'\n"

	.no_dead_strip	_find_codec_or_die
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_codec_or_die
_find_codec_or_die:                     ; @find_codec_or_die
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w2, #0
	csel	x20, x9, x8, eq
	cbz	w2, LBB0_2
; %bb.1:
	bl	_avcodec_find_encoder_by_name
	mov	x22, x0
	cbnz	x0, LBB0_9
	b	LBB0_3
LBB0_2:
	bl	_avcodec_find_decoder_by_name
	mov	x22, x0
	cbnz	x0, LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_avcodec_descriptor_get_by_name
	cbz	x0, LBB0_8
; %bb.4:
	mov	x24, x0
	ldr	w0, [x0, #4]
	cbz	w23, LBB0_7
; %bb.5:
	bl	_avcodec_find_encoder
	mov	x22, x0
	cbz	x0, LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldrsw	x4, [x22, #4]
	ldr	w8, [x24]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	str	x8, [sp]
	mov	x0, #0
	mov	x3, x20
	bl	_av_log
	b	LBB0_9
LBB0_7:
	bl	_avcodec_find_decoder
	mov	x22, x0
	cbnz	x0, LBB0_6
LBB0_8:
Lloh9:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	mov	x4, x19
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
	mov	x22, #0
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, w21
	b.eq	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	mov	x4, x19
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_11:
	mov	x0, x22
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoder"

l_.str.1:                               ; @.str.1
	.asciz	"decoder"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"Matched %s '%s' for codec '%s'.\n"

	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
l_.str.3:                               ; @.str.3
	.asciz	"Unknown %s '%s'\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid %s type '%s'\n"

	.no_dead_strip	_find_codec_or_die
.subsections_via_symbols
