	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_geometry_shader
_shader_glsl_generate_geometry_shader:  ## @shader_glsl_generate_geometry_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	4(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	32(%rdx), %r12
	movq	(%rdi), %r14
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -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
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	leaq	-48(%rbp), %r8
	callq	_shader_generate_glsl_declarations
	movl	16(%rbx), %edi
	callq	_glsl_primitive_type_from_d3d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	movl	(%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movl	12(%rbx), %edi
	callq	_glsl_primitive_type_from_d3d
	movl	8(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	(%r14), %rax
	movq	_ARB_CLIP_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_4:
	movq	%rbx, %rdi
	callq	_is_rasterization_disabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	4(%rbx), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_shader_glsl_generate_stream_output_setup
	jmp	LBB0_7
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	4(%rax), %edx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_shader_glsl_generate_sm4_output_setup
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_shader_generate_code
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	_GL_GEOMETRY_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_shader_glsl_compile
LBB0_9:
	movl	%r13d, %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	"layout(%s"

L_.str.1:                               ## @.str.1
	.asciz	", invocations = %u"

L_.str.2:                               ## @.str.2
	.asciz	") in;\n"

L_.str.3:                               ## @.str.3
	.asciz	"layout(%s, max_vertices = %u) out;\n"

L_.str.4:                               ## @.str.4
	.asciz	"in shader_in_out { vec4 reg[%u]; } shader_in[];\n"

	.comm	_ARB_CLIP_CONTROL,8,3           ## @ARB_CLIP_CONTROL
L_.str.5:                               ## @.str.5
	.asciz	"uniform vec4 pos_fixup;\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.6:                               ## @.str.6
	.asciz	"void main()\n{\n"

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

	.comm	_GL_GEOMETRY_SHADER,4,2         ## @GL_GEOMETRY_SHADER
L_.str.8:                               ## @.str.8
	.asciz	"Compiling shader object %u.\n"

	.no_dead_strip	_shader_glsl_generate_geometry_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_geometry_shader
_shader_glsl_generate_geometry_shader:  ; @shader_glsl_generate_geometry_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x24, x0
	add	x25, x1, #4
	add	x22, x2, #32
	ldr	x20, [x0]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x25, [sp, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_shader_glsl_add_version_declaration
	mov	x0, x19
	mov	x1, x20
	bl	_shader_glsl_enable_extensions
	add	x4, sp, #24
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_shader_generate_glsl_declarations
	ldr	w0, [x21, #16]
	bl	_glsl_primitive_type_from_d3d
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	w0, [x21, #12]
	bl	_glsl_primitive_type_from_d3d
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21, #8]
	stp	x0, x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _ARB_CLIP_CONTROL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ARB_CLIP_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_4:
	mov	x0, x21
	bl	_is_rasterization_disabled
	cbz	x0, LBB0_6
; %bb.5:
	add	x2, x21, #4
	mov	x0, x19
	mov	x1, x21
	bl	_shader_glsl_generate_stream_output_setup
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	ldp	w5, w2, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_shader_glsl_generate_sm4_output_setup
LBB0_7:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x4, #0
	mov	x5, #0
	bl	_shader_generate_code
	bl	_FAILED
	cbz	x0, LBB0_9
; %bb.8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
Lloh22:
	adrp	x8, _GL_GEOMETRY_SHADER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_GEOMETRY_SHADER@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_glCreateShader
	bl	_GL_EXTCALL
	mov	x21, x0
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_shader_glsl_compile
LBB0_10:
	mov	x0, 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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"layout(%s"

l_.str.1:                               ; @.str.1
	.asciz	", invocations = %u"

l_.str.2:                               ; @.str.2
	.asciz	") in;\n"

l_.str.3:                               ; @.str.3
	.asciz	"layout(%s, max_vertices = %u) out;\n"

l_.str.4:                               ; @.str.4
	.asciz	"in shader_in_out { vec4 reg[%u]; } shader_in[];\n"

	.comm	_ARB_CLIP_CONTROL,8,3           ; @ARB_CLIP_CONTROL
l_.str.5:                               ; @.str.5
	.asciz	"uniform vec4 pos_fixup;\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.6:                               ; @.str.6
	.asciz	"void main()\n{\n"

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

	.comm	_GL_GEOMETRY_SHADER,4,2         ; @GL_GEOMETRY_SHADER
l_.str.8:                               ; @.str.8
	.asciz	"Compiling shader object %u.\n"

	.no_dead_strip	_shader_glsl_generate_geometry_shader
.subsections_via_symbols
