	.file	"126515.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Segmentation fault! count=%u\n"
	.text
	.globl	signal_segv_handler
	.type	signal_segv_handler, @function
signal_segv_handler:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR count[rip]
	lea	rax, -64[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	mov	edi, 1
	call	_exit@PLT
	.cfi_endproc
.LFE6:
	.size	signal_segv_handler, .-signal_segv_handler
	.globl	sum_b
	.type	sum_b, @function
sum_b:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	QWORD PTR -16[rbp], 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -16[rbp], 1
.L4:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jbe	.L5
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sum_b, .-sum_b
	.globl	sum_a
	.type	sum_a, @function
sum_a:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L8
	mov	QWORD PTR -8[rbp], 1
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
	add	QWORD PTR -8[rbp], 1
.L9:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jbe	.L10
.L8:
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sum_a, .-sum_a
	.section	.rodata
	.align 8
.LC1:
	.string	"Please specify the sum function to use (a or b) and the target number of integers to sum."
.LC2:
	.string	"a"
	.align 8
.LC3:
	.string	"sum_a = %llu for x=%llu, count=%u \n"
.LC4:
	.string	"b"
	.align 8
.LC5:
	.string	"sum_b = %llu for x=%llu, count=%u \n"
	.align 8
.LC6:
	.string	"error: function must be a or b"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 344
	.cfi_offset 3, -24
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	lea	rax, stack.0[rip]
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -304[rbp], 8192
	lea	rdx, -288[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, signal_segv_handler[rip]
	mov	QWORD PTR -288[rbp], rax
	mov	DWORD PTR -152[rbp], 134217728
	lea	rax, -320[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sigaltstack@PLT
	lea	rax, -288[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 11
	call	sigaction@PLT
	cmp	DWORD PTR -340[rbp], 2
	jg	.L13
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L18
.L13:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	ebx, DWORD PTR count[rip]
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	sum_a
	mov	rsi, rax
	mov	rdx, QWORD PTR -336[rbp]
	lea	rax, -128[rbp]
	mov	r8d, ebx
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	sum_b
	mov	QWORD PTR -328[rbp], rax
	mov	esi, DWORD PTR count[rip]
	mov	rax, QWORD PTR -328[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -336[rbp]
	lea	rax, -128[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L16
.L17:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L18
.L16:
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, 0
.L18:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	stack.0
	.comm	stack.0,8192,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	"126515.c"
	.text
	.global	count
	.bss
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Segmentation fault! count=%u\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_segv_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_segv_handler, %function
signal_segv_handler:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L3+4
	ldr	r2, [r3]
	sub	r3, fp, #60
	ldr	r1, .L3+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #60
	mov	r1, r3
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	_exit
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	count
	.word	.LC0
	.size	signal_segv_handler, .-signal_segv_handler
	.align	2
	.global	sum_b
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_b, %function
sum_b:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-32]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-32]
	stm	r3, {r4-r5}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L6:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L7
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	.align	2
.L9:
	.word	count
	.size	sum_b, .-sum_b
	.align	2
	.global	sum_a
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_a, %function
sum_a:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, fp}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16
	str	r3, [r2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L12
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L13
.L14:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L13:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L14
.L12:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, fp}
	bx	lr
.L17:
	.align	2
.L16:
	.word	count
	.size	sum_a, .-sum_a
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Please specify the sum function to use (a or b) and"
	.ascii	" the target number of integers to sum.\000"
	.align	2
.LC3:
	.ascii	"a\000"
	.align	2
.LC4:
	.ascii	"sum_a = %llu for x=%llu, count=%u \012\000"
	.align	2
.LC5:
	.ascii	"b\000"
	.align	2
.LC6:
	.ascii	"sum_b = %llu for x=%llu, count=%u \012\000"
	.align	2
.LC7:
	.ascii	"error: function must be a or b\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #260
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	ldr	r3, .L26+4
	str	r3, [fp, #-260]
	mov	r3, #8192
	str	r3, [fp, #-252]
	sub	r3, fp, #248
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L26+8
	str	r3, [fp, #-248]
	mov	r3, #134217728
	str	r3, [fp, #-116]
	sub	r3, fp, #260
	mov	r1, #0
	mov	r0, r3
	bl	sigaltstack
	sub	r3, fp, #248
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #248
	mov	r2, #0
	mov	r1, r3
	mov	r0, #11
	bl	sigaction
	ldr	r3, [fp, #-280]
	cmp	r3, #2
	bgt	.L19
	ldr	r0, .L26+12
	bl	puts
	mvn	r3, #0
	b	.L24
.L19:
	ldr	r3, [fp, #-284]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-268]
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r1, fp, #268
	ldmia	r1, {r0-r1}
	bl	sum_a
	ldr	r3, .L26+20
	ldr	r3, [r3]
	sub	ip, fp, #108
	str	r3, [sp, #8]
	sub	r3, fp, #268
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L26+24
	mov	r0, ip
	bl	sprintf
	b	.L22
.L21:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	sub	r1, fp, #268
	ldmia	r1, {r0-r1}
	bl	sum_b
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	ldmia	r3, {r0-r1}
	ldr	r3, .L26+20
	ldr	r3, [r3]
	sub	ip, fp, #108
	str	r3, [sp, #8]
	sub	r3, fp, #268
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L26+32
	mov	r0, ip
	bl	sprintf
	ldr	r0, [fp, #-272]
	bl	free
	b	.L22
.L23:
	ldr	r0, .L26+36
	bl	puts
	mvn	r3, #0
	b	.L24
.L22:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #108
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, #0
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	stack.6272
	.word	signal_segv_handler
	.word	.LC2
	.word	.LC3
	.word	count
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.local	stack.6272
	.comm	stack.6272,8192,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
