	.file	"286879.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the value for %s: "
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getInput, .-getInput
	.section	.rodata
.LC1:
	.string	"lower"
.LC2:
	.string	"upper"
.LC3:
	.string	"count"
	.align 8
.LC4:
	.string	"Something went wrong...\nValue of i: %d\n"
.LC5:
	.string	"w"
.LC6:
	.string	"error.log"
.LC7:
	.string	"05:39:50"
.LC8:
	.string	"Dec  6 2024"
	.align 8
.LC9:
	.string	"%s -- %s\nValue of i: %d\nValue of lower: %d\nValue of upper: %d\nValue of count: %d\n"
.LC10:
	.string	"%d"
.LC11:
	.string	"%d\n"
	.align 8
.LC12:
	.string	"Finished writing %d random values between %d and %d to %s in %f seconds\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	r11, -1048576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8371756805075006831
	mov	QWORD PTR -1048603[rbp], rax
	mov	WORD PTR -1048595[rbp], 29816
	mov	BYTE PTR -1048593[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -1048640[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -1048632[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -1048624[rbp], rax
	mov	DWORD PTR -1048680[rbp], 0
	jmp	.L5
.L11:
	cmp	DWORD PTR -1048680[rbp], 2
	je	.L6
	cmp	DWORD PTR -1048680[rbp], 2
	jg	.L7
	cmp	DWORD PTR -1048680[rbp], 0
	je	.L8
	cmp	DWORD PTR -1048680[rbp], 1
	je	.L9
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -1048680[rbp]
	cdqe
	mov	rax, QWORD PTR -1048640[rbp+rax*8]
	mov	rdi, rax
	call	getInput
	mov	DWORD PTR -1048692[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -1048680[rbp]
	cdqe
	mov	rax, QWORD PTR -1048640[rbp+rax*8]
	mov	rdi, rax
	call	getInput
	mov	DWORD PTR -1048688[rbp], eax
	jmp	.L10
.L6:
	mov	eax, DWORD PTR -1048680[rbp]
	cdqe
	mov	rax, QWORD PTR -1048640[rbp+rax*8]
	mov	rdi, rax
	call	getInput
	mov	DWORD PTR -1048684[rbp], eax
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -1048680[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -1048648[rbp], rax
	mov	esi, DWORD PTR -1048692[rbp]
	mov	ecx, DWORD PTR -1048680[rbp]
	mov	rax, QWORD PTR -1048648[rbp]
	mov	edx, DWORD PTR -1048684[rbp]
	push	rdx
	mov	edx, DWORD PTR -1048688[rbp]
	push	rdx
	mov	r9d, esi
	mov	r8d, ecx
	lea	rcx, .LC7[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -1048648[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	add	DWORD PTR -1048680[rbp], 1
.L5:
	cmp	DWORD PTR -1048680[rbp], 2
	jle	.L11
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edi, 0
	call	time@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -1048672[rbp], xmm0
	lea	rax, -1048603[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048664[rbp], rax
	mov	DWORD PTR -1048680[rbp], 0
	jmp	.L12
.L13:
	call	rand@PLT
	mov	edx, DWORD PTR -1048688[rbp]
	mov	ecx, edx
	sub	ecx, DWORD PTR -1048692[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -1048692[rbp]
	add	eax, edx
	mov	DWORD PTR -1048676[rbp], eax
	mov	edx, DWORD PTR -1048676[rbp]
	lea	rax, -1048592[rbp]
	mov	ecx, edx
	lea	rdx, .LC10[rip]
	mov	esi, 1048576
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	edx, DWORD PTR -1048676[rbp]
	mov	rax, QWORD PTR -1048664[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -1048680[rbp], 1
.L12:
	mov	eax, DWORD PTR -1048680[rbp]
	cmp	eax, DWORD PTR -1048684[rbp]
	jl	.L13
	mov	rax, QWORD PTR -1048664[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	time@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -1048656[rbp], xmm0
	movsd	xmm0, QWORD PTR -1048672[rbp]
	cvttsd2si	rdx, xmm0
	movsd	xmm0, QWORD PTR -1048656[rbp]
	cvttsd2si	rax, xmm0
	mov	rsi, rdx
	mov	rdi, rax
	call	difftime@PLT
	movq	rax, xmm0
	lea	rdi, -1048603[rbp]
	mov	ecx, DWORD PTR -1048688[rbp]
	mov	edx, DWORD PTR -1048692[rbp]
	mov	esi, DWORD PTR -1048684[rbp]
	movq	xmm0, rax
	mov	r8, rdi
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.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	"286879.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"lower\000"
	.align	2
.LC1:
	.ascii	"upper\000"
	.align	2
.LC2:
	.ascii	"count\000"
	.text
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter the value for %s: \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, .L4+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L4+4
	ldr	r2, [r3]
	sub	r1, fp, #20
	sub	r3, fp, #24
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC5
	.word	stdin
	.word	.LC4
	.size	getInput, .-getInput
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Something went wrong...\012Value of i: %d\012\000"
	.align	2
.LC9:
	.ascii	"w\000"
	.align	2
.LC10:
	.ascii	"error.log\000"
	.align	2
.LC11:
	.ascii	"05:39:50\000"
	.align	2
.LC12:
	.ascii	"Dec  6 2024\000"
	.align	2
.LC13:
	.ascii	"%s -- %s\012Value of i: %d\012Value of lower: %d\012"
	.ascii	"Value of upper: %d\012Value of count: %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_idivmod
	.align	2
.LC14:
	.ascii	"%d\000"
	.align	2
.LC15:
	.ascii	"%d\012\000"
	.global	__aeabi_d2iz
	.align	2
.LC16:
	.ascii	"Finished writing %d random values between %d and %d"
	.ascii	" to %s in %f seconds\012\000"
	.align	2
.LC6:
	.ascii	"output.txt\000"
	.align	2
.LC7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048656
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1048576
	sub	sp, sp, #100
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r2, .L18+4
	sub	r3, r3, #16
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r2, .L18+8
	sub	r3, r3, #28
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L7
.L13:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #2
	beq	.L8
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #2
	bgt	.L9
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #1
	beq	.L11
	b	.L9
.L10:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getInput
	str	r0, [r4, #-76]
	b	.L12
.L11:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getInput
	str	r0, [r4, #-72]
	b	.L12
.L8:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getInput
	str	r0, [r4, #-68]
	b	.L12
.L9:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r1, [r3, #-64]
	ldr	r0, .L18+12
	bl	printf
	ldr	r3, .L18+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L18+20
	ldr	r0, .L18+24
	bl	fopen
	str	r0, [r4, #-52]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	str	r3, [sp, #12]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	str	r3, [sp, #8]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	str	r3, [sp, #4]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	str	r3, [sp]
	ldr	r3, .L18+28
	ldr	r2, .L18+32
	ldr	r1, .L18+36
	ldr	r0, [r0, #-52]
	bl	fprintf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-52]
	bl	fclose
	mvn	r0, #0
	bl	exit
.L12:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L7:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #2
	ble	.L13
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r0, #0
	bl	time
	mov	r2, r0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r4, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #16
	ldr	r1, .L18+20
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-60]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L14
.L15:
	bl	rand
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r2, [r2, #-72]
	ldr	r3, [r3, #-76]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	add	r3, r3, r1
	str	r3, [r2, #-56]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r0, fp, #1048576
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-56]
	ldr	r2, .L18+40
	mov	r1, #1048576
	bl	snprintf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r2, [r2, #-56]
	ldr	r1, .L18+44
	ldr	r0, [r3, #-60]
	bl	fprintf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L14:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r2, [r2, #-64]
	ldr	r3, [r3, #-68]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-60]
	bl	fclose
	mov	r0, #0
	bl	time
	mov	r2, r0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	stmdb	r4, {r2-r3}
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmdb	r3, {r0-r1}
	bl	__aeabi_d2iz
	mov	r4, r0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldmia	r3, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	difftime
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #1048576
	sub	r1, r1, #12
	mov	ip, r1
	sub	r1, fp, #1048576
	sub	r1, r1, #12
	mov	r0, r1
	sub	r1, fp, #1048576
	sub	r1, r1, #12
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #16
	str	r3, [sp]
	ldr	r3, [ip, #-72]
	ldr	r2, [r0, #-76]
	ldr	r1, [r1, #-68]
	ldr	r0, .L18+48
	bl	printf
	ldr	r3, .L18+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC17
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdout
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
