	.file	"137774.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Russian"
.LC1:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	edi, 500
	call	malloc@PLT
	mov	QWORD PTR -312[rbp], rax
	lea	rax, -304[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -324[rbp], eax
	mov	DWORD PTR -348[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -312[rbp]
	mov	rcx, rdx
	mov	edx, 500
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -344[rbp], eax
	mov	DWORD PTR -340[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -340[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -340[rbp], 1
.L2:
	cmp	DWORD PTR -340[rbp], 255
	jle	.L3
	mov	DWORD PTR -336[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -324[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -336[rbp]
	sub	edx, eax
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	movzx	eax, BYTE PTR -304[rbp+rax]
	movsx	eax, al
	sub	edx, 1
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -336[rbp], 1
.L4:
	mov	eax, DWORD PTR -324[rbp]
	sub	eax, 1
	cmp	DWORD PTR -336[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR -324[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -304[rbp+rax]
	mov	BYTE PTR -350[rbp], al
	mov	DWORD PTR -332[rbp], 0
	jmp	.L6
.L11:
	mov	edx, DWORD PTR -332[rbp]
	mov	eax, DWORD PTR -324[rbp]
	add	eax, edx
	cmp	DWORD PTR -344[rbp], eax
	jge	.L7
	mov	eax, DWORD PTR -332[rbp]
	mov	DWORD PTR -320[rbp], eax
	mov	eax, 500
	sub	eax, DWORD PTR -320[rbp]
	mov	DWORD PTR -316[rbp], eax
	mov	DWORD PTR -328[rbp], 0
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -328[rbp]
	mov	eax, DWORD PTR -320[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -328[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -312[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -328[rbp], 1
.L8:
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jl	.L9
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, 500
	sub	eax, DWORD PTR -316[rbp]
	cdqe
	mov	ecx, DWORD PTR -316[rbp]
	movsx	rsi, ecx
	mov	rcx, QWORD PTR -312[rbp]
	lea	rdi, [rsi+rcx]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -316[rbp]
	add	eax, edx
	mov	DWORD PTR -344[rbp], eax
	mov	DWORD PTR -332[rbp], 0
	mov	eax, 500
	sub	eax, DWORD PTR -316[rbp]
	add	DWORD PTR -348[rbp], eax
.L7:
	mov	edx, DWORD PTR -332[rbp]
	mov	eax, DWORD PTR -324[rbp]
	add	eax, edx
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -349[rbp], al
	mov	edx, DWORD PTR -332[rbp]
	mov	eax, DWORD PTR -324[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -348[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -349[rbp]
	cmp	al, BYTE PTR -350[rbp]
	jne	.L10
	mov	edx, DWORD PTR -332[rbp]
	mov	eax, DWORD PTR -348[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -324[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -332[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -312[rbp]
	lea	rdi, [rsi+rax]
	lea	rax, -304[rbp]
	mov	rsi, rax
	call	search
.L10:
	movzx	eax, BYTE PTR -349[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	add	DWORD PTR -332[rbp], eax
.L6:
	cmp	DWORD PTR -344[rbp], 500
	je	.L11
	mov	eax, DWORD PTR -344[rbp]
	sub	eax, DWORD PTR -324[rbp]
	cmp	DWORD PTR -332[rbp], eax
	jle	.L11
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	search
	.type	search, @function
search:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	DWORD PTR -24[rbp], ecx
	jmp	.L15
.L17:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -20[rbp], 1
.L15:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L18
	cmp	DWORD PTR -20[rbp], 0
	jg	.L17
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	search, .-search
	.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	"137774.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Russian\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L14+4
	mov	r0, #6
	bl	setlocale
	mov	r0, #500
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-300]
	sub	r3, fp, #284
	mov	r0, r3
	bl	gets
	sub	r3, fp, #284
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-324]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r2, #500
	mov	r1, #1
	ldr	r0, [fp, #-300]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L2
.L3:
	ldr	r3, [fp, #-296]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-316]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L2:
	ldr	r3, [fp, #-316]
	cmp	r3, #255
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L4
.L5:
	ldr	r3, [fp, #-296]
	and	r2, r3, #255
	ldr	r3, [fp, #-312]
	and	r3, r3, #255
	sub	r3, r2, r3
	and	r3, r3, #255
	sub	r1, fp, #284
	ldr	r2, [fp, #-312]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r2
	sub	r3, r3, #1
	and	r2, r3, #255
	sub	r3, fp, #4
	add	r3, r3, r1
	strb	r2, [r3, #-260]
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L4:
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	ldr	r2, [fp, #-312]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-280]
	strb	r3, [fp, #-326]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L6
.L11:
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [fp, #-320]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-308]
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	rsb	r3, r3, #500
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L8
.L9:
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-300]
	add	r2, r3, r2
	ldr	r3, [fp, #-304]
	ldr	r1, [fp, #-300]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L8:
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-300]
	add	r0, r2, r3
	ldr	r3, [fp, #-288]
	rsb	r3, r3, #500
	mov	r2, r3
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r1, #1
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-288]
	add	r3, r2, r3
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-288]
	rsb	r3, r3, #500
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	str	r3, [fp, #-324]
.L7:
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-300]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-325]
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-296]
	add	r2, r2, r3
	ldr	r3, [fp, #-324]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	ldrb	r2, [fp, #-325]	@ zero_extendqisi2
	ldrb	r3, [fp, #-326]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-308]
	ldr	r2, [fp, #-300]
	add	r0, r2, r3
	ldr	r3, [fp, #-296]
	sub	ip, r3, #1
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-324]
	add	r3, r2, r3
	sub	r1, fp, #284
	mov	r2, ip
	bl	search
.L10:
	ldrb	r3, [fp, #-325]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	str	r3, [fp, #-308]
.L6:
	ldr	r3, [fp, #-320]
	cmp	r3, #500
	beq	.L11
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-296]
	sub	r3, r2, r3
	ldr	r2, [fp, #-308]
	cmp	r2, r3
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	stdin
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	search
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L17
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L21
	bl	printf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L19
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC1
	.size	search, .-search
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
