	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ffmpeg_init_config
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ffmpeg_init_config:                    ## @ffmpeg_init_config
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_PIX_FMT_NONE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 56(%rdi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, (%rdi)
	movl	$1, %eax
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movq	%r14, %rdi
	callq	_config_file_new_from_path_to_string
	movl	%eax, 52(%r12)
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	leaq	4(%r12), %r14
	leaq	8(%r12), %rbx
	leaq	12(%r12), %r15
	movq	16(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_config_get_array
	movl	52(%r12), %edi
	movq	24(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %ecx
	callq	_config_get_array
	movl	52(%r12), %edi
	movq	32(%r12), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$8, %ecx
	callq	_config_get_array
	movl	52(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	callq	_config_get_uint
	movl	52(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	callq	_config_get_uint
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	cmpl	$0, (%rbx)
	jne	LBB0_7
LBB0_6:
	movl	$1, (%rbx)
LBB0_7:
	movl	52(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdx
	callq	_config_get_bool
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, (%r15)
LBB0_9:
	movl	52(%r12), %edi
	leaq	40(%r12), %rdx
	leaq	L_.str.8(%rip), %rsi
	callq	_config_get_uint
	movl	52(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdx
	callq	_config_get_float
	movl	52(%r12), %edi
	leaq	84(%r12), %rdx
	leaq	L_.str.10(%rip), %rsi
	callq	_config_get_int
	movq	%rax, 88(%r12)
	movl	52(%r12), %edi
	leaq	80(%r12), %rdx
	leaq	L_.str.11(%rip), %rsi
	callq	_config_get_int
	movl	52(%r12), %edi
	leaq	64(%r12), %rdx
	leaq	L_.str.12(%rip), %rsi
	callq	_config_get_int
	movq	%rax, 72(%r12)
	movl	52(%r12), %edi
	leaq	60(%r12), %rdx
	leaq	L_.str.13(%rip), %rsi
	callq	_config_get_int
	movl	52(%r12), %edi
	leaq	L_.str.14(%rip), %rsi
	leaq	-112(%rbp), %rdx
	movl	$64, %ecx
	callq	_config_get_array
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	-112(%rbp), %rdi
	callq	_av_get_pix_fmt
	movl	%eax, 56(%r12)
	cmpl	(%r13), %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.15(%rip), %rdi
	leaq	-112(%rbp), %rsi
	jmp	LBB0_3
LBB0_12:
	movl	52(%r12), %edi
	leaq	-136(%rbp), %rsi
	callq	_config_get_entry_list_head
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	leaq	44(%r12), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	addq	$48, %r12
	leaq	L_.str.16(%rip), %r15
	leaq	L_.str.17(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_STRLEN_CONST
	cltq
	addq	%rax, %r14
	movl	-128(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	-136(%rbp), %rdi
	callq	_config_get_entry_list_next
	testq	%rax, %rax
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-136(%rbp), %r14
	movl	$6, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strncmp
	movq	%r15, %rdi
	movq	%r12, %rbx
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$6, %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strncmp
	movq	%r13, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_16
LBB0_18:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
LBB0_3:
	callq	_RARCH_ERR
	xorl	%eax, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PIX_FMT_NONE,4,2               ## @PIX_FMT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[FFmpeg] Loading FFmpeg config \"%s\".\n"

L_.str.1:                               ## @.str.1
	.asciz	"[FFmpeg] Failed to load FFmpeg config \"%s\".\n"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"threads"

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

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

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

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

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

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

L_.str.12:                              ## @.str.12
	.asciz	"video_global_quality"

L_.str.13:                              ## @.str.13
	.asciz	"video_bit_rate"

L_.str.14:                              ## @.str.14
	.asciz	"pix_fmt"

L_.str.15:                              ## @.str.15
	.asciz	"[FFmpeg] Cannot find pix_fmt \"%s\".\n"

L_.str.16:                              ## @.str.16
	.asciz	"video_"

L_.str.17:                              ## @.str.17
	.asciz	"audio_"

	.no_dead_strip	_ffmpeg_init_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_init_config
_ffmpeg_init_config:                    ; @ffmpeg_init_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x23, _PIX_FMT_NONE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PIX_FMT_NONE@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x0, #56]
	movi.4s	v0, #1
	str	q0, [x0]
	cbz	x1, LBB0_18
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	mov	x0, x20
	bl	_config_file_new_from_path_to_string
	str	w0, [x19, #52]
	cbz	w0, LBB0_19
; %bb.2:
	add	x22, x19, #4
	add	x21, x19, #8
	add	x20, x19, #12
	ldr	x2, [x19, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #8
	bl	_config_get_array
	ldr	w0, [x19, #52]
	ldr	x2, [x19, #24]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #8
	bl	_config_get_array
	ldr	w0, [x19, #52]
	ldr	x2, [x19, #32]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w3, #8
	bl	_config_get_array
	ldr	w0, [x19, #52]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	bl	_config_get_uint
	ldr	w0, [x19, #52]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_config_get_uint
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x21]
LBB0_5:
	ldr	w0, [x19, #52]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x20
	bl	_config_get_bool
	cbnz	w0, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	ldr	w0, [x19, #52]
	add	x2, x19, #40
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_config_get_uint
	ldr	w0, [x19, #52]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x19
	bl	_config_get_float
	ldr	w0, [x19, #52]
	add	x2, x19, #84
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_config_get_int
	str	x0, [x19, #88]
	ldr	w0, [x19, #52]
	add	x2, x19, #80
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_config_get_int
	ldr	w0, [x19, #52]
	add	x2, x19, #64
Lloh27:
	adrp	x1, l_.str.12@PAGE
Lloh28:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_config_get_int
	str	x0, [x19, #72]
	ldr	w0, [x19, #52]
	add	x2, x19, #60
Lloh29:
	adrp	x1, l_.str.13@PAGE
Lloh30:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_config_get_int
	ldr	w0, [x19, #52]
Lloh31:
	adrp	x1, l_.str.14@PAGE
Lloh32:
	add	x1, x1, l_.str.14@PAGEOFF
	add	x2, sp, #16
	mov	w3, #64
	bl	_config_get_array
	cbz	x0, LBB0_10
; %bb.8:
	add	x0, sp, #16
	bl	_av_get_pix_fmt
	str	w0, [x19, #56]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
Lloh33:
	adrp	x0, l_.str.15@PAGE
Lloh34:
	add	x0, x0, l_.str.15@PAGEOFF
	add	x1, sp, #16
	b	LBB0_20
LBB0_10:
	ldr	w0, [x19, #52]
	mov	x1, sp
	bl	_config_get_entry_list_head
	cbz	w0, LBB0_18
; %bb.11:
	add	x23, x19, #44
	add	x24, x19, #48
Lloh35:
	adrp	x19, l_.str.16@PAGE
Lloh36:
	add	x19, x19, l_.str.16@PAGEOFF
Lloh37:
	adrp	x20, l_.str.17@PAGE
Lloh38:
	add	x20, x20, l_.str.17@PAGEOFF
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x22, x24
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_STRLEN_CONST
	add	x1, x21, w0, sxtw
	ldr	w2, [sp, #8]
	mov	x0, x22
	mov	w3, #0
	bl	_av_dict_set
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, sp
	bl	_config_get_entry_list_next
	cbz	x0, LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #6
	bl	_strncmp
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x22, x23
	b	LBB0_13
LBB0_18:
	mov	w0, #1
	b	LBB0_21
LBB0_19:
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
LBB0_20:
	bl	_RARCH_ERR
	mov	w0, #0
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PIX_FMT_NONE,4,2               ; @PIX_FMT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[FFmpeg] Loading FFmpeg config \"%s\".\n"

l_.str.1:                               ; @.str.1
	.asciz	"[FFmpeg] Failed to load FFmpeg config \"%s\".\n"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"threads"

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

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

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

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

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

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

l_.str.12:                              ; @.str.12
	.asciz	"video_global_quality"

l_.str.13:                              ; @.str.13
	.asciz	"video_bit_rate"

l_.str.14:                              ; @.str.14
	.asciz	"pix_fmt"

l_.str.15:                              ; @.str.15
	.asciz	"[FFmpeg] Cannot find pix_fmt \"%s\".\n"

l_.str.16:                              ; @.str.16
	.asciz	"video_"

l_.str.17:                              ; @.str.17
	.asciz	"audio_"

	.no_dead_strip	_ffmpeg_init_config
.subsections_via_symbols
