	.file	"432049.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/432049.c"
.LC1:
	.string	"block != NULL"
.LC2:
	.string	"pat != NULL"
	.text
	.globl	memmem
	.type	memmem, @function
memmem:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	cmp	QWORD PTR -40[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 40
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 41
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jnb	.L6
	mov	eax, 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L8
	mov	rdx, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L5
.L8:
	add	QWORD PTR -24[rbp], 1
.L7:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L9
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	memmem, .-memmem
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 7
__PRETTY_FUNCTION__.0:
	.string	"memmem"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"432049.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/432049.c\000"
	.align	2
.LC1:
	.ascii	"block != NULL\000"
	.align	2
.LC2:
	.ascii	"pat != NULL\000"
	.text
	.align	2
	.global	memmem
	.syntax unified
	.arm
	.fpu softvfp
	.type	memmem, %function
memmem:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L10
	mov	r2, #40
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L10
	mov	r2, #41
	ldr	r1, .L10+4
	ldr	r0, .L10+12
	bl	__assert_fail
.L3:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-24]
	b	.L5
.L4:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bcs	.L6
	mov	r3, #0
	b	.L5
.L6:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L7
.L9:
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L8
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L9
	mov	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	__PRETTY_FUNCTION__.4398
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	memmem, .-memmem
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4398, %object
	.size	__PRETTY_FUNCTION__.4398, 7
__PRETTY_FUNCTION__.4398:
	.ascii	"memmem\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
