	.file	"179830148.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/179830148.c"
.LC1:
	.string	"message && *message"
	.text
	.type	isBalanced, @function
isBalanced:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
.L2:
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 7
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L16:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L4
.L12:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jbe	.L5
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -16[rbp]
.L6:
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	setne	al
	mov	BYTE PTR -17[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 41
	jne	.L7
	cmp	BYTE PTR -17[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	jns	.L8
	mov	eax, 0
	jmp	.L15
.L8:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jns	.L10
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L7:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 40
	jne	.L10
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	cmp	BYTE PTR -17[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L10:
	add	QWORD PTR -16[rbp], 1
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L11
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L12
.L11:
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	and	eax, 1
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isBalanced, .-isBalanced
	.section	.rodata
	.align 8
.LC2:
	.string	"argc >= 2 && \"Expecting at least one command-line argument.\""
.LC3:
	.string	"r"
	.align 8
.LC4:
	.string	"inputStream && \"Failed to open input stream.\""
.LC5:
	.string	"YES"
.LC6:
	.string	"NO"
	.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -548[rbp], 1
	jg	.L18
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 39
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L18:
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 256
	mov	edx, 0
	lea	rsi, stdoutBuffer.0[rip]
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L19
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 48
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L19:
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	jmp	.L20
.L23:
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	isBalanced
	test	al, al
	je	.L21
	lea	rax, .LC5[rip]
	jmp	.L22
.L21:
	lea	rax, .LC6[rip]
.L22:
	mov	rdi, rax
	call	puts@PLT
.L20:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L23
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 11
__PRETTY_FUNCTION__.2:
	.string	"isBalanced"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 5
__PRETTY_FUNCTION__.1:
	.string	"main"
	.local	stdoutBuffer.0
	.comm	stdoutBuffer.0,256,32
	.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	"179830148.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/179830148.c\000"
	.align	2
.LC1:
	.ascii	"message && *message\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isBalanced, %function
isBalanced:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
.L2:
	ldr	r3, .L17
	mov	r2, #7
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	__assert_fail
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L4
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bls	.L5
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	b	.L6
.L5:
	ldr	r3, [fp, #-16]
.L6:
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L7
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L8
	mov	r3, #0
	b	.L15
.L8:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L10
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L7:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L10
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L12
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L13
	mov	r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	and	r3, r3, #1
	and	r3, r3, #255
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	__PRETTY_FUNCTION__.4615
	.word	.LC0
	.word	.LC1
	.size	isBalanced, .-isBalanced
	.section	.rodata
	.align	2
.LC2:
	.ascii	"argc >= 2 && \"Expecting at least one command-line "
	.ascii	"argument.\"\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"inputStream && \"Failed to open input stream.\"\000"
	.align	2
.LC5:
	.ascii	"YES\000"
	.align	2
.LC6:
	.ascii	"NO\000"
	.align	2
.LC7:
	.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
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-528]
	cmp	r3, #1
	bgt	.L20
	ldr	r3, .L28+4
	mov	r2, #39
	ldr	r1, .L28+8
	ldr	r0, .L28+12
	bl	__assert_fail
.L20:
	ldr	r3, .L28+16
	ldr	r0, [r3]
	mov	r3, #256
	mov	r2, #0
	ldr	r1, .L28+20
	bl	setvbuf
	ldr	r3, [fp, #-532]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L28+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L28+4
	mov	r2, #48
	ldr	r1, .L28+8
	ldr	r0, .L28+28
	bl	__assert_fail
.L21:
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L22
.L25:
	sub	r3, fp, #520
	mov	r0, r3
	bl	isBalanced
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L28+32
	b	.L24
.L23:
	ldr	r3, .L28+36
.L24:
	mov	r0, r3
	bl	puts
.L22:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC7
	.word	__PRETTY_FUNCTION__.4629
	.word	.LC0
	.word	.LC2
	.word	stdout
	.word	stdoutBuffer.4630
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4615, %object
	.size	__PRETTY_FUNCTION__.4615, 11
__PRETTY_FUNCTION__.4615:
	.ascii	"isBalanced\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4629, %object
	.size	__PRETTY_FUNCTION__.4629, 5
__PRETTY_FUNCTION__.4629:
	.ascii	"main\000"
	.local	stdoutBuffer.4630
	.comm	stdoutBuffer.4630,256,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
