	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_gen_sample_c_lz
_shader_glsl_gen_sample_c_lz:           ## @shader_glsl_gen_sample_c_lz
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	12(%rdx), %edi
	callq	_wined3d_popcount
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	-78(%rbp), %rcx
	callq	_shader_glsl_swizzle_to_str
	movq	(%rbx), %rdx
	movl	8(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_shader_glsl_append_dst_ext
	cmpq	$0, (%r15)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r13
	cmoveq	%rax, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_shader_glsl_get_prefix
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_shader_addline
	addq	$32, %rsp
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	(%r15), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_shader_glsl_append_imm_ivec
LBB0_2:
	leaq	L_.str.5(%rip), %rsi
	leaq	-78(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Emitting textureGrad() for sample_c_lz.\n"

	.comm	_WINED3DSP_NOSWIZZLE,4,2        ## @WINED3DSP_NOSWIZZLE
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"vec4(textureGrad%s(%s_sampler%u, vec%u(%s, %s), vec%u(0.0), vec%u(0.0)"

L_.str.2:                               ## @.str.2
	.asciz	"Offset"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	", "

L_.str.5:                               ## @.str.5
	.asciz	"))%s);\n"

	.no_dead_strip	_shader_glsl_gen_sample_c_lz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_gen_sample_c_lz
_shader_glsl_gen_sample_c_lz:           ; @shader_glsl_gen_sample_c_lz
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x25, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x8, [x0, #8]
	ldr	x28, [x8, #8]
	ldr	w0, [x2, #12]
	bl	_wined3d_popcount
	mov	x26, x0
	ldr	x8, [x21, #8]
	ldr	x20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh5:
	adrp	x8, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w2, [x8]
	add	x3, sp, #66
	bl	_shader_glsl_swizzle_to_str
	ldr	x2, [x21]
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_shader_glsl_append_dst_ext
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x9, [x19]
Lloh13:
	adrp	x10, l_.str.3@PAGE
Lloh14:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x9, #0
	csel	x27, x10, x8, eq
	ldr	w0, [x28]
	bl	_shader_glsl_get_prefix
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x26, [sp, #48]
	stp	x24, x25, [sp, #32]
	stp	x23, x22, [sp, #16]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x27, x0, [sp]
	mov	x0, x20
	bl	_shader_addline
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	d0, [x21, #16]
	str	d0, [sp, #72]
	ldr	w8, [x21, #24]
	stp	w8, wzr, [sp, #80]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
	ldr	x2, [x19]
	add	x1, sp, #72
	mov	x0, x20
	bl	_shader_glsl_append_imm_ivec
LBB0_2:
	add	x8, sp, #66
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
	ldr	x8, [sp, #88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Emitting textureGrad() for sample_c_lz.\n"

	.comm	_WINED3DSP_NOSWIZZLE,4,2        ; @WINED3DSP_NOSWIZZLE
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"vec4(textureGrad%s(%s_sampler%u, vec%u(%s, %s), vec%u(0.0), vec%u(0.0)"

l_.str.2:                               ; @.str.2
	.asciz	"Offset"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	", "

l_.str.5:                               ; @.str.5
	.asciz	"))%s);\n"

	.no_dead_strip	_shader_glsl_gen_sample_c_lz
.subsections_via_symbols
