	.file	"76902.c"
	.intel_syntax noprefix
	.text
	.globl	isLeftBrackets
	.type	isLeftBrackets, @function
isLeftBrackets:
.LFB0:
	.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 -20[rbp], al
	mov	DWORD PTR -4[rbp], 0
	cmp	BYTE PTR -20[rbp], 123
	je	.L2
	cmp	BYTE PTR -20[rbp], 91
	je	.L2
	cmp	BYTE PTR -20[rbp], 40
	jne	.L3
.L2:
	mov	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isLeftBrackets, .-isLeftBrackets
	.globl	isRightBrackets
	.type	isRightBrackets, @function
isRightBrackets:
.LFB1:
	.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 -20[rbp], al
	mov	DWORD PTR -4[rbp], 0
	cmp	BYTE PTR -20[rbp], 125
	je	.L6
	cmp	BYTE PTR -20[rbp], 93
	je	.L6
	cmp	BYTE PTR -20[rbp], 41
	jne	.L7
.L6:
	mov	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isRightBrackets, .-isRightBrackets
	.globl	isLeftMatchRight
	.type	isLeftMatchRight, @function
isLeftMatchRight:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	mov	DWORD PTR -4[rbp], 0
	cmp	BYTE PTR -20[rbp], 123
	jne	.L10
	cmp	BYTE PTR -24[rbp], 125
	je	.L11
.L10:
	cmp	BYTE PTR -20[rbp], 91
	jne	.L12
	cmp	BYTE PTR -24[rbp], 93
	je	.L11
.L12:
	cmp	BYTE PTR -20[rbp], 40
	jne	.L13
	cmp	BYTE PTR -24[rbp], 41
	jne	.L13
.L11:
	mov	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isLeftMatchRight, .-isLeftMatchRight
	.section	.rodata
.LC0:
	.string	"%c - %c\n"
	.text
	.globl	isBracketsMatch
	.type	isBracketsMatch, @function
isBracketsMatch:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -136[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
.L16:
	mov	eax, 0
	jmp	.L25
.L17:
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -116[rbp], -1
	jmp	.L19
.L23:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isLeftBrackets
	test	eax, eax
	je	.L20
	add	DWORD PTR -116[rbp], 1
	mov	rax, QWORD PTR -136[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isRightBrackets
	test	eax, eax
	je	.L21
	cmp	DWORD PTR -116[rbp], 0
	js	.L22
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	isLeftMatchRight
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -116[rbp], 1
	jmp	.L21
.L22:
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -120[rbp]
	jmp	.L25
.L21:
	add	QWORD PTR -136[rbp], 1
.L19:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
	cmp	DWORD PTR -116[rbp], 0
	jns	.L24
	mov	DWORD PTR -120[rbp], 1
.L24:
	mov	eax, DWORD PTR -120[rbp]
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	isBracketsMatch, .-isBracketsMatch
	.section	.rodata
.LC1:
	.string	"34+13*9+44)-(12/3)"
.LC2:
	.string	"str: %s\n"
.LC3:
	.string	"not match"
.LC4:
	.string	"match"
	.text
	.globl	main
	.type	main, @function
main:
.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
	lea	rax, .LC1[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isBracketsMatch
	test	eax, eax
	jne	.L28
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L29
.L28:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L29:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"76902.c"
	.text
	.align	2
	.global	isLeftBrackets
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeftBrackets, %function
isLeftBrackets:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L3
.L2:
	mov	r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isLeftBrackets, .-isLeftBrackets
	.align	2
	.global	isRightBrackets
	.syntax unified
	.arm
	.fpu softvfp
	.type	isRightBrackets, %function
isRightBrackets:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #125
	beq	.L6
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L6
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L7
.L6:
	mov	r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isRightBrackets, .-isRightBrackets
	.align	2
	.global	isLeftMatchRight
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeftMatchRight, %function
isLeftMatchRight:
	@ 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
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #123
	bne	.L10
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #125
	beq	.L11
.L10:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L12
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L11
.L12:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L13
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L13
.L11:
	mov	r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isLeftMatchRight, .-isLeftMatchRight
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c - %c\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	isBracketsMatch
	.syntax unified
	.arm
	.fpu softvfp
	.type	isBracketsMatch, %function
isBracketsMatch:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
.L16:
	mov	r3, #0
	b	.L25
.L17:
	mov	r3, #0
	str	r3, [fp, #-116]
	mvn	r3, #0
	str	r3, [fp, #-112]
	b	.L19
.L23:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isLeftBrackets
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-120]
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L21
.L20:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isRightBrackets
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	blt	.L22
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	isLeftMatchRight
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L27+4
	bl	printf
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L21
.L22:
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	b	.L25
.L21:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L19:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L24
	mov	r3, #1
	str	r3, [fp, #-116]
.L24:
	ldr	r3, [fp, #-116]
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC1
	.word	.LC0
	.size	isBracketsMatch, .-isBracketsMatch
	.section	.rodata
	.align	2
.LC2:
	.ascii	"34+13*9+44)-(12/3)\000"
	.align	2
.LC3:
	.ascii	"str: %s\012\000"
	.align	2
.LC4:
	.ascii	"not match\000"
	.align	2
.LC5:
	.ascii	"match\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, .L33
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L33+4
	bl	printf
	ldr	r0, [fp, #-8]
	bl	isBracketsMatch
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L33+8
	bl	puts
	b	.L31
.L30:
	ldr	r0, .L33+12
	bl	puts
.L31:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
