	.file	"extr_glsl_shader.c_shader_glsl_generate_geometry_shader.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"layout(%s"
.LC1:
	.string	", invocations = %u"
.LC2:
	.string	") in;\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"layout(%s, max_vertices = %u) out;\n"
	.align 8
.LC4:
	.string	"in shader_in_out { vec4 reg[%u]; } shader_in[];\n"
	.section	.rodata.str1.1
.LC5:
	.string	"uniform vec4 pos_fixup;\n"
.LC6:
	.string	"void main()\n{\n"
.LC7:
	.string	"}\n"
.LC8:
	.string	"Compiling shader object %u.\n"
	.text
	.p2align 4
	.type	shader_glsl_generate_geometry_shader, @function
shader_glsl_generate_geometry_shader:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 32[rdx]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	mov	edx, 8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, r13
	call	memset@PLT
	lea	rax, 4[rbx]
	mov	rsi, r12
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], rax
	call	shader_glsl_add_version_declaration@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	shader_glsl_enable_extensions@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, r13
	mov	rcx, r15
	mov	rdx, rbp
	mov	rsi, rbx
	mov	rdi, r9
	call	shader_generate_glsl_declarations@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	glsl_primitive_type_from_d3d@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	mov	edx, eax
	xor	eax, eax
	call	shader_addline@PLT
	mov	edx, DWORD PTR 0[rbp]
	cmp	edx, 1
	jle	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	shader_addline@PLT
.L2:
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	shader_addline@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 12[rbp]
	mov	DWORD PTR 8[rsp], ecx
	call	glsl_primitive_type_from_d3d@PLT
	mov	ecx, DWORD PTR 8[rsp]
	lea	rsi, .LC3[rip]
	mov	rdi, rbx
	mov	edx, eax
	xor	eax, eax
	call	shader_addline@PLT
	mov	rax, QWORD PTR 24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rbx
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	shader_addline@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR ARB_CLIP_CONTROL[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L11
.L3:
	mov	rdi, rbp
	call	is_rasterization_disabled@PLT
	test	rax, rax
	je	.L4
	lea	rdx, 4[rbp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	shader_glsl_generate_stream_output_setup@PLT
.L5:
	lea	rsi, .LC6[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	shader_addline@PLT
	mov	rcx, r13
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	xor	r13d, r13d
	call	shader_generate_code@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	lea	rsi, .LC7[rip]
	mov	rdi, rbx
	call	shader_addline@PLT
	mov	edi, DWORD PTR GL_GEOMETRY_SHADER[rip]
	call	glCreateShader@PLT
	mov	edi, eax
	call	GL_EXTCALL@PLT
	lea	rdi, .LC8[rip]
	mov	esi, eax
	mov	r13d, eax
	call	TRACE@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r13d
	mov	rdi, r12
	call	shader_glsl_compile@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[r14]
	mov	r9d, DWORD PTR [r14]
	mov	rcx, r12
	mov	rsi, rbp
	mov	r8d, DWORD PTR TRUE[rip]
	mov	rdi, rbx
	call	shader_glsl_generate_sm4_output_setup@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC5[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	shader_addline@PLT
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	shader_glsl_generate_geometry_shader, .-shader_glsl_generate_geometry_shader
	.comm	TRUE,4,4
	.comm	GL_GEOMETRY_SHADER,4,4
	.comm	ARB_CLIP_CONTROL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_glsl_shader.c_shader_glsl_generate_geometry_shader.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"layout(%s\000"
	.align	2
.LC1:
	.ascii	", invocations = %u\000"
	.align	2
.LC2:
	.ascii	") in;\012\000"
	.align	2
.LC3:
	.ascii	"layout(%s, max_vertices = %u) out;\012\000"
	.align	2
.LC4:
	.ascii	"in shader_in_out { vec4 reg[%u]; } shader_in[];\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"uniform vec4 pos_fixup;\012\000"
	.align	2
.LC6:
	.ascii	"void main()\012{\012\000"
	.align	2
.LC7:
	.ascii	"}\012\000"
	.align	2
.LC8:
	.ascii	"Compiling shader object %u.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shader_glsl_generate_geometry_shader, %function
shader_glsl_generate_geometry_shader:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r6, r0
	ldr	r7, [r0]
	mov	r8, r3
	ldr	r3, .L13
	sub	sp, sp, #16
	add	r2, r1, #4
	mov	r0, r4
	mov	r1, r7
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	add	r9, r5, #24
	str	r2, [sp, #8]
	add	r10, sp, #8
	bl	shader_glsl_add_version_declaration
	mov	r1, r7
	mov	r0, r4
	bl	shader_glsl_enable_extensions
	mov	r3, r9
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	str	r10, [sp]
	bl	shader_generate_glsl_declarations
	ldr	r0, [r5, #16]
	bl	glsl_primitive_type_from_d3d
	ldr	r1, .L13+4
	mov	r2, r0
	mov	r0, r4
	bl	shader_addline
	ldr	r2, [r5]
	cmp	r2, #1
	ble	.L2
	mov	r0, r4
	ldr	r1, .L13+8
	bl	shader_addline
.L2:
	ldr	r1, .L13+12
	mov	r0, r4
	bl	shader_addline
	ldr	r0, [r5, #12]
	bl	glsl_primitive_type_from_d3d
	ldr	r3, [r5, #8]
	mov	r2, r0
	ldr	r1, .L13+16
	mov	r0, r4
	bl	shader_addline
	ldr	r3, [r5, #20]
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, .L13+20
	bl	shader_addline
	ldr	r2, .L13+24
	ldr	r3, [r7]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L11
.L3:
	mov	r0, r5
	bl	is_rasterization_disabled
	cmp	r0, #0
	beq	.L4
	mov	r1, r5
	mov	r0, r4
	add	r2, r5, #4
	bl	shader_glsl_generate_stream_output_setup
.L5:
	mov	r6, #0
	ldr	r1, .L13+28
	mov	r0, r4
	bl	shader_addline
	mov	r3, r10
	mov	r2, r9
	mov	r1, r4
	mov	r0, r5
	str	r6, [sp, #4]
	str	r6, [sp]
	bl	shader_generate_code
	bl	FAILED
	cmp	r0, r6
	bne	.L1
	ldr	r1, .L13+32
	mov	r0, r4
	bl	shader_addline
	ldr	r3, .L13+36
	ldr	r0, [r3]
	bl	glCreateShader
	bl	GL_EXTCALL
	mov	r6, r0
	ldr	r0, .L13+40
	mov	r1, r6
	bl	TRACE
	mov	r0, r7
	mov	r1, r6
	ldr	r2, [r4]
	bl	shader_glsl_compile
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L13+44
	ldr	r2, [r8]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r5
	mov	r3, r7
	mov	r0, r4
	ldr	r2, [r8, #4]
	bl	shader_glsl_generate_sm4_output_setup
	b	.L5
.L11:
	mov	r0, r4
	ldr	r1, .L13+48
	bl	shader_addline
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	ARB_CLIP_CONTROL
	.word	.LC6
	.word	.LC7
	.word	GL_GEOMETRY_SHADER
	.word	.LC8
	.word	TRUE
	.word	.LC5
	.size	shader_glsl_generate_geometry_shader, .-shader_glsl_generate_geometry_shader
	.comm	TRUE,4,4
	.comm	GL_GEOMETRY_SHADER,4,4
	.comm	ARB_CLIP_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
