	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_compute_shader
_shader_glsl_generate_compute_shader:   ## @shader_glsl_generate_compute_shader
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, -48(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_shader_glsl_add_version_declaration
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_shader_glsl_enable_extensions
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r13, %rcx
	leaq	-48(%rbp), %r8
	callq	_shader_generate_glsl_declarations
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	movl	(%r13), %eax
	jmp	LBB0_4
LBB0_5:
	movl	24(%r13), %edx
	movl	16(%r13), %r8d
	movl	20(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_shader_generate_code
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	_GL_COMPUTE_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_shader_glsl_compile
	movl	%ebx, %eax
	addq	$8, %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	"#extension GL_ARB_compute_shader : enable\n"

L_.str.1:                               ## @.str.1
	.asciz	"shared uint cs_g%u[%u];\n"

L_.str.2:                               ## @.str.2
	.asciz	"layout(local_size_x = %u, local_size_y = %u, local_size_z = %u) in;\n"

L_.str.3:                               ## @.str.3
	.asciz	"void main()\n{\n"

L_.str.4:                               ## @.str.4
	.asciz	"}\n"

	.comm	_GL_COMPUTE_SHADER,4,2          ## @GL_COMPUTE_SHADER
L_.str.5:                               ## @.str.5
	.asciz	"Compiling shader object %u.\n"

	.no_dead_strip	_shader_glsl_generate_compute_shader
.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_compute_shader
_shader_glsl_generate_compute_shader:   ; @shader_glsl_generate_compute_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x19, [x0]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x22, [sp, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_shader_glsl_add_version_declaration
	mov	x0, x20
	mov	x1, x19
	bl	_shader_glsl_enable_extensions
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
	add	x4, sp, #24
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	x3, x21
	bl	_shader_generate_glsl_declarations
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	x23, x9, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_shader_addline
	ldr	w8, [x21]
	b	LBB0_2
LBB0_5:
	ldp	w9, w8, [x21, #20]
	ldr	w10, [x21, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x21
	mov	x4, #0
	mov	x5, #0
	bl	_shader_generate_code
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
Lloh10:
	adrp	x8, _GL_COMPUTE_SHADER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_COMPUTE_SHADER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_glCreateShader
	bl	_GL_EXTCALL
	mov	x21, x0
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_shader_glsl_compile
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	"#extension GL_ARB_compute_shader : enable\n"

l_.str.1:                               ; @.str.1
	.asciz	"shared uint cs_g%u[%u];\n"

l_.str.2:                               ; @.str.2
	.asciz	"layout(local_size_x = %u, local_size_y = %u, local_size_z = %u) in;\n"

l_.str.3:                               ; @.str.3
	.asciz	"void main()\n{\n"

l_.str.4:                               ; @.str.4
	.asciz	"}\n"

	.comm	_GL_COMPUTE_SHADER,4,2          ; @GL_COMPUTE_SHADER
l_.str.5:                               ; @.str.5
	.asciz	"Compiling shader object %u.\n"

	.no_dead_strip	_shader_glsl_generate_compute_shader
.subsections_via_symbols
