	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_shader_parse_textures
_video_shader_parse_textures:           ## @video_shader_parse_textures
	.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	$312, %rsp                      ## imm = 0x138
	.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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	$0, -336(%rbp)
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	leal	1024(%rax), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movb	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_config_get_array
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-336(%rbp), %rdx
	movq	%r14, -320(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rax, %r12
	movq	-320(%rbp), %rbx                ## 8-byte Reload
	addq	$1024, %rbx                     ## imm = 0x400
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	leaq	(%rax,%rax,2), %rdx
	movl	$0, 8(%rcx,%rdx,8)
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	incq	%rax
	movq	%rax, (%r13)
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-336(%rbp), %rdx
	callq	_strtok_r
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	_GFX_MAX_TEXTURES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, -312(%rbp)
	movl	$0, -308(%rbp)
	movb	$0, -304(%rbp)
	movb	$0, -240(%rbp)
	movb	$0, -176(%rbp)
	movb	$0, -112(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-344(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_config_get_array
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	20(%rcx,%rax,8), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_fill_pathname_resolve_relative
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$64, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$64, %edx
	callq	_strlcat
	movq	%r15, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-308(%rbp), %rdx
	callq	_config_get_bool
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -308(%rbp)
	movq	_RARCH_FILTER_LINEAR@GOTPCREL(%rip), %rax
	leaq	-240(%rbp), %r14
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_RARCH_FILTER_NEAREST@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RARCH_FILTER_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-240(%rbp), %r14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r15
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 16(%rdx,%rcx,8)
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$64, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$64, %edx
	callq	_strlcat
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$64, %ecx
	callq	_config_get_array
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_wrap_str_to_mode
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 12(%rdx,%rcx,8)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$64, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$64, %edx
	callq	_strlcat
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-312(%rbp), %rdx
	callq	_config_get_bool
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-312(%rbp), %ecx
	movq	(%r13), %rax
	movq	8(%r13), %rdx
	leaq	(%rax,%rax,2), %rsi
	movl	%ecx, 8(%rdx,%rsi,8)
	jmp	LBB0_19
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_21
LBB0_3:
	movq	%r14, %rdi
LBB0_21:
	callq	_free
	movl	$1, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_RARCH_ERR
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,8,3            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"textures"

L_.str.1:                               ## @.str.1
	.asciz	";"

	.comm	_GFX_MAX_TEXTURES,8,3           ## @GFX_MAX_TEXTURES
L_.str.2:                               ## @.str.2
	.asciz	"Cannot find path to texture \"%s\" ...\n"

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

	.comm	_RARCH_FILTER_LINEAR,4,2        ## @RARCH_FILTER_LINEAR
	.comm	_RARCH_FILTER_NEAREST,4,2       ## @RARCH_FILTER_NEAREST
	.comm	_RARCH_FILTER_UNSPEC,4,2        ## @RARCH_FILTER_UNSPEC
L_.str.4:                               ## @.str.4
	.asciz	"_wrap_mode"

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

	.no_dead_strip	_video_shader_parse_textures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_shader_parse_textures
_video_shader_parse_textures:           ; @video_shader_parse_textures
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	str	xzr, [sp, #8]
	add	w0, w22, #1024
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	strb	wzr, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	w3, #1024
	bl	_config_get_array
	cbz	x0, LBB0_15
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_strtok_r
	cbz	x0, LBB0_15
; %bb.3:
	mov	x28, x0
	add	x23, x20, #1024
	mov	w24, #24
Lloh10:
	adrp	x25, l_.str.4@PAGE
Lloh11:
	add	x25, x25, l_.str.4@PAGEOFF
Lloh12:
	adrp	x26, l_.str.5@PAGE
Lloh13:
	add	x26, x26, l_.str.5@PAGEOFF
Lloh14:
	adrp	x27, l_.str.1@PAGE
Lloh15:
	add	x27, x27, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x9, [x19]
	madd	x9, x8, x24, x9
	str	wzr, [x9, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	str	x8, [x19]
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x27
	bl	_strtok_r
	mov	x28, x0
	cbz	x0, LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _GFX_MAX_TEXTURES@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GFX_MAX_TEXTURES@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [sp]
	strb	wzr, [sp, #16]
	strb	wzr, [sp, #80]
	strb	wzr, [sp, #144]
	sturb	wzr, [x29, #-160]
	mov	x0, x21
	mov	x1, x28
	mov	x2, x23
	mov	x3, x22
	bl	_config_get_array
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x19]
	madd	x8, x9, x24, x8
	ldr	w0, [x8, #20]
	ldr	w1, [x21]
	mov	x2, x23
	mov	w3, #4
	bl	_fill_pathname_resolve_relative
	ldp	x9, x8, [x19]
	mul	x9, x9, x24
	ldr	x0, [x8, x9]
	mov	x1, x28
	mov	w2, #8
	bl	_strlcpy
	sub	x0, x29, #160
	mov	x1, x28
	mov	w2, #64
	bl	_strlcpy
	sub	x0, x29, #160
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #64
	bl	_strlcat
	sub	x1, x29, #160
	mov	x2, sp
	mov	x0, x21
	bl	_config_get_bool
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp]
	cmp	w8, #0
Lloh21:
	adrp	x8, _RARCH_FILTER_LINEAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RARCH_FILTER_LINEAR@GOTPAGEOFF]
Lloh23:
	adrp	x9, _RARCH_FILTER_NEAREST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RARCH_FILTER_NEAREST@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh25:
	adrp	x8, _RARCH_FILTER_UNSPEC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RARCH_FILTER_UNSPEC@GOTPAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x8]
	ldp	x10, x9, [x19]
	madd	x9, x10, x24, x9
	str	w8, [x9, #16]
	add	x0, sp, #144
	mov	x1, x28
	mov	w2, #64
	bl	_strlcpy
	add	x0, sp, #144
	mov	x1, x25
	mov	w2, #64
	bl	_strlcat
	add	x1, sp, #144
	add	x2, sp, #80
	mov	x0, x21
	mov	w3, #64
	bl	_config_get_array
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #80
	bl	_wrap_str_to_mode
	ldp	x9, x8, [x19]
	madd	x8, x9, x24, x8
	str	w0, [x8, #12]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	mov	x1, x28
	mov	w2, #64
	bl	_strlcpy
	add	x0, sp, #16
	mov	x1, x26
	mov	w2, #64
	bl	_strlcat
	add	x1, sp, #16
	add	x2, sp, #4
	mov	x0, x21
	bl	_config_get_bool
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #4]
	ldp	x8, x10, [x19]
	madd	x10, x8, x24, x10
	str	w9, [x10, #8]
	b	LBB0_5
LBB0_15:
	mov	x0, x20
	bl	_free
	mov	w0, #1
LBB0_16:
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_18:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_RARCH_ERR
	mov	x0, x20
	bl	_free
	mov	w0, #0
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,8,3            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"textures"

l_.str.1:                               ; @.str.1
	.asciz	";"

	.comm	_GFX_MAX_TEXTURES,8,3           ; @GFX_MAX_TEXTURES
l_.str.2:                               ; @.str.2
	.asciz	"Cannot find path to texture \"%s\" ...\n"

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

	.comm	_RARCH_FILTER_LINEAR,4,2        ; @RARCH_FILTER_LINEAR
	.comm	_RARCH_FILTER_NEAREST,4,2       ; @RARCH_FILTER_NEAREST
	.comm	_RARCH_FILTER_UNSPEC,4,2        ; @RARCH_FILTER_UNSPEC
l_.str.4:                               ; @.str.4
	.asciz	"_wrap_mode"

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

	.no_dead_strip	_video_shader_parse_textures
.subsections_via_symbols
