	.file	"153269002.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	read_string
	.type	read_string, @function
read_string:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L2:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L2
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_string, .-read_string
	.globl	check_substring
	.type	check_substring, @function
check_substring:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L6
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L11:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L8
	mov	DWORD PTR -4[rbp], 1
	jmp	.L14
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L14:
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L11
.L10:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L12
.L6:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L13
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check_substring, .-check_substring
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	read_string
	mov	DWORD PTR -208[rbp], eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	read_string
	mov	DWORD PTR -204[rbp], eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	read_string
	mov	DWORD PTR -200[rbp], eax
	mov	ecx, DWORD PTR -204[rbp]
	mov	edx, DWORD PTR -208[rbp]
	lea	rsi, -128[rbp]
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	check_substring
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jne	.L16
	mov	DWORD PTR -212[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	movzx	eax, BYTE PTR -192[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -212[rbp], 1
.L17:
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jl	.L18
	jmp	.L19
.L16:
	mov	DWORD PTR -212[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	movzx	eax, BYTE PTR -192[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -212[rbp], 1
.L20:
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L21
	mov	DWORD PTR -212[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -212[rbp], 1
.L22:
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L23
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -212[rbp], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	movzx	eax, BYTE PTR -192[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -212[rbp], 1
.L24:
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jl	.L25
.L19:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.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	"153269002.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.text
	.align	2
	.global	read_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_string, %function
read_string:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L4
	bl	__isoc99_scanf
	nop
.L2:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	read_string, .-read_string
	.align	2
	.global	check_substring
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_substring, %function
check_substring:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L16
.L10:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L13
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L8
	ldr	r3, [fp, #-16]
	b	.L14
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_substring, .-check_substring
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #164
	mov	r0, r3
	bl	read_string
	str	r0, [fp, #-180]
	sub	r3, fp, #112
	mov	r0, r3
	bl	read_string
	str	r0, [fp, #-176]
	sub	r3, fp, #60
	mov	r0, r3
	bl	read_string
	str	r0, [fp, #-172]
	sub	r1, fp, #112
	sub	r0, fp, #164
	ldr	r3, [fp, #-176]
	ldr	r2, [fp, #-180]
	bl	check_substring
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L19
.L20:
	sub	r2, fp, #164
	ldr	r3, [fp, #-184]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L19:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L20
	b	.L21
.L18:
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L22
.L23:
	sub	r2, fp, #164
	ldr	r3, [fp, #-184]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L22:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-168]
	cmp	r2, r3
	blt	.L23
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L24
.L25:
	sub	r2, fp, #60
	ldr	r3, [fp, #-184]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L24:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-172]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-184]
	b	.L26
.L27:
	sub	r2, fp, #164
	ldr	r3, [fp, #-184]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L26:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L27
.L21:
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
