	.file	"191813.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/191813.c"
.LC1:
	.string	"offset == pos"
	.text
	.type	check, @function
check:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	search@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	jmp	.L3
.L2:
	mov	eax, -1
.L3:
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 18
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check, .-check
	.section	.rodata
.LC2:
	.string	"find a needle in a haystack"
.LC3:
	.string	"needle"
.LC4:
	.string	"find"
.LC5:
	.string	"ind"
.LC6:
	.string	"stac"
.LC7:
	.string	"tack"
.LC8:
	.string	""
.LC9:
	.string	"xyz"
	.align 8
.LC10:
	.string	"find two needles in a haystack"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 7
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 22
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 23
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, -1
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	check
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, -1
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	check
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 6
__PRETTY_FUNCTION__.0:
	.string	"check"
	.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	"191813.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/191813.c\000"
	.align	2
.LC1:
	.ascii	"offset == pos\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	search
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	b	.L3
.L2:
	mvn	r3, #0
.L3:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L6
	mov	r2, #18
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__assert_fail
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	__PRETTY_FUNCTION__.4859
	.word	.LC0
	.word	.LC1
	.size	check, .-check
	.section	.rodata
	.align	2
.LC2:
	.ascii	"find a needle in a haystack\000"
	.align	2
.LC3:
	.ascii	"needle\000"
	.align	2
.LC4:
	.ascii	"find\000"
	.align	2
.LC5:
	.ascii	"ind\000"
	.align	2
.LC6:
	.ascii	"stac\000"
	.align	2
.LC7:
	.ascii	"tack\000"
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"xyz\000"
	.align	2
.LC10:
	.ascii	"find two needles in a haystack\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L10
	str	r3, [fp, #-8]
	mov	r2, #7
	ldr	r1, .L10+4
	ldr	r0, [fp, #-8]
	bl	check
	mov	r2, #0
	ldr	r1, .L10+8
	ldr	r0, [fp, #-8]
	bl	check
	mov	r2, #1
	ldr	r1, .L10+12
	ldr	r0, [fp, #-8]
	bl	check
	mov	r2, #22
	ldr	r1, .L10+16
	ldr	r0, [fp, #-8]
	bl	check
	mov	r2, #23
	ldr	r1, .L10+20
	ldr	r0, [fp, #-8]
	bl	check
	mov	r2, #0
	ldr	r1, .L10+24
	ldr	r0, [fp, #-8]
	bl	check
	mvn	r2, #0
	ldr	r1, .L10+28
	ldr	r0, [fp, #-8]
	bl	check
	mvn	r2, #0
	ldr	r1, .L10+32
	ldr	r0, [fp, #-8]
	bl	check
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4859, %object
	.size	__PRETTY_FUNCTION__.4859, 6
__PRETTY_FUNCTION__.4859:
	.ascii	"check\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
