	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_shader_manager_init       ## -- Begin function menu_shader_manager_init
	.p2align	4, 0x90
_menu_shader_manager_init:              ## @menu_shader_manager_init
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -28(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_video_shader_driver_get_current_shader
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r15
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_retroarch_get_shader_preset
	movq	%rax, %r15
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_menu_shader_manager_free
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%r15, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_5
LBB0_12:
	movl	$1, %r14d
LBB0_13:
	movq	_menu_driver_shader@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_CMD_EVENT_SHADER_PRESET_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_path_get_extension
	leaq	-28(%rbp), %rsi
	movl	%eax, %edi
	callq	_video_shader_get_type_from_ext
	movl	%eax, %edi
	callq	_video_shader_is_supported
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	cmpl	$0, -28(%rbp)
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_video_shader_read_preset
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_video_shader_read_conf_preset
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_video_shader_resolve_parameters
LBB0_10:
	movq	_menu_driver_shader_modified@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	%r15, %rdi
	callq	_config_file_free
	jmp	LBB0_12
LBB0_11:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	$1, (%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_SHADER_NONE,4,2          ## @RARCH_SHADER_NONE
	.comm	_menu_driver_shader_modified,4,2 ## @menu_driver_shader_modified
	.comm	_menu_driver_shader,8,3         ## @menu_driver_shader
	.comm	_CMD_EVENT_SHADER_PRESET_LOADED,4,2 ## @CMD_EVENT_SHADER_PRESET_LOADED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_shader_manager_init       ; -- Begin function menu_shader_manager_init
	.p2align	2
_menu_shader_manager_init:              ; @menu_shader_manager_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	stur	wzr, [x29, #-20]
	stp	xzr, xzr, [sp, #8]
	add	x0, sp, #8
	bl	_video_shader_driver_get_current_shader
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x8]
	b	LBB0_3
LBB0_2:
	bl	_retroarch_get_shader_preset
	mov	x20, x0
LBB0_3:
	bl	_menu_shader_manager_free
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_string_is_empty
	cbz	x0, LBB0_6
; %bb.5:
	mov	w20, #1
	b	LBB0_13
LBB0_6:
	mov	x0, x20
	bl	_path_get_extension
	sub	x1, x29, #20
	bl	_video_shader_get_type_from_ext
	bl	_video_shader_is_supported
	cbz	w0, LBB0_12
; %bb.7:
	ldur	w8, [x29, #-20]
	cbz	w8, LBB0_14
; %bb.8:
	mov	x0, x20
	bl	_video_shader_read_preset
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_video_shader_read_conf_preset
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_video_shader_resolve_parameters
LBB0_11:
Lloh0:
	adrp	x8, _menu_driver_shader_modified@GOTPAGE
Lloh1:
	ldr	x8, [x8, _menu_driver_shader_modified@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
	mov	x0, x20
	bl	_config_file_free
	mov	w20, #1
	b	LBB0_13
LBB0_12:
	mov	w20, #0
LBB0_13:
Lloh3:
	adrp	x8, _menu_driver_shader@GOTPAGE
Lloh4:
	ldr	x8, [x8, _menu_driver_shader@GOTPAGEOFF]
Lloh5:
	str	x19, [x8]
Lloh6:
	adrp	x8, _CMD_EVENT_SHADER_PRESET_LOADED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_EVENT_SHADER_PRESET_LOADED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	mov	w20, #1
	str	w20, [x19]
	b	LBB0_13
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_SHADER_NONE,4,2          ; @RARCH_SHADER_NONE
	.comm	_menu_driver_shader_modified,4,2 ; @menu_driver_shader_modified
	.comm	_menu_driver_shader,8,3         ; @menu_driver_shader
	.comm	_CMD_EVENT_SHADER_PRESET_LOADED,4,2 ; @CMD_EVENT_SHADER_PRESET_LOADED
.subsections_via_symbols
