	.file	"extr_regis.c_mb_strchr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mb_strchr, @function
mb_strchr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pg_mblen@PLT
	cmp	BYTE PTR 0[r13], 0
	movsx	r12, eax
	mov	rbp, r12
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	call	pg_mblen@PLT
	cmp	ebp, eax
	je	.L15
	cdqe
	add	r13, rax
	cmp	BYTE PTR 0[r13], 0
	jne	.L6
.L7:
	xor	eax, eax
.L16:
	add	rsp, 8
	.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
.L15:
	.cfi_restore_state
	mov	eax, ebp
	mov	rcx, r12
	sub	rcx, rax
	mov	rax, r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edx, BYTE PTR -1[r13+rax]
	sub	rax, 1
	cmp	dl, BYTE PTR [rbx+rax]
	jne	.L8
.L5:
	cmp	rax, rcx
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L8:
	.cfi_restore_state
	add	r13, r12
	cmp	BYTE PTR 0[r13], 0
	jne	.L6
	xor	eax, eax
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	mb_strchr, .-mb_strchr
	.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_regis.c_mb_strchr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mb_strchr, %function
mb_strchr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	pg_mblen
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r6, r0
	cmp	r3, #0
	beq	.L7
.L6:
	mov	r0, r4
	bl	pg_mblen
	cmp	r6, r0
	addeq	r4, r4, r6
	moveq	r2, r4
	addeq	r3, r5, r6
	beq	.L5
	ldrb	r3, [r4, r0]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldrb	r1, [r2, #-1]!	@ zero_extendqisi2
	ldrb	ip, [r3, #-1]!	@ zero_extendqisi2
	cmp	r1, ip
	bne	.L8
.L5:
	cmp	r3, r5
	bne	.L9
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L8:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	b	.L7
	.size	mb_strchr, .-mb_strchr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
