	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_preset
_opt_preset:                            ## @opt_preset
	.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
	subq	$3064, %rsp                     ## imm = 0xBF8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -3088(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	(%rsi), %al
	movb	%al, -3072(%rbp)
	movb	$0, -3071(%rbp)
	movq	_codec_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_str@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-3072(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_MATCH_PER_TYPE_OPT
	xorl	%ecx, %ecx
	cmpb	$102, (%rbx)
	sete	%cl
	leaq	-1056(%rbp), %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_get_preset_file
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movl	$1, %edi
	callq	_exit_program
LBB0_5:
	leaq	-2064(%rbp), %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	leaq	-2064(%rbp), %rbx
	leaq	-3072(%rbp), %r13
	leaq	-1056(%rbp), %r14
	movl	$6514020, %r15d                 ## imm = 0x636564
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-3080(%rbp), %rdx
	movq	-3088(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_opt_audio_codec
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_22
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcspn
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_av_strlcpy
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-3080(%rbp), %rdx
	callq	_av_strtok
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-3080(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	-3096(%rbp), %rdx
	callq	_av_strtok
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-3080(%rbp), %r9
	xorl	%edi, %edi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	-3072(%rbp), %eax
	movl	$1685021537, %ecx               ## imm = 0x646F6361
	xorl	%ecx, %eax
	movl	-3069(%rbp), %ecx
	xorl	%r15d, %ecx
	orl	%eax, %ecx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-3072(%rbp), %eax
	movl	$1685021558, %ecx               ## imm = 0x646F6376
	xorl	%ecx, %eax
	movl	-3069(%rbp), %ecx
	xorl	%r15d, %ecx
	orl	%eax, %ecx
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-3072(%rbp), %eax
	movl	$1685021555, %ecx               ## imm = 0x646F6373
	xorl	%ecx, %eax
	movl	-3069(%rbp), %ecx
	xorl	%r15d, %ecx
	orl	%eax, %ecx
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-3072(%rbp), %eax
	movl	$1685021540, %ecx               ## imm = 0x646F6364
	xorl	%ecx, %eax
	movl	-3069(%rbp), %ecx
	xorl	%r15d, %ecx
	orl	%eax, %ecx
	movq	-3080(%rbp), %rdx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-3088(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_opt_default_new
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-3080(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%edi, %edi
	leaq	L_.str.12(%rip), %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-3080(%rbp), %rdx
	movq	-3088(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_opt_video_codec
	jmp	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-3080(%rbp), %rdx
	movq	-3088(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_opt_subtitle_codec
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-3088(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_opt_data_codec
	jmp	LBB0_21
LBB0_22:
	movq	%r12, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	addq	$3064, %rsp                     ## imm = 0xBF8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_codec_names,4,2                ## @codec_names
	.comm	_str,4,2                        ## @str
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libx264-lossless"

	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Please use -preset <speed> -qp 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"File for preset '%s' not found\n"

L_.str.3:                               ## @.str.3
	.asciz	"#\n\r"

L_.str.4:                               ## @.str.4
	.asciz	"="

L_.str.5:                               ## @.str.5
	.asciz	"\r\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: Invalid syntax: '%s'\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.7:                               ## @.str.7
	.asciz	"ffpreset[%s]: set '%s' = '%s'\n"

L_.str.8:                               ## @.str.8
	.asciz	"acodec"

L_.str.9:                               ## @.str.9
	.asciz	"vcodec"

L_.str.10:                              ## @.str.10
	.asciz	"scodec"

L_.str.11:                              ## @.str.11
	.asciz	"dcodec"

L_.str.12:                              ## @.str.12
	.asciz	"%s: Invalid option or argument: '%s', parsed as '%s' = '%s'\n"

	.no_dead_strip	_opt_preset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_preset
_opt_preset:                            ; @opt_preset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #3072
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldrb	w8, [x1]
	strb	w8, [sp, #56]
	strb	wzr, [sp, #57]
Lloh3:
	adrp	x8, _codec_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _codec_names@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _str@GOTPAGE
Lloh7:
	ldr	x8, [x8, _str@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x4, sp, #56
	mov	x2, #0
	mov	x3, #0
	bl	_MATCH_PER_TYPE_OPT
	ldrb	w8, [x20]
	cmp	w8, #102
	cset	w3, eq
	add	x0, sp, #2056
	mov	w1, #1000
	mov	x2, x21
	mov	x4, #0
	bl	_get_preset_file
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
Lloh11:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	cbz	w0, LBB0_3
; %bb.2:
	str	x21, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_5:
	add	x0, sp, #1056
	mov	w1, #1000
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_22
; %bb.6:
	mov	w25, #25441
	movk	w25, #25711, lsl #16
	mov	w27, #25956
	movk	w27, #99, lsl #16
Lloh18:
	adrp	x21, l_.str.3@PAGE
Lloh19:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh20:
	adrp	x22, l_.str.4@PAGE
Lloh21:
	add	x22, x22, l_.str.4@PAGEOFF
	add	x23, sp, #56
	add	x28, sp, #2056
Lloh22:
	adrp	x26, _AV_LOG_DEBUG@GOTPAGE
Lloh23:
	ldr	x26, [x26, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh24:
	adrp	x24, l_.str.7@PAGE
Lloh25:
	add	x24, x24, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [sp, #48]
	add	x1, sp, #56
	mov	x0, x19
	bl	_opt_audio_codec
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #1056
	mov	w1, #1000
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #1056
	mov	x1, x21
	bl	_strcspn
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #56
	add	x1, sp, #1056
	mov	w2, #1000
	bl	_av_strlcpy
	add	x0, sp, #56
	add	x2, sp, #48
	mov	x1, x22
	bl	_av_strtok
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #48]
	add	x2, sp, #40
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_av_strtok
	cbnz	w0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh28:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x8, sp, #1056
	stp	x28, x8, [sp]
	mov	x0, #0
Lloh31:
	adrp	x2, l_.str.6@PAGE
Lloh32:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x26]
	ldr	x8, [sp, #48]
	stp	x23, x8, [sp, #8]
	str	x28, [sp]
	mov	x0, #0
	mov	x2, x24
	bl	_av_log
	ldr	w8, [sp, #56]
	eor	w8, w8, w25
	ldur	w9, [sp, #59]
	eor	w9, w9, w27
	orr	w8, w8, w9
	cbz	w8, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #56]
	add	w9, w25, #21
	eor	w8, w8, w9
	ldur	w9, [sp, #59]
	eor	w9, w9, w27
	orr	w8, w8, w9
	cbz	w8, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #56]
	add	w9, w25, #18
	eor	w8, w8, w9
	ldur	w9, [sp, #59]
	eor	w9, w9, w27
	orr	w8, w8, w9
	cbz	w8, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #56]
	add	w9, w25, #3
	eor	w8, w8, w9
	ldur	w9, [sp, #59]
	eor	w9, w9, w27
	ldr	x2, [sp, #48]
	add	x1, sp, #56
	mov	x0, x19
	orr	w8, w8, w9
	cbz	w8, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_opt_default_new
	tbz	x0, #63, LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh33:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [sp, #48]
	stp	x23, x8, [sp, #16]
	add	x8, sp, #1056
	stp	x28, x8, [sp]
	mov	x0, #0
Lloh36:
	adrp	x2, l_.str.12@PAGE
Lloh37:
	add	x2, x2, l_.str.12@PAGEOFF
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [sp, #48]
	add	x1, sp, #56
	mov	x0, x19
	bl	_opt_video_codec
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [sp, #48]
	add	x1, sp, #56
	mov	x0, x19
	bl	_opt_subtitle_codec
	b	LBB0_8
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_opt_data_codec
	b	LBB0_8
LBB0_22:
	mov	x0, x20
	bl	_fclose
	ldur	x8, [x29, #-96]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	w0, #0
	add	sp, sp, #3072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_codec_names,4,2                ; @codec_names
	.comm	_str,4,2                        ; @str
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libx264-lossless"

	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Please use -preset <speed> -qp 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"File for preset '%s' not found\n"

l_.str.3:                               ; @.str.3
	.asciz	"#\n\r"

l_.str.4:                               ; @.str.4
	.asciz	"="

l_.str.5:                               ; @.str.5
	.asciz	"\r\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: Invalid syntax: '%s'\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.7:                               ; @.str.7
	.asciz	"ffpreset[%s]: set '%s' = '%s'\n"

l_.str.8:                               ; @.str.8
	.asciz	"acodec"

l_.str.9:                               ; @.str.9
	.asciz	"vcodec"

l_.str.10:                              ; @.str.10
	.asciz	"scodec"

l_.str.11:                              ; @.str.11
	.asciz	"dcodec"

l_.str.12:                              ; @.str.12
	.asciz	"%s: Invalid option or argument: '%s', parsed as '%s' = '%s'\n"

	.no_dead_strip	_opt_preset
.subsections_via_symbols
