	.file	"849718.c"
	.intel_syntax noprefix
	.text
	.globl	czyNawias
	.type	czyNawias, @function
czyNawias:
.LFB0:
	.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], 40
	je	.L2
	cmp	DWORD PTR -4[rbp], 41
	je	.L2
	cmp	DWORD PTR -4[rbp], 91
	je	.L2
	cmp	DWORD PTR -4[rbp], 93
	je	.L2
	cmp	DWORD PTR -4[rbp], 123
	je	.L2
	cmp	DWORD PTR -4[rbp], 125
	jne	.L3
.L2:
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	czyNawias, .-czyNawias
	.section	.rodata
.LC0:
	.string	"Zle zamknales nawias"
.LC1:
	.string	"Nie zamknales nawiasu"
.LC2:
	.string	"Wszystko OK"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 928
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5016[rbp], 0
	jmp	.L6
.L14:
	mov	eax, DWORD PTR -5012[rbp]
	mov	edi, eax
	call	czyNawias
	cmp	eax, 1
	jne	.L6
	cmp	DWORD PTR -5012[rbp], 40
	je	.L7
	cmp	DWORD PTR -5012[rbp], 91
	je	.L7
	cmp	DWORD PTR -5012[rbp], 123
	jne	.L8
.L7:
	mov	eax, DWORD PTR -5012[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -5016[rbp]
	cdqe
	mov	BYTE PTR -5008[rbp+rax], dl
	add	DWORD PTR -5016[rbp], 1
	jmp	.L6
.L8:
	cmp	DWORD PTR -5012[rbp], 41
	jne	.L9
	mov	BYTE PTR -5017[rbp], 40
	jmp	.L10
.L9:
	cmp	DWORD PTR -5012[rbp], 93
	jne	.L11
	mov	BYTE PTR -5017[rbp], 91
	jmp	.L10
.L11:
	cmp	DWORD PTR -5012[rbp], 125
	jne	.L10
	mov	BYTE PTR -5017[rbp], 123
.L10:
	mov	eax, DWORD PTR -5016[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -5008[rbp+rax]
	cmp	BYTE PTR -5017[rbp], al
	jne	.L12
	sub	DWORD PTR -5016[rbp], 1
	jmp	.L6
.L12:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L16
.L6:
	call	getchar@PLT
	mov	DWORD PTR -5012[rbp], eax
	cmp	DWORD PTR -5012[rbp], -1
	jne	.L14
	cmp	DWORD PTR -5016[rbp], 0
	je	.L15
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L16
.L15:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"849718.c"
	.text
	.align	2
	.global	czyNawias
	.syntax unified
	.arm
	.fpu softvfp
	.type	czyNawias, %function
czyNawias:
	@ 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, #40
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #41
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #91
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #93
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #123
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #125
	bne	.L3
.L2:
	mov	r3, #1
	b	.L4
.L3:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	czyNawias, .-czyNawias
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Zle zamknales nawias\000"
	.align	2
.LC1:
	.ascii	"Nie zamknales nawiasu\000"
	.align	2
.LC2:
	.ascii	"Wszystko OK\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4992
	sub	sp, sp, #28
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-916]
	b	.L6
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-912]
	bl	czyNawias
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	str	r3, [r1, #-916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-917]
	strb	r3, [r1, #-917]
	cmp	r2, #1
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #40
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #91
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #123
	bne	.L8
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	and	r2, r3, #255
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	add	r3, r1, r3
	sub	r3, r3, #908
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	add	r3, r3, #1
	str	r3, [r2, #-916]
	b	.L6
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #41
	bne	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #40
	strb	r2, [r3, #-917]
	b	.L10
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #93
	bne	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #91
	strb	r2, [r3, #-917]
	b	.L10
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #125
	bne	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #123
	strb	r2, [r3, #-917]
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-908]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-917]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	sub	r3, r3, #1
	str	r3, [r2, #-916]
	b	.L6
.L12:
	ldr	r0, .L18+4
	bl	printf
	mov	r3, #1
	b	.L16
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	getchar
	str	r0, [r4, #-912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmn	r3, #1
	bne	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L18+8
	bl	printf
	mov	r3, #0
	b	.L16
.L15:
	ldr	r0, .L18+12
	bl	printf
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
