	.file	"478908.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/478908.c"
	.align 8
.LC1:
	.string	"argc >= 2 && \"Expecting at least one command-line argument.\""
.LC2:
	.string	"r"
	.align 8
.LC3:
	.string	"inputStream && \"Failed to open input stream.\""
.LC4:
	.string	"n > terms[termCount]"
.LC5:
	.string	"isdigit(*c)"
.LC6:
	.string	"targetSum"
.LC7:
	.string	"NULL"
.LC8:
	.string	"%u,%u"
	.text
	.globl	main
	.type	main, @function
main:
.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, 608
	mov	DWORD PTR -596[rbp], edi
	mov	QWORD PTR -608[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -596[rbp], 1
	jg	.L2
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 12
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 512
	mov	edx, 0
	lea	rsi, stdoutBuffer.0[rip]
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR -608[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 21
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L3:
	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
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L4
.L32:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -272[rbp]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L35
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 32
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -580[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	lea	rax, -272[rbp]
	mov	QWORD PTR -560[rbp], rax
	mov	DWORD PTR -576[rbp], 0
	jmp	.L7
.L15:
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 44
	je	.L8
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 59
	jne	.L9
.L8:
	mov	rax, QWORD PTR -568[rbp]
	mov	eax, DWORD PTR -528[rbp+rax*4]
	cmp	DWORD PTR -576[rbp], eax
	ja	.L10
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 40
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L10:
	mov	rax, QWORD PTR -568[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -568[rbp], rdx
	mov	edx, DWORD PTR -576[rbp]
	mov	DWORD PTR -528[rbp+rax*4], edx
	mov	DWORD PTR -576[rbp], 0
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 59
	jne	.L13
	jmp	.L12
.L9:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L14
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 50
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L14:
	mov	edx, DWORD PTR -576[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -576[rbp], eax
.L13:
	add	QWORD PTR -560[rbp], 1
.L7:
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
.L12:
	add	QWORD PTR -560[rbp], 1
	jmp	.L16
.L18:
	mov	edx, DWORD PTR -580[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -580[rbp], eax
	add	QWORD PTR -560[rbp], 1
.L16:
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L17
	mov	rax, QWORD PTR -560[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L18
.L17:
	cmp	DWORD PTR -580[rbp], 0
	jne	.L19
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 60
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L19:
	cmp	QWORD PTR -568[rbp], 1
	jbe	.L20
	mov	rax, QWORD PTR -568[rbp]
	sub	rax, 1
	mov	edx, DWORD PTR -528[rbp+rax*4]
	mov	rax, QWORD PTR -568[rbp]
	sub	rax, 2
	mov	eax, DWORD PTR -528[rbp+rax*4]
	add	eax, edx
	cmp	DWORD PTR -580[rbp], eax
	jbe	.L20
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L4
.L20:
	mov	BYTE PTR -581[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	jmp	.L21
.L29:
	mov	rax, QWORD PTR -552[rbp]
	add	rax, 1
	mov	QWORD PTR -544[rbp], rax
	jmp	.L22
.L28:
	mov	rax, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR -528[rbp+rax*4]
	mov	rax, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR -528[rbp+rax*4]
	add	eax, edx
	mov	DWORD PTR -572[rbp], eax
	mov	eax, DWORD PTR -572[rbp]
	cmp	eax, DWORD PTR -580[rbp]
	ja	.L36
	mov	eax, DWORD PTR -572[rbp]
	cmp	eax, DWORD PTR -580[rbp]
	jne	.L25
	cmp	BYTE PTR -581[rbp], 0
	je	.L26
	mov	edi, 59
	call	putchar@PLT
	jmp	.L27
.L26:
	movzx	eax, BYTE PTR -581[rbp]
	xor	eax, 1
	test	al, al
	je	.L27
	mov	BYTE PTR -581[rbp], 1
.L27:
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, DWORD PTR -528[rbp+rax*4]
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -528[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L25:
	add	QWORD PTR -544[rbp], 1
.L22:
	mov	rax, QWORD PTR -544[rbp]
	cmp	rax, QWORD PTR -568[rbp]
	jb	.L28
	jmp	.L24
.L36:
	nop
.L24:
	add	QWORD PTR -552[rbp], 1
.L21:
	mov	rax, QWORD PTR -552[rbp]
	cmp	rax, QWORD PTR -568[rbp]
	jb	.L29
	movzx	eax, BYTE PTR -581[rbp]
	xor	eax, 1
	test	al, al
	je	.L30
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L4
.L30:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L4
.L35:
	nop
.L4:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L32
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 5
__PRETTY_FUNCTION__.1:
	.string	"main"
	.local	stdoutBuffer.0
	.comm	stdoutBuffer.0,512,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	"478908.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/478908.c\000"
	.align	2
.LC1:
	.ascii	"argc >= 2 && \"Expecting at least one command-line "
	.ascii	"argument.\"\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"inputStream && \"Failed to open input stream.\"\000"
	.align	2
.LC4:
	.ascii	"n > terms[termCount]\000"
	.align	2
.LC5:
	.ascii	"isdigit(*c)\000"
	.align	2
.LC6:
	.ascii	"targetSum\000"
	.align	2
.LC7:
	.ascii	"NULL\000"
	.align	2
.LC8:
	.ascii	"%u,%u\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-560]
	str	r1, [fp, #-564]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-560]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L37+4
	mov	r2, #12
	ldr	r1, .L37+8
	ldr	r0, .L37+12
	bl	__assert_fail
.L2:
	ldr	r3, .L37+16
	ldr	r0, [r3]
	mov	r3, #512
	mov	r2, #0
	ldr	r1, .L37+20
	bl	setvbuf
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L37+4
	mov	r2, #21
	ldr	r1, .L37+8
	ldr	r0, .L37+28
	bl	__assert_fail
.L3:
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L4
.L32:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #520
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-552]
	mov	r3, #0
	str	r3, [fp, #-548]
	sub	r3, fp, #264
	str	r3, [fp, #-544]
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L7
.L15:
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	beq	.L8
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L9
.L8:
	ldr	r3, [fp, #-548]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	ldr	r2, [fp, #-540]
	cmp	r2, r3
	bhi	.L10
	ldr	r3, .L37+4
	mov	r2, #40
	ldr	r1, .L37+8
	ldr	r0, .L37+32
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-548]
	add	r2, r3, #1
	str	r2, [fp, #-548]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-540]
	str	r2, [r3, #-516]
	mov	r3, #0
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L13
	b	.L12
.L9:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L37+4
	mov	r2, #50
	ldr	r1, .L37+8
	ldr	r0, .L37+36
	bl	__assert_fail
.L14:
	ldr	r2, [fp, #-540]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-540]
.L13:
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L7:
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
.L12:
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
	b	.L16
.L18:
	ldr	r2, [fp, #-552]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-552]
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L16:
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-544]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L18
.L17:
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L37+4
	mov	r2, #60
	ldr	r1, .L37+8
	ldr	r0, .L37+40
	bl	__assert_fail
.L19:
	ldr	r3, [fp, #-548]
	cmp	r3, #1
	bls	.L20
	ldr	r3, [fp, #-548]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	ldr	r3, [fp, #-548]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-516]
	add	r3, r2, r3
	ldr	r2, [fp, #-552]
	cmp	r2, r3
	bls	.L20
	ldr	r0, .L37+44
	bl	puts
	b	.L4
.L20:
	mov	r3, #0
	strb	r3, [fp, #-553]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L21
.L29:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-532]
	b	.L22
.L28:
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-516]
	add	r3, r2, r3
	str	r3, [fp, #-524]
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-552]
	cmp	r2, r3
	bhi	.L36
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-552]
	cmp	r2, r3
	bne	.L25
	ldrb	r3, [fp, #-553]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L26
	mov	r0, #59
	bl	putchar
	b	.L27
.L26:
	ldrb	r3, [fp, #-553]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L27
	mov	r3, #1
	strb	r3, [fp, #-553]
.L27:
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-516]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	mov	r2, r3
	ldr	r0, .L37+48
	bl	printf
	b	.L24
.L25:
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L22:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-548]
	cmp	r2, r3
	bcc	.L28
	b	.L24
.L36:
	nop
.L24:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L21:
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-548]
	cmp	r2, r3
	bcc	.L29
	ldrb	r3, [fp, #-553]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L37+44
	bl	puts
	b	.L4
.L30:
	mov	r0, #10
	bl	putchar
	b	.L4
.L35:
	nop
.L4:
	sub	r3, fp, #264
	ldr	r2, [fp, #-528]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC9
	.word	__PRETTY_FUNCTION__.4734
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	stdoutBuffer.4735
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4734, %object
	.size	__PRETTY_FUNCTION__.4734, 5
__PRETTY_FUNCTION__.4734:
	.ascii	"main\000"
	.local	stdoutBuffer.4735
	.comm	stdoutBuffer.4735,512,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
