	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_patch_constant_name
_shader_glsl_generate_patch_constant_name: ## @shader_glsl_generate_patch_constant_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_1
## %bb.6:
	movl	$58, %eax
	btl	%ecx, %eax
	jae	LBB0_7
## %bb.3:
	movq	8(%rsi), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movq	8(%rsi), %rdx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_shader_addline                 ## TAILCALL
LBB0_1:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	(%rdx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rdx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_shader_addline                 ## TAILCALL
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user_patch_constant[%u]%s"

L_.str.1:                               ## @.str.1
	.asciz	"gl_TessLevelOuter[%u]"

L_.str.2:                               ## @.str.2
	.asciz	"gl_TessLevelInner[%u]"

L_.str.3:                               ## @.str.3
	.asciz	"Unhandled sysval semantic %#x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"vec4(0.0)%s"

	.no_dead_strip	_shader_glsl_generate_patch_constant_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_generate_patch_constant_name
_shader_glsl_generate_patch_constant_name: ; @shader_glsl_generate_patch_constant_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x1]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_6
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w9
	mov	w9, #58
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x2, [x1, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x2, [x1, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_shader_addline
LBB0_6:
	mov	x20, x3
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w8, [x2]
	add	w9, w8, #1
	str	w9, [x2]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x8
	bl	_shader_addline
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x8
	bl	_FIXME
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user_patch_constant[%u]%s"

l_.str.1:                               ; @.str.1
	.asciz	"gl_TessLevelOuter[%u]"

l_.str.2:                               ; @.str.2
	.asciz	"gl_TessLevelInner[%u]"

l_.str.3:                               ; @.str.3
	.asciz	"Unhandled sysval semantic %#x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"vec4(0.0)%s"

	.no_dead_strip	_shader_glsl_generate_patch_constant_name
.subsections_via_symbols
