	.file	"extr_pdf-op-filter.c_walk_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	walk_string, @function
walk_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rcx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	r14, r14
	je	.L1
	movsx	rax, DWORD PTR 8[rcx]
	mov	r15, rcx
	cmp	eax, -1
	je	.L1
	mov	ebx, esi
	mov	r12d, edx
	lea	r13, 4[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	ebx, 32
	je	.L1
	cmp	edx, 32
	jne	.L19
	test	r12d, r12d
	jne	.L7
.L9:
	mov	r14, QWORD PTR [r15]
	movsx	rax, DWORD PTR 8[r15]
.L5:
	add	r14, rax
	mov	rdi, r13
	mov	rsi, r14
	call	fz_chartorune@PLT
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, ebx
	jne	.L6
	add	DWORD PTR 8[r15], eax
	test	r12d, r12d
	je	.L1
.L7:
	cdqe
	lea	rbp, [r14+rax]
	mov	rdi, rbp
	call	strlen@PLT
	mov	rsi, rbp
	mov	rdi, r14
	lea	rdx, 1[rax]
	call	memmove@PLT
	mov	DWORD PTR 12[r15], 1
	cmp	DWORD PTR 4[rsp], ebx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L19:
	.cfi_restore_state
	mov	DWORD PTR 8[r15], -1
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	walk_string, .-walk_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_pdf-op-filter.c_walk_string.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walk_string, %function
walk_string:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r3]
	mov	r9, r3
	ldr	r3, .L21
	sub	sp, sp, #12
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L1
	ldr	r3, [r9, #4]
	cmn	r3, #1
	beq	.L1
	mov	r6, r1
	mov	r7, r2
	mov	r8, #1
	b	.L5
.L6:
	cmp	r6, #32
	beq	.L1
	cmp	r3, #32
	bne	.L19
	cmp	r7, #0
	bne	.L7
.L9:
	ldr	r4, [r9]
	ldr	r3, [r9, #4]
.L5:
	add	r4, r4, r3
	mov	r1, r4
	mov	r0, sp
	bl	fz_chartorune
	ldr	r3, [sp]
	cmp	r3, r6
	bne	.L6
	ldr	r3, [r9, #4]
	cmp	r7, #0
	add	r3, r3, r0
	str	r3, [r9, #4]
	beq	.L1
.L7:
	add	r5, r4, r0
	mov	r0, r5
	bl	strlen
	mov	r1, r5
	add	r2, r0, #1
	mov	r0, r4
	bl	memmove
	ldr	r3, [sp]
	str	r8, [r9, #8]
	cmp	r3, r6
	bne	.L9
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	mvn	r3, #0
	str	r3, [r9, #4]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	walk_string, .-walk_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
