	.file	"extr_utf.c_uiprivUTF8RuneCount.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uiprivUTF8RuneCount
	.type	uiprivUTF8RuneCount, @function
uiprivUTF8RuneCount:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	jne	.L6
	cmp	BYTE PTR [rdi], 0
	lea	rbp, 4[rsp]
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	xor	esi, esi
	mov	rdx, rbp
	add	r12, 1
	call	uiprivUTF8DecodeRune@PLT
	cmp	BYTE PTR [rax], 0
	mov	rdi, rax
	jne	.L3
.L4:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	mov	rbx, rsi
	xor	r12d, r12d
	lea	rbp, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdx, rbp
	mov	rsi, rbx
	mov	r13, rdi
	add	r12, 1
	call	uiprivUTF8DecodeRune@PLT
	mov	rdi, rax
	sub	rax, r13
	sub	rbx, rax
	jne	.L2
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uiprivUTF8RuneCount, .-uiprivUTF8RuneCount
	.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_utf.c_uiprivUTF8RuneCount.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	uiprivUTF8RuneCount
	.syntax unified
	.arm
	.fpu softvfp
	.type	uiprivUTF8RuneCount, %function
uiprivUTF8RuneCount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L13
	sub	sp, sp, #12
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L6
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	mov	r7, sp
.L3:
	mov	r2, r7
	mov	r1, #0
	bl	uiprivUTF8DecodeRune
	ldrb	r3, [r0]	@ zero_extendqisi2
	add	r4, r4, #1
	cmp	r3, #0
	bne	.L3
.L4:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r6, r4
	mov	r7, sp
	mov	r4, #0
.L2:
	mov	r1, r6
	mov	r2, r7
	mov	r5, r0
	bl	uiprivUTF8DecodeRune
	sub	r3, r0, r5
	subs	r6, r6, r3
	add	r4, r4, #1
	bne	.L2
	b	.L4
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	uiprivUTF8RuneCount, .-uiprivUTF8RuneCount
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
