	.file	"extr_gl-shaderparser.c_gl_write_function_contents.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"}"
.LC1:
	.string	")"
	.text
	.p2align 4
	.type	gl_write_function_contents, @function
gl_write_function_contents:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR CFTOKEN_NAME[rip]
	mov	QWORD PTR [rsp], rsi
	cmp	QWORD PTR [rsi], rax
	je	.L24
.L2:
	add	rsi, 8
	mov	rdi, rbp
	call	dstr_cat_strref@PLT
.L4:
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR CFTOKEN_NONE[rip], rax
	je	.L6
	mov	r13, rsp
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	rax, QWORD PTR CFTOKEN_OTHER[rip]
	jne	.L13
	mov	rax, QWORD PTR 8[rsi]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 123
	je	.L25
	cmp	al, 40
	je	.L26
.L13:
	add	rsi, 8
	mov	rdi, rbp
	call	dstr_cat_strref@PLT
.L11:
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR CFTOKEN_NONE[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L6
.L16:
	lea	rsi, 16[rdi]
	mov	QWORD PTR [rsp], rsi
	test	rbx, rbx
	je	.L7
	add	rdi, 24
	mov	rsi, rbx
	call	strref_cmp@PLT
	test	rax, rax
	je	.L27
	mov	rsi, QWORD PTR [rsp]
.L7:
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR CFTOKEN_NAME[rip]
	jne	.L9
	mov	rdi, rbp
	call	gl_write_type_token@PLT
	test	eax, eax
	jne	.L11
	mov	rsi, r13
	mov	rdi, rbp
	call	gl_write_intrinsic@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbp
	lea	rsi, 8[rax]
	call	dstr_cat_strref@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR CFTOKEN_NONE[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR [r12], rdi
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rsi, r13
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	gl_write_function_contents
	mov	rsi, QWORD PTR [rsp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	call	gl_write_type_token@PLT
	test	eax, eax
	jne	.L4
	mov	rsi, rsp
	mov	rdi, rbp
	call	gl_write_intrinsic@PLT
	test	eax, eax
	jne	.L4
	mov	rsi, QWORD PTR [rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, r13
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	gl_write_function_contents
	mov	rsi, QWORD PTR [rsp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR [rsp]
	jmp	.L6
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gl_write_function_contents, .-gl_write_function_contents
	.comm	CFTOKEN_OTHER,8,8
	.comm	CFTOKEN_NONE,8,8
	.comm	CFTOKEN_NAME,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_gl-shaderparser.c_gl_write_function_contents.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"}\000"
	.align	2
.LC1:
	.ascii	")\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_write_function_contents, %function
gl_write_function_contents:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	ldr	r6, .L29
	ldr	r1, [r1]
	ldr	r3, [r6]
	ldr	ip, [r1]
	sub	sp, sp, #12
	cmp	ip, r3
	ldr	r3, .L29+4
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	str	r1, [sp]
	beq	.L24
.L2:
	mov	r0, r5
	add	r1, r1, #4
	bl	dstr_cat_strref
.L4:
	ldr	r0, [sp]
	ldr	r7, .L29+8
	ldr	r3, [r0]
	ldr	r2, [r7]
	cmp	r2, r3
	beq	.L6
	ldr	r8, .L29+12
	ldr	fp, .L29+16
	ldr	r10, .L29+20
	b	.L16
.L9:
	ldr	r2, [r8]
	cmp	r3, r2
	bne	.L13
	ldr	r3, [r1, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L25
	cmp	r3, #40
	beq	.L26
.L13:
	mov	r0, r5
	add	r1, r1, #4
	bl	dstr_cat_strref
.L11:
	ldr	r0, [sp]
	ldr	r3, [r7]
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L6
.L16:
	add	r1, r0, #8
	cmp	r4, #0
	str	r1, [sp]
	beq	.L7
	mov	r1, r4
	add	r0, r0, #12
	bl	strref_cmp
	cmp	r0, #0
	beq	.L27
	ldr	r1, [sp]
.L7:
	ldr	r3, [r1]
	ldr	r2, [r6]
	cmp	r3, r2
	bne	.L9
	mov	r0, r5
	bl	gl_write_type_token
	cmp	r0, #0
	bne	.L11
	mov	r1, sp
	mov	r0, r5
	bl	gl_write_intrinsic
	cmp	r0, #0
	bne	.L11
	ldr	r1, [sp]
	mov	r0, r5
	add	r1, r1, #4
	bl	dstr_cat_strref
	b	.L11
.L27:
	ldr	r0, [sp]
.L6:
	ldr	r3, .L29+4
	str	r0, [r9]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r1, sp
	mov	r2, r10
	mov	r0, r5
	bl	gl_write_function_contents
	ldr	r1, [sp]
	b	.L13
.L24:
	bl	gl_write_type_token
	cmp	r0, #0
	bne	.L4
	mov	r1, sp
	mov	r0, r5
	bl	gl_write_intrinsic
	cmp	r0, #0
	bne	.L4
	ldr	r1, [sp]
	b	.L2
.L26:
	mov	r1, sp
	mov	r2, fp
	mov	r0, r5
	bl	gl_write_function_contents
	ldr	r1, [sp]
	b	.L13
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	CFTOKEN_NAME
	.word	.LC2
	.word	CFTOKEN_NONE
	.word	CFTOKEN_OTHER
	.word	.LC1
	.word	.LC0
	.size	gl_write_function_contents, .-gl_write_function_contents
	.comm	CFTOKEN_OTHER,4,4
	.comm	CFTOKEN_NONE,4,4
	.comm	CFTOKEN_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
