	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_shader_read_conf_preset  ## -- Begin function video_shader_read_conf_preset
	.p2align	4, 0x90
_video_shader_read_conf_preset:         ## @video_shader_read_conf_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	(%rax), %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_config_get_uint
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_config_get_int
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$-1, (%r13)
LBB0_6:
	movl	-44(%rbp), %edi
	movq	_GFX_MAX_SHADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MIN
	movl	%eax, 4(%r13)
	movl	16(%r13), %edi
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.8:
	movq	_file_change_data@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	_file_change_data@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_frontend_driver_watch_path_for_changes
LBB0_10:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_string_list_new
	movl	(%r14), %esi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_string_list_append
	cmpl	$0, 4(%r13)
	jne	LBB0_12
	jmp	LBB0_19
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_ERR
	jmp	LBB0_23
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_RARCH_ERR
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r13)
	je	LBB0_19
LBB0_12:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%r12b
	andb	%al, %r12b
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movl	4(%r13), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jae	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_video_shader_parse_pass
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_string_list_append
	jmp	LBB0_18
LBB0_19:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:
	movq	_PATH_CHANGE_TYPE_MODIFIED@GOTPCREL(%rip), %rax
	movq	_PATH_CHANGE_TYPE_WRITE_FILE_CLOSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PATH_CHANGE_TYPE_FILE_MOVED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PATH_CHANGE_TYPE_FILE_DELETED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_file_change_data@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	callq	_frontend_driver_watch_path_for_changes
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_string_list_free
LBB0_22:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_video_shader_parse_textures
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_23
LBB0_14:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.15:
	callq	_string_list_free
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shaders"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot find \"shaders\" param.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Need to define at least 1 shader.\n"

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

	.comm	_GFX_MAX_SHADERS,4,2            ## @GFX_MAX_SHADERS
	.comm	_file_change_data,8,3           ## @file_change_data
	.comm	_PATH_CHANGE_TYPE_MODIFIED,4,2  ## @PATH_CHANGE_TYPE_MODIFIED
	.comm	_PATH_CHANGE_TYPE_WRITE_FILE_CLOSED,4,2 ## @PATH_CHANGE_TYPE_WRITE_FILE_CLOSED
	.comm	_PATH_CHANGE_TYPE_FILE_MOVED,4,2 ## @PATH_CHANGE_TYPE_FILE_MOVED
	.comm	_PATH_CHANGE_TYPE_FILE_DELETED,4,2 ## @PATH_CHANGE_TYPE_FILE_DELETED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_shader_read_conf_preset  ; -- Begin function video_shader_read_conf_preset
	.p2align	2
_video_shader_read_conf_preset:         ; @video_shader_read_conf_preset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	bl	_config_get_ptr
	ldr	w23, [x0]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_config_get_uint
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.2:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_config_get_int
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w8, #-1
	str	w8, [x19]
LBB0_4:
	ldr	w0, [sp, #12]
Lloh4:
	adrp	x8, _GFX_MAX_SHADERS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFX_MAX_SHADERS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_MIN
	str	w0, [x19, #4]
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_strlcpy
	cbz	w23, LBB0_12
; %bb.5:
Lloh7:
	adrp	x21, _file_change_data@GOTPAGE
Lloh8:
	ldr	x21, [x21, _file_change_data@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.6:
Lloh9:
	adrp	x2, _file_change_data@GOTPAGE
Lloh10:
	ldr	x2, [x2, _file_change_data@GOTPAGEOFF]
	mov	x0, #0
	mov	w1, #0
	bl	_frontend_driver_watch_path_for_changes
LBB0_7:
	str	xzr, [x21]
	bl	_string_list_new
	mov	x21, x0
	ldr	w1, [x20]
	mov	x2, #0
	bl	_string_list_append
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
	b	LBB0_18
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_RARCH_ERR
LBB0_11:
	mov	w0, #0
	b	LBB0_22
LBB0_12:
	mov	x21, #0
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_18
LBB0_13:
	mov	x24, #0
	mov	x22, #0
	cmp	w23, #0
	ccmp	x21, #0, #4, ne
	cset	w25, ne
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #4]
	add	x24, x24, #4
	cmp	x22, x8
	b.hs	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x24
	mov	x0, x20
	mov	x2, x22
	bl	_video_shader_parse_pass
	cbz	w0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cbz	w25, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x24]
	mov	x0, x21
	mov	x2, #0
	bl	_string_list_append
	b	LBB0_14
LBB0_18:
	cbz	w23, LBB0_21
; %bb.19:
Lloh15:
	adrp	x8, _PATH_CHANGE_TYPE_MODIFIED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PATH_CHANGE_TYPE_MODIFIED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PATH_CHANGE_TYPE_WRITE_FILE_CLOSED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PATH_CHANGE_TYPE_WRITE_FILE_CLOSED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _PATH_CHANGE_TYPE_FILE_MOVED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PATH_CHANGE_TYPE_FILE_MOVED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _PATH_CHANGE_TYPE_FILE_DELETED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PATH_CHANGE_TYPE_FILE_DELETED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh27:
	adrp	x2, _file_change_data@GOTPAGE
Lloh28:
	ldr	x2, [x2, _file_change_data@GOTPAGEOFF]
	mov	x0, x21
	bl	_frontend_driver_watch_path_for_changes
	cbz	x21, LBB0_21
; %bb.20:
	mov	x0, x21
	bl	_string_list_free
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	bl	_video_shader_parse_textures
	cmp	w0, #0
	cset	w0, ne
LBB0_22:
	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
	add	sp, sp, #96
	ret
LBB0_23:
	cbz	x21, LBB0_11
; %bb.24:
	mov	x0, x21
	bl	_string_list_free
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shaders"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot find \"shaders\" param.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Need to define at least 1 shader.\n"

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

	.comm	_GFX_MAX_SHADERS,4,2            ; @GFX_MAX_SHADERS
	.comm	_file_change_data,8,3           ; @file_change_data
	.comm	_PATH_CHANGE_TYPE_MODIFIED,4,2  ; @PATH_CHANGE_TYPE_MODIFIED
	.comm	_PATH_CHANGE_TYPE_WRITE_FILE_CLOSED,4,2 ; @PATH_CHANGE_TYPE_WRITE_FILE_CLOSED
	.comm	_PATH_CHANGE_TYPE_FILE_MOVED,4,2 ; @PATH_CHANGE_TYPE_FILE_MOVED
	.comm	_PATH_CHANGE_TYPE_FILE_DELETED,4,2 ; @PATH_CHANGE_TYPE_FILE_DELETED
.subsections_via_symbols
