	.file	"149809.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" "
.LC1:
	.string	"-"
.LC2:
	.string	"+"
.LC3:
	.string	"DUP"
.LC4:
	.string	"tmp =%d, pstack=%d\n"
.LC5:
	.string	"POP"
.LC6:
	.string	"Stack Values: "
.LC7:
	.string	"%d "
	.text
	.globl	solution
	.type	solution, @function
solution:
.LFB6:
	.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, 1024
	mov	QWORD PTR -5112[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5096[rbp], 0
	lea	rax, -5008[rbp]
	mov	edx, 5000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -5112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -5112[rbp]
	lea	rax, -5008[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -5008[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -5064[rbp], rax
	jmp	.L2
.L8:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -5064[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
	je	.L3
	mov	rax, QWORD PTR -5064[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -5068[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	cdqe
	mov	edx, DWORD PTR -5068[rbp]
	mov	DWORD PTR -5056[rbp+rax*4], edx
	add	DWORD PTR -5096[rbp], 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -5064[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	DWORD PTR -5076[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 2
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	DWORD PTR -5072[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -5076[rbp]
	sub	eax, DWORD PTR -5072[rbp]
	mov	edx, eax
	movsx	rax, ecx
	mov	DWORD PTR -5056[rbp+rax*4], edx
	sub	DWORD PTR -5096[rbp], 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -5064[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	DWORD PTR -5084[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 2
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	DWORD PTR -5080[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 1
	mov	ecx, DWORD PTR -5084[rbp]
	mov	edx, DWORD PTR -5080[rbp]
	add	edx, ecx
	cdqe
	mov	DWORD PTR -5056[rbp+rax*4], edx
	sub	DWORD PTR -5096[rbp], 1
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -5064[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -5096[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	DWORD PTR -5088[rbp], eax
	mov	eax, DWORD PTR -5096[rbp]
	cdqe
	mov	edx, DWORD PTR -5088[rbp]
	mov	DWORD PTR -5056[rbp+rax*4], edx
	mov	edx, DWORD PTR -5096[rbp]
	mov	eax, DWORD PTR -5088[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -5064[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	cmp	DWORD PTR -5096[rbp], 0
	je	.L4
	sub	DWORD PTR -5096[rbp], 1
.L4:
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -5064[rbp], rax
.L2:
	cmp	QWORD PTR -5064[rbp], 0
	jne	.L8
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -5092[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -5092[rbp]
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -5092[rbp], 1
.L9:
	cmp	DWORD PTR -5092[rbp], 9
	jle	.L10
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -5096[rbp]
	cdqe
	mov	eax, DWORD PTR -5056[rbp+rax*4]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	solution, .-solution
	.section	.rodata
.LC8:
	.string	"1 2 3 +"
.LC9:
	.string	"Solution = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	solution
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"149809.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"-\000"
	.align	2
.LC2:
	.ascii	"+\000"
	.align	2
.LC3:
	.ascii	"DUP\000"
	.align	2
.LC4:
	.ascii	"tmp =%d, pstack=%d\012\000"
	.align	2
.LC5:
	.ascii	"POP\000"
	.align	2
.LC6:
	.ascii	"Stack Values: \000"
	.align	2
.LC7:
	.ascii	"%d \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	solution, %function
solution:
	@ args = 0, pretend = 0, frame = 5088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #5056
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-988]
	ldr	r3, .L13
	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, #-980]
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, .L13+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-988]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, [r1, #-988]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L13+8
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-984]
	b	.L2
.L8:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-984]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-984]
	bl	atoi
	str	r0, [r4, #-952]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-952]
	str	r2, [r3, #-948]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	add	r3, r3, #1
	str	r3, [r2, #-980]
	b	.L4
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L13+12
	ldr	r0, [r3, #-984]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-948]
	str	r3, [r2, #-960]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-948]
	str	r3, [r2, #-956]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r1, #-960]
	ldr	r2, [r2, #-956]
	sub	r2, r1, r2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-948]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	str	r3, [r2, #-980]
	b	.L4
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L13+16
	ldr	r0, [r3, #-984]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-948]
	str	r3, [r2, #-968]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-948]
	str	r3, [r2, #-964]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r1, #-968]
	ldr	r2, [r2, #-964]
	add	r2, r1, r2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-948]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	str	r3, [r2, #-980]
	b	.L4
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L13+20
	ldr	r0, [r3, #-984]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-948]
	str	r3, [r2, #-972]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-972]
	str	r2, [r3, #-948]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-980]
	ldr	r1, [r3, #-972]
	ldr	r0, .L13+24
	bl	printf
	b	.L4
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L13+28
	ldr	r0, [r3, #-984]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	sub	r3, r3, #1
	str	r3, [r2, #-980]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L13+8
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-984]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-984]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-976]
	b	.L9
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-976]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-948]
	mov	r1, r3
	ldr	r0, .L13+36
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-976]
	add	r3, r3, #1
	str	r3, [r2, #-976]
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-976]
	cmp	r3, #9
	ble	.L10
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-980]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-948]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	5000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	solution, .-solution
	.section	.rodata
	.align	2
.LC9:
	.ascii	"1 2 3 +\000"
	.align	2
.LC10:
	.ascii	"Solution = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L17
	bl	solution
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
