	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_init_ps_uniform_locations
_shader_glsl_init_ps_uniform_locations: ## @shader_glsl_init_ps_uniform_locations
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_string_buffer_get
	movq	%rax, %r13
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	128(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_3
## %bb.4:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	shlq	$3, %rbx
	addq	128(%r15), %rbx
	movq	_WINED3D_MAX_PS_CONSTS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%r14d, %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_memset
	movq	_WINED3D_MAX_CONSTS_I@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	120(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_8:
	movq	_WINED3D_MAX_CONSTS_B@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	112(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	104(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	96(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	88(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	callq	_string_buffer_sprintf
	movq	(%r13), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	80(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 72(%r15)
	leaq	L_.str.8(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 64(%r15)
	leaq	L_.str.9(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 56(%r15)
	leaq	L_.str.10(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 48(%r15)
	leaq	L_.str.11(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 40(%r15)
	leaq	L_.str.12(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 32(%r15)
	leaq	L_.str.13(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 24(%r15)
	leaq	L_.str.14(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 16(%r15)
	leaq	L_.str.15(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, 8(%r15)
	leaq	L_.str.16(%rip), %rsi
	movl	%r12d, %edi
	callq	_glGetUniformLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, (%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_string_buffer_release          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ps_c[%u]"

	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ## @WINED3D_MAX_PS_CONSTS_F
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ## @WINED3D_MAX_CONSTS_I
L_.str.1:                               ## @.str.1
	.asciz	"ps_i[%u]"

	.comm	_WINED3D_MAX_CONSTS_B,4,2       ## @WINED3D_MAX_CONSTS_B
L_.str.2:                               ## @.str.2
	.asciz	"ps_b[%u]"

	.comm	_MAX_TEXTURES,4,2               ## @MAX_TEXTURES
L_.str.3:                               ## @.str.3
	.asciz	"bumpenv_mat%u"

L_.str.4:                               ## @.str.4
	.asciz	"bumpenv_lum_scale%u"

L_.str.5:                               ## @.str.5
	.asciz	"bumpenv_lum_offset%u"

L_.str.6:                               ## @.str.6
	.asciz	"tss_const%u"

L_.str.7:                               ## @.str.7
	.asciz	"tex_factor"

L_.str.8:                               ## @.str.8
	.asciz	"specular_enable"

L_.str.9:                               ## @.str.9
	.asciz	"ffp_fog.color"

L_.str.10:                              ## @.str.10
	.asciz	"ffp_fog.density"

L_.str.11:                              ## @.str.11
	.asciz	"ffp_fog.end"

L_.str.12:                              ## @.str.12
	.asciz	"ffp_fog.scale"

L_.str.13:                              ## @.str.13
	.asciz	"alpha_test_ref"

L_.str.14:                              ## @.str.14
	.asciz	"ps_samplerNP2Fixup"

L_.str.15:                              ## @.str.15
	.asciz	"ycorrection"

L_.str.16:                              ## @.str.16
	.asciz	"color_key"

	.no_dead_strip	_shader_glsl_init_ps_uniform_locations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_init_ps_uniform_locations
_shader_glsl_init_ps_uniform_locations: ; @shader_glsl_init_ps_uniform_locations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x0, x1
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	bl	_string_buffer_get
	mov	x21, x0
	cbz	w23, LBB0_3
; %bb.1:
	mov	x24, #0
	mov	w20, w23
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #128]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	cmp	x20, x24
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	ldr	x8, [x19, #128]
	add	x0, x8, x20, lsl #3
Lloh2:
	adrp	x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w8, w8, w23
	lsl	w2, w8, #2
	mov	w1, #255
	bl	_memset
Lloh5:
	adrp	x20, _WINED3D_MAX_CONSTS_I@GOTPAGE
Lloh6:
	ldr	x20, [x20, _WINED3D_MAX_CONSTS_I@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x23, #0
Lloh7:
	adrp	x24, l_.str.1@PAGE
Lloh8:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #120]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.lo	LBB0_6
LBB0_7:
Lloh9:
	adrp	x20, _WINED3D_MAX_CONSTS_B@GOTPAGE
Lloh10:
	ldr	x20, [x20, _WINED3D_MAX_CONSTS_B@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x23, #0
Lloh11:
	adrp	x24, l_.str.2@PAGE
Lloh12:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #112]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.lo	LBB0_9
LBB0_10:
Lloh13:
	adrp	x28, _MAX_TEXTURES@GOTPAGE
Lloh14:
	ldr	x28, [x28, _MAX_TEXTURES@GOTPAGEOFF]
	ldr	w8, [x28]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x23, #0
Lloh15:
	adrp	x24, l_.str.3@PAGE
Lloh16:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh17:
	adrp	x25, l_.str.4@PAGE
Lloh18:
	add	x25, x25, l_.str.4@PAGEOFF
Lloh19:
	adrp	x26, l_.str.5@PAGE
Lloh20:
	add	x26, x26, l_.str.5@PAGEOFF
Lloh21:
	adrp	x27, l_.str.6@PAGE
Lloh22:
	add	x27, x27, l_.str.6@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #104]
	lsl	x20, x23, #3
	str	x0, [x8, x20]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #96]
	str	x0, [x8, x20]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #88]
	str	x0, [x8, x20]
	mov	x0, x21
	mov	x1, x27
	mov	x2, x23
	bl	_string_buffer_sprintf
	ldr	x1, [x21]
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	ldr	x8, [x19, #80]
	str	x0, [x8, x20]
	add	x23, x23, #1
	ldr	w8, [x28]
	cmp	x23, x8
	b.lo	LBB0_12
LBB0_13:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #72]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #64]
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #56]
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #48]
Lloh31:
	adrp	x1, l_.str.11@PAGE
Lloh32:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #40]
Lloh33:
	adrp	x1, l_.str.12@PAGE
Lloh34:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #32]
Lloh35:
	adrp	x1, l_.str.13@PAGE
Lloh36:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #24]
Lloh37:
	adrp	x1, l_.str.14@PAGE
Lloh38:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #16]
Lloh39:
	adrp	x1, l_.str.15@PAGE
Lloh40:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19, #8]
Lloh41:
	adrp	x1, l_.str.16@PAGE
Lloh42:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x22
	bl	_glGetUniformLocation
	bl	_GL_EXTCALL
	str	x0, [x19]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_string_buffer_release
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ps_c[%u]"

	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ; @WINED3D_MAX_PS_CONSTS_F
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ; @WINED3D_MAX_CONSTS_I
l_.str.1:                               ; @.str.1
	.asciz	"ps_i[%u]"

	.comm	_WINED3D_MAX_CONSTS_B,4,2       ; @WINED3D_MAX_CONSTS_B
l_.str.2:                               ; @.str.2
	.asciz	"ps_b[%u]"

	.comm	_MAX_TEXTURES,4,2               ; @MAX_TEXTURES
l_.str.3:                               ; @.str.3
	.asciz	"bumpenv_mat%u"

l_.str.4:                               ; @.str.4
	.asciz	"bumpenv_lum_scale%u"

l_.str.5:                               ; @.str.5
	.asciz	"bumpenv_lum_offset%u"

l_.str.6:                               ; @.str.6
	.asciz	"tss_const%u"

l_.str.7:                               ; @.str.7
	.asciz	"tex_factor"

l_.str.8:                               ; @.str.8
	.asciz	"specular_enable"

l_.str.9:                               ; @.str.9
	.asciz	"ffp_fog.color"

l_.str.10:                              ; @.str.10
	.asciz	"ffp_fog.density"

l_.str.11:                              ; @.str.11
	.asciz	"ffp_fog.end"

l_.str.12:                              ; @.str.12
	.asciz	"ffp_fog.scale"

l_.str.13:                              ; @.str.13
	.asciz	"alpha_test_ref"

l_.str.14:                              ; @.str.14
	.asciz	"ps_samplerNP2Fixup"

l_.str.15:                              ; @.str.15
	.asciz	"ycorrection"

l_.str.16:                              ; @.str.16
	.asciz	"color_key"

	.no_dead_strip	_shader_glsl_init_ps_uniform_locations
.subsections_via_symbols
