	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dir_init_shader
_dir_init_shader:                       ## @dir_init_shader
	.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
	movq	_configuration_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rax), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.2:
	movq	_DIR_LIST_SHADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_dir_list_new_special
	movq	_dir_shader_list@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	$0, 8(%r12)
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_dir_list_sort
	movq	(%r12), %rax
	movl	$1, %r14d
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_MSG_FOUND_SHADER@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_msg_hash_to_str
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_RARCH_LOG
	incq	%rbx
	movq	(%r12), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	callq	_dir_free_shader
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dir_shader_list,4,2            ## @dir_shader_list
	.comm	_configuration_settings,8,3     ## @configuration_settings
	.comm	_DIR_LIST_SHADERS,4,2           ## @DIR_LIST_SHADERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s \"%s\"\n"

	.comm	_MSG_FOUND_SHADER,4,2           ## @MSG_FOUND_SHADER
	.no_dead_strip	_dir_init_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dir_init_shader
_dir_init_shader:                       ; @dir_init_shader
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x0, [x8]
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _DIR_LIST_SHADERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIR_LIST_SHADERS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_dir_list_new_special
Lloh6:
	adrp	x20, _dir_shader_list@GOTPAGE
Lloh7:
	ldr	x20, [x20, _dir_shader_list@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.4:
	str	xzr, [x20, #8]
	mov	w1, #0
	bl	_dir_list_sort
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x21, #0
Lloh8:
	adrp	x22, _MSG_FOUND_SHADER@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MSG_FOUND_SHADER@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_msg_hash_to_str
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_RARCH_LOG
	add	x21, x21, #1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	bl	_dir_free_shader
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dir_shader_list,4,2            ; @dir_shader_list
	.comm	_configuration_settings,8,3     ; @configuration_settings
	.comm	_DIR_LIST_SHADERS,4,2           ; @DIR_LIST_SHADERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s \"%s\"\n"

	.comm	_MSG_FOUND_SHADER,4,2           ; @MSG_FOUND_SHADER
	.no_dead_strip	_dir_init_shader
.subsections_via_symbols
