	.file	"extr_ruleutils.c_quote_identifier.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	quote_identifier
	.type	quote_identifier, @function
quote_identifier:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	eax, BYTE PTR [rdi]
	lea	edx, -97[rax]
	cmp	dl, 25
	setbe	dil
	cmp	al, 95
	sete	dl
	or	edi, edx
	movzx	edi, dil
	test	al, al
	je	.L12
	mov	rdx, rbx
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	lea	ecx, -97[rax]
	cmp	cl, 25
	lea	ecx, -48[rax]
	setbe	sil
	cmp	cl, 9
	setbe	cl
	or	sil, cl
	jne	.L3
	cmp	al, 95
	je	.L3
	xor	edi, edi
	cmp	al, 34
	sete	al
	movzx	eax, al
	add	ebp, eax
.L3:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	test	al, al
	jne	.L4
.L2:
	cmp	QWORD PTR quote_all_identifiers[rip], 0
	jne	.L10
	test	edi, edi
	jne	.L5
.L10:
	mov	rdi, rbx
	movsx	rbp, ebp
	call	strlen@PLT
	lea	rdi, 3[rbp+rax]
	call	palloc@PLT
	mov	BYTE PTR [rax], 34
	movzx	edx, BYTE PTR [rbx]
	lea	rcx, 1[rax]
	test	dl, dl
	jne	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rsi
	add	rbx, 1
	mov	rsi, rcx
	mov	BYTE PTR [rsi], dl
	movzx	edx, BYTE PTR [rbx]
	mov	rcx, rdi
	test	dl, dl
	je	.L8
.L7:
	lea	rsi, 1[rcx]
	cmp	dl, 34
	jne	.L15
	add	rbx, 1
	mov	BYTE PTR [rcx], 34
	add	rcx, 2
	mov	BYTE PTR [rsi], dl
	movzx	edx, BYTE PTR [rbx]
	test	dl, dl
	jne	.L7
.L8:
	mov	edx, 34
	mov	WORD PTR [rcx], dx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, ScanKeywords[rip]
	mov	rdi, rbx
	call	ScanKeywordLookup@PLT
	movsx	rdx, eax
	mov	rax, rbx
	test	edx, edx
	js	.L1
	mov	rcx, QWORD PTR ScanKeywordCategories[rip]
	mov	rdi, QWORD PTR UNRESERVED_KEYWORD[rip]
	cmp	QWORD PTR [rcx+rdx*8], rdi
	jne	.L10
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	ebp, ebp
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	quote_identifier, .-quote_identifier
	.comm	quote_all_identifiers,8,8
	.comm	UNRESERVED_KEYWORD,8,8
	.comm	ScanKeywords,4,4
	.comm	ScanKeywordCategories,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_ruleutils.c_quote_identifier.c"
	.text
	.align	2
	.global	quote_identifier
	.syntax unified
	.arm
	.fpu softvfp
	.type	quote_identifier, %function
quote_identifier:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r4, r0
	sub	r3, r2, #97
	and	ip, r3, #255
	cmp	r2, #95
	cmpne	ip, #25
	movls	ip, #1
	movhi	ip, #0
	cmp	r2, #0
	beq	.L11
	mov	r1, r0
	mov	r5, #0
	b	.L4
.L3:
	ldrb	r2, [r1, #1]!	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L2
.L20:
	sub	r3, r2, #97
.L4:
	and	r3, r3, #255
	sub	r0, r2, #48
	cmp	r0, #9
	cmphi	r3, #25
	movls	r3, #1
	movhi	r3, #0
	cmp	r2, #95
	orreq	r3, r3, #1
	cmp	r3, #0
	bne	.L3
	cmp	r2, #34
	ldrb	r2, [r1, #1]!	@ zero_extendqisi2
	addeq	r5, r5, #1
	cmp	r2, #0
	mov	ip, r3
	bne	.L20
.L2:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	movne	ip, #0
	cmp	ip, #0
	bne	.L5
.L9:
	mov	r0, r4
	bl	strlen
	add	r0, r0, r5
	add	r0, r0, #3
	bl	palloc
	mov	r3, #34
	mov	r2, r0
	strb	r3, [r2], #1
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
.L6:
	cmp	r3, #34
	add	r1, r2, #1
	movne	ip, r1
	movne	r1, r2
	strbeq	r3, [r2], #2
	strb	r3, [r1]
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	movne	r2, ip
	cmp	r3, #0
	bne	.L6
.L7:
	mov	r1, #34
	mov	r3, #0
	strb	r1, [r2]
	strb	r3, [r2, #1]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r4
	ldr	r1, .L21+4
	bl	ScanKeywordLookup
	cmp	r0, #0
	blt	.L13
	ldr	r2, .L21+8
	ldr	r3, .L21+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2, r0, lsl #2]
	cmp	r2, r3
	bne	.L9
.L13:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	mov	r5, r2
	b	.L2
.L22:
	.align	2
.L21:
	.word	quote_all_identifiers
	.word	ScanKeywords
	.word	ScanKeywordCategories
	.word	UNRESERVED_KEYWORD
	.size	quote_identifier, .-quote_identifier
	.comm	quote_all_identifiers,4,4
	.comm	UNRESERVED_KEYWORD,4,4
	.comm	ScanKeywords,4,4
	.comm	ScanKeywordCategories,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
