	.file	"extr_utf8.h_utf8rchr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	utf8rchr
	.type	utf8rchr, @function
utf8rchr:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	r9, QWORD PTR utf8_null[rip]
	movzx	ecx, BYTE PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 3[rsp], 0
	mov	BYTE PTR 7[rsp], 0
	test	esi, esi
	je	.L38
	mov	r10d, esi
	test	esi, -128
	jne	.L39
	.p2align 4,,10
	.p2align 3
.L12:
	test	cl, cl
	je	.L1
.L41:
	lea	rax, 1[rdi]
	lea	rdx, 4[rsp]
	cmp	cl, r10b
	jne	.L40
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	esi, BYTE PTR [rax]
	movzx	ecx, BYTE PTR [rdx]
	mov	r8, rax
	add	rdx, 1
	add	rax, 1
	cmp	sil, cl
	je	.L9
	test	cl, cl
	je	.L10
	test	sil, sil
	jne	.L18
	mov	ecx, esi
	mov	rdi, r8
	test	cl, cl
	jne	.L41
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	mov	rax, r9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	test	r10b, r10b
	jne	.L13
	mov	r8, rdi
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r9, rdi
	movzx	ecx, BYTE PTR [r8]
	mov	rdi, r8
	jmp	.L12
.L18:
	mov	rdi, r8
	.p2align 4,,10
	.p2align 3
.L13:
	movzx	ecx, BYTE PTR 1[rdi]
	add	rdi, 1
	mov	eax, ecx
	and	eax, 192
	cmp	eax, 128
	je	.L13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L39:
	mov	eax, esi
	mov	r10d, esi
	and	eax, 63
	sar	r10d, 6
	or	eax, -128
	test	esi, -2048
	je	.L43
	and	r10d, 63
	mov	r8d, esi
	mov	edx, r10d
	sar	r8d, 12
	or	edx, -128
	test	esi, -65536
	jne	.L8
	mov	r10d, r8d
	mov	BYTE PTR 4[rsp], dl
	mov	BYTE PTR 5[rsp], al
	or	r10d, -32
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	mov	r9, rdi
	test	cl, cl
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	add	r9, 1
	cmp	BYTE PTR [r9], 0
	jne	.L4
	jmp	.L1
.L43:
	mov	BYTE PTR 4[rsp], al
	or	r10d, -64
	jmp	.L12
.L8:
	sar	esi, 18
	and	r8d, 63
	mov	BYTE PTR 5[rsp], dl
	mov	r10d, esi
	or	r8d, -128
	mov	BYTE PTR 6[rsp], al
	mov	BYTE PTR 4[rsp], r8b
	or	r10d, -16
	jmp	.L12
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	utf8rchr, .-utf8rchr
	.comm	utf8_null,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_utf8.h_utf8rchr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	utf8rchr
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8rchr, %function
utf8rchr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	lr, r0
	ldr	r3, .L35
	ldr	ip, .L35+4
	subs	r2, r1, #0
	ldr	r1, .L35+8
	sub	sp, sp, #16
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	ldm	r3, {r0, r1}
	ldrb	r3, [lr]	@ zero_extendqisi2
	str	r0, [sp, #4]
	strb	r1, [sp, #8]
	ldr	r0, [ip]
	beq	.L30
	bics	r1, r2, #127
	andeq	r5, r2, #255
	bne	.L31
.L11:
	cmp	r3, #0
	beq	.L1
.L32:
	cmp	r3, r5
	addeq	r2, lr, #1
	addeq	ip, sp, #5
	bne	.L13
.L10:
	mov	r4, r2
	ldrb	r1, [ip], #1	@ zero_extendqisi2
	ldrb	r3, [r2], #1	@ zero_extendqisi2
	cmp	r3, r1
	beq	.L10
	cmp	r1, #0
	moveq	r0, lr
	moveq	lr, r4
	beq	.L11
	cmp	r3, #0
	bne	.L18
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	lr, r4
	cmp	r3, #0
	bne	.L32
.L1:
	ldr	r3, .L35+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	mov	lr, r4
.L13:
	ldrb	r3, [lr, #1]!	@ zero_extendqisi2
	and	r2, r3, #192
	cmp	r2, #128
	bne	.L11
	ldrb	r3, [lr, #1]!	@ zero_extendqisi2
	and	r2, r3, #192
	cmp	r2, #128
	beq	.L13
	b	.L11
.L31:
	bic	r1, r2, #2032
	bic	r1, r1, #15
	cmp	r1, #0
	and	ip, r2, #63
	mvn	r6, #127
	orr	ip, ip, #128
	asr	r1, r2, #6
	beq	.L34
	lsr	r4, r2, #16
	lsl	r4, r4, #16
	and	r1, r1, #63
	cmp	r4, #0
	orr	r1, r1, #128
	asr	r4, r2, #12
	bne	.L9
	mvn	r4, r4, lsl #27
	mvn	r4, r4, lsr #27
	strb	r1, [sp, #5]
	and	r5, r4, #255
	strb	ip, [sp, #6]
	b	.L11
.L30:
	cmp	r3, #0
	mov	r0, lr
	beq	.L1
.L4:
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	b	.L1
.L34:
	mvn	r1, r1, lsl #26
	mvn	r1, r1, lsr #26
	strb	ip, [sp, #5]
	and	r5, r1, #255
	b	.L11
.L9:
	mvn	r5, #15
	and	r4, r4, #63
	orr	r4, r6, r4
	orr	r5, r5, r2, asr #18
	strb	r4, [sp, #5]
	strb	r1, [sp, #6]
	strb	ip, [sp, #7]
	and	r5, r5, #255
	b	.L11
.L33:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LANCHOR0
	.word	utf8_null
	.word	.LC1
	.size	utf8rchr, .-utf8rchr
	.comm	utf8_null,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\000\000\000\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
