	.file	"extr_lstrlib.c_lmemfind.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lmemfind, @function
lmemfind:
.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
	mov	r14, rdi
	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	QWORD PTR 8[rsp], rdx
	test	rcx, rcx
	je	.L1
	mov	rbx, rsi
	cmp	rcx, rsi
	ja	.L5
	mov	rax, QWORD PTR 8[rsp]
	lea	r12, -1[rcx]
	mov	rbp, rdi
	lea	r15, 1[rax]
	sub	rbx, r12
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	lea	r13, 1[rax]
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r13
	call	memcmp@PLT
	test	rax, rax
	je	.L1
	mov	rax, r13
	sub	rax, rbp
	sub	rbx, rax
	je	.L5
	mov	rbp, r13
.L4:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, rbx
	mov	rdi, rbp
	movsx	esi, BYTE PTR [rax]
	call	memchr@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L6
.L5:
	xor	r14d, r14d
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
	.cfi_endproc
.LFE0:
	.size	lmemfind, .-lmemfind
	.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_lstrlib.c_lmemfind.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lmemfind, %function
lmemfind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	moveq	r4, r0
	beq	.L1
	cmp	r3, r1
	bhi	.L5
	sub	r7, r3, #1
	subs	r6, r1, r7
	beq	.L5
	mov	r8, r2
	add	r9, r2, #1
	b	.L4
.L6:
	mov	r2, r7
	mov	r1, r9
	mov	r0, r10
	bl	memcmp
	cmp	r0, #0
	sub	r5, r10, r5
	beq	.L1
	subs	r6, r6, r5
	beq	.L5
	mov	r5, r10
.L4:
	mov	r2, r6
	mov	r0, r5
	ldrb	r1, [r8]	@ zero_extendqisi2
	bl	memchr
	cmp	r0, #0
	mov	r4, r0
	add	r10, r0, #1
	bne	.L6
.L5:
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	lmemfind, .-lmemfind
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
