	.file	"258071.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.type	top, @function
top:
.LFB0:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	top, .-top
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isEmpty, .-isEmpty
	.globl	push
	.type	push, @function
push:
.LFB2:
	.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 -8[rbp], rdi
	mov	eax, esi
	mov	DWORD PTR -16[rbp], edx
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	push, .-push
	.globl	isOpening
	.type	isOpening, @function
isOpening:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 40
	je	.L7
	cmp	BYTE PTR -4[rbp], 91
	je	.L7
	cmp	BYTE PTR -4[rbp], 123
	jne	.L8
.L7:
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	isOpening, .-isOpening
	.globl	isSameType
	.type	isSameType, @function
isSameType:
.LFB4:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	DWORD PTR -16[rbp], edx
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 41
	jne	.L12
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	top
	cmp	al, 40
	jne	.L12
	mov	eax, 1
	jmp	.L13
.L12:
	cmp	BYTE PTR -12[rbp], 93
	jne	.L14
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	top
	cmp	al, 91
	jne	.L14
	mov	eax, 1
	jmp	.L13
.L14:
	cmp	BYTE PTR -12[rbp], 125
	jne	.L15
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	top
	cmp	al, 123
	jne	.L15
	mov	eax, 1
	jmp	.L13
.L15:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	isSameType, .-isSameType
	.section	.rodata
.LC0:
	.string	"Enter the bracket sequence:"
.LC1:
	.string	"%s"
	.align 8
.LC2:
	.string	"This is not a correct bracket sequences :("
	.align 8
.LC3:
	.string	"This is a correct bracket sequences!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 552
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	QWORD PTR -464[rbp], 0
	mov	QWORD PTR -456[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -416[rbp], 0
	mov	QWORD PTR -408[rbp], 0
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -548[rbp], 0
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	mov	BYTE PTR -553[rbp], al
	movsx	eax, BYTE PTR -553[rbp]
	mov	edi, eax
	call	isOpening
	test	al, al
	je	.L18
	movsx	ecx, BYTE PTR -553[rbp]
	mov	edx, DWORD PTR -552[rbp]
	lea	rax, -544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	push
	add	DWORD PTR -552[rbp], 1
	jmp	.L19
.L18:
	movsx	ecx, BYTE PTR -553[rbp]
	mov	edx, DWORD PTR -552[rbp]
	lea	rax, -544[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isSameType
	test	al, al
	je	.L20
	sub	DWORD PTR -552[rbp], 1
	jmp	.L19
.L20:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L24
.L19:
	add	DWORD PTR -548[rbp], 1
.L17:
	mov	eax, DWORD PTR -548[rbp]
	movsx	rbx, eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L22
	mov	eax, DWORD PTR -552[rbp]
	mov	edi, eax
	call	isEmpty
	test	al, al
	je	.L23
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L24
.L23:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L24:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"258071.c"
	.text
	.align	2
	.global	top
	.syntax unified
	.arm
	.fpu softvfp
	.type	top, %function
top:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	top, .-top
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEmpty, .-isEmpty
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	push, .-push
	.align	2
	.global	isOpening
	.syntax unified
	.arm
	.fpu softvfp
	.type	isOpening, %function
isOpening:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #123
	bne	.L8
.L7:
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isOpening, .-isOpening
	.align	2
	.global	isSameType
	.syntax unified
	.arm
	.fpu softvfp
	.type	isSameType, %function
isSameType:
	@ 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]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L12
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	top
	mov	r3, r0
	cmp	r3, #40
	bne	.L12
	mov	r3, #1
	b	.L13
.L12:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L14
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	top
	mov	r3, r0
	cmp	r3, #91
	bne	.L14
	mov	r3, #1
	b	.L13
.L14:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L15
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	top
	mov	r3, r0
	cmp	r3, #123
	bne	.L15
	mov	r3, #1
	b	.L13
.L15:
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isSameType, .-isSameType
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the bracket sequence:\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"This is not a correct bracket sequences :(\000"
	.align	2
.LC3:
	.ascii	"This is a correct bracket sequences!\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-528]
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L26+4
	bl	printf
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L17
.L22:
	sub	r2, fp, #264
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-529]
	ldrb	r3, [fp, #-529]	@ zero_extendqisi2
	mov	r0, r3
	bl	isOpening
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldrb	r1, [fp, #-529]	@ zero_extendqisi2
	sub	r3, fp, #520
	ldr	r2, [fp, #-528]
	mov	r0, r3
	bl	push
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
	b	.L19
.L18:
	ldrb	r1, [fp, #-529]	@ zero_extendqisi2
	sub	r3, fp, #520
	ldr	r2, [fp, #-528]
	mov	r0, r3
	bl	isSameType
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-528]
	sub	r3, r3, #1
	str	r3, [fp, #-528]
	b	.L19
.L20:
	ldr	r0, .L26+12
	bl	printf
	mov	r3, #0
	b	.L24
.L19:
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L17:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	bhi	.L22
	ldr	r0, [fp, #-528]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L26+16
	bl	printf
	mov	r3, #0
	b	.L24
.L23:
	ldr	r0, .L26+12
	bl	printf
	mov	r3, #0
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
