	.file	"extr_json_compilation_db.c_escape_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	escape_string
	.type	escape_string, @function
escape_string:
.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
	call	strlen@PLT
	mov	rbp, rax
	lea	rdi, 1[0+rax*4]
	call	malloc@PLT
	test	rbp, rbp
	je	.L6
	mov	rdi, rbx
	lea	r10, [rbx+rbp]
	xor	edx, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	add	rdi, 1
	mov	BYTE PTR [rsi], cl
	mov	rdx, r8
	cmp	r10, rdi
	je	.L2
.L5:
	movzx	ecx, BYTE PTR [rdi]
	lea	r8, 1[rdx]
	lea	rsi, [rax+rdx]
	lea	r9, [rax+r8]
	cmp	cl, 92
	je	.L8
	cmp	cl, 34
	jne	.L7
.L8:
	mov	BYTE PTR [rsi], 92
	add	rdi, 1
	lea	rsi, 3[rax+rdx]
	mov	BYTE PTR [r9], 92
	mov	BYTE PTR 2[rax+rdx], 92
	add	rdx, 4
	mov	BYTE PTR [rsi], cl
	lea	r9, [rax+rdx]
	cmp	r10, rdi
	jne	.L5
.L2:
	mov	BYTE PTR [r9], 0
	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
.L6:
	.cfi_restore_state
	mov	r9, rax
	mov	BYTE PTR [r9], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	escape_string, .-escape_string
	.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_json_compilation_db.c_escape_string.c"
	.text
	.align	2
	.global	escape_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	escape_string, %function
escape_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	strlen
	mov	r5, r0
	lsl	r0, r0, #2
	add	r0, r0, #1
	bl	malloc
	cmp	r5, #0
	beq	.L5
	mov	r3, #0
	mov	r6, #92
	sub	r1, r4, #1
	add	r4, r1, r5
.L4:
	ldrb	r2, [r1, #1]!	@ zero_extendqisi2
	add	ip, r0, r3
	cmp	r2, #34
	cmpne	r2, #92
	add	lr, r3, #1
	strbeq	r6, [r0, r3]
	add	r7, r3, #3
	addeq	r3, r3, #4
	strbeq	r6, [r0, lr]
	movne	r3, lr
	strbeq	r6, [ip, #2]
	add	r5, r0, lr
	addeq	ip, r0, r7
	addeq	r5, r0, r3
	cmp	r4, r1
	strb	r2, [ip]
	bne	.L4
.L2:
	mov	r3, #0
	strb	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r5, r0
	b	.L2
	.size	escape_string, .-escape_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
