	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_shader_resolve_current_parameters ## -- Begin function video_shader_resolve_current_parameters
	.p2align	4, 0x90
_video_shader_resolve_current_parameters: ## @video_shader_resolve_current_parameters
	.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	$0, -48(%rbp)
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r12
	movb	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	$4096, %ecx                     ## imm = 0x1000
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_config_get_array
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %r12
	leaq	-48(%rbp), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rsi
	callq	_RARCH_WARN
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_strtok_r
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	%r15, %rdx
	callq	_video_shader_parse_find_parameter
	leaq	L_.str.2(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_config_get_float
	leaq	L_.str.3(%rip), %rdi
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_3:
	movq	%r12, %rdi
LBB0_11:
	callq	_free
	movl	$1, %r15d
LBB0_12:
	movl	%r15d, %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	"parameters"

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

L_.str.2:                               ## @.str.2
	.asciz	"[CGP/GLSLP]: Parameter %s is set in the preset, but no shader uses this parameter, ignoring.\n"

L_.str.3:                               ## @.str.3
	.asciz	"[CGP/GLSLP]: Parameter %s is not set in preset.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_shader_resolve_current_parameters ; -- Begin function video_shader_resolve_current_parameters
	.p2align	2
_video_shader_resolve_current_parameters: ; @video_shader_resolve_current_parameters
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w0, #4096
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	strb	wzr, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	w3, #4096
	bl	_config_get_array
	cbz	w0, LBB0_11
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_strtok_r
	cbz	x0, LBB0_11
; %bb.4:
	mov	x23, x0
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x23
	bl	_RARCH_WARN
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x22
	bl	_strtok_r
	mov	x23, x0
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19]
	mov	x2, x23
	bl	_video_shader_parse_find_parameter
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_config_get_float
	cbnz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	b	LBB0_6
LBB0_11:
	mov	x0, x21
	bl	_free
	mov	w0, #1
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parameters"

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

l_.str.2:                               ; @.str.2
	.asciz	"[CGP/GLSLP]: Parameter %s is set in the preset, but no shader uses this parameter, ignoring.\n"

l_.str.3:                               ; @.str.3
	.asciz	"[CGP/GLSLP]: Parameter %s is not set in preset.\n"

.subsections_via_symbols
