	.file	"extr_pdf-appearance.c_measure_simple_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	measure_simple_string, @function
measure_simple_string:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	BYTE PTR [rdx], 0
	je	.L6
	pxor	xmm2, xmm2
	mov	rbp, rdi
	mov	r12, rsi
	mov	rbx, rdx
	movss	DWORD PTR 12[rsp], xmm2
	lea	r13, 20[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbx
	mov	rdi, r13
	call	fz_chartorune@PLT
	mov	edi, DWORD PTR 20[rsp]
	cdqe
	add	rbx, rax
	call	fz_windows_1252_from_unicode@PLT
	mov	DWORD PTR 20[rsp], eax
	mov	edx, eax
	test	eax, eax
	jns	.L3
	mov	edx, DWORD PTR REPLACEMENT[rip]
	mov	DWORD PTR 20[rsp], edx
.L3:
	mov	rsi, r12
	mov	rdi, rbp
	call	fz_encode_character@PLT
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	fz_advance_glyph@PLT
	pxor	xmm0, xmm0
	cmp	BYTE PTR [rbx], 0
	cvtsi2ss	xmm0, rax
	addss	xmm0, DWORD PTR 12[rsp]
	movss	DWORD PTR 12[rsp], xmm0
	jne	.L4
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	movss	xmm0, DWORD PTR 12[rsp]
	add	rsp, 40
	.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
.L6:
	.cfi_restore_state
	pxor	xmm3, xmm3
	movss	DWORD PTR 12[rsp], xmm3
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	measure_simple_string, .-measure_simple_string
	.comm	REPLACEMENT,4,4
	.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-appearance.c_measure_simple_string.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	measure_simple_string, %function
measure_simple_string:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldrb	r3, [r2]	@ zero_extendqisi2
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L6
	mov	r4, r2
	mov	r6, r0
	mov	r7, r1
	mov	r5, #0
	ldr	r8, .L11+4
.L4:
	mov	r1, r4
	mov	r0, sp
	bl	fz_chartorune
	mov	r3, r0
	ldr	r0, [sp]
	add	r4, r4, r3
	bl	fz_windows_1252_from_unicode
	mov	r2, r0
	cmp	r0, #0
	ldrlt	r2, [r8]
	str	r0, [sp]
	mov	r1, r7
	mov	r0, r6
	strlt	r2, [sp]
	bl	fz_encode_character
	mov	r3, #0
	mov	r2, r0
	mov	r1, r7
	mov	r0, r6
	bl	fz_advance_glyph
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fadd
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #0
	bne	.L4
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r5, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	REPLACEMENT
	.size	measure_simple_string, .-measure_simple_string
	.comm	REPLACEMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
