	.file	"1005.c"
	.intel_syntax noprefix
	.text
	.globl	v_base_addr
	.bss
	.align 4
	.type	v_base_addr, @object
	.size	v_base_addr, 4
v_base_addr:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"This executable requires 5 arguments, exiting\n\r"
.LC2:
	.string	"fault begin: %08.2f us\n\r"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 6
	jne	.L2
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	sal	eax, 11
	and	eax, 1046528
	or	ah, 4
	mov	DWORD PTR -52[rbp], eax
	mov	DWORD PTR -48[rbp], 54272
	mov	DWORD PTR -44[rbp], 103424
	lea	rsi, -40[rbp]
	lea	rax, -80[rbp]
	mov	ecx, 767
	mov	edx, -134193152
	mov	rdi, rax
	call	Map_Registers
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR v_base_addr[rip], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	nDelay
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	cmp	DWORD PTR -60[rbp], 0
	je	.L4
	jmp	.L12
.L2:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR v_base_addr[rip]
	add	eax, edx
	add	eax, 320
	mov	eax, eax
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR [rdx], eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L5
.L6:
	add	DWORD PTR -76[rbp], 1
.L5:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jb	.L6
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR v_base_addr[rip]
	add	eax, edx
	add	eax, 320
	mov	eax, eax
	mov	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR v_base_addr[rip]
	add	eax, edx
	add	eax, 340
	mov	eax, eax
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR [rdx], eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L8
.L9:
	add	DWORD PTR -76[rbp], 1
.L8:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jb	.L9
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR v_base_addr[rip]
	add	eax, edx
	add	eax, 340
	mov	eax, eax
	mov	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
.L7:
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"/dev/mem"
	.align 8
.LC4:
	.string	"Error: could not open /dev/mem!\n"
	.align 8
.LC5:
	.string	"Error: could not map memory to file!\n"
	.text
	.globl	Map_Registers
	.type	Map_Registers, @function
Map_Registers:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	DWORD PTR -24[rbp], ecx
	mov	esi, 1052674
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L15
.L16:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Map_Registers, .-Map_Registers
	.globl	nDelay
	.type	nDelay, @function
nDelay:
.LFB8:
	.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	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L18
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L19
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1000000000
	add	DWORD PTR -48[rbp], eax
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -36[rbp]
	add	DWORD PTR -48[rbp], eax
.L18:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -52[rbp], eax
	ja	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nDelay, .-nDelay
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1083129856
	.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	"1005.c"
	.text
	.global	v_base_addr
	.bss
	.align	2
	.type	v_base_addr, %object
	.size	v_base_addr, 4
v_base_addr:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This executable requires 5 arguments, exiting\012\015"
	.ascii	"\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC1:
	.ascii	"fault begin: %08.2f us\012\015\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-68]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #6
	bne	.L2
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-68]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-68]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	lsl	r2, r3, #11
	ldr	r3, .L13+4
	and	r3, r3, r2
	orr	r3, r3, #1024
	str	r3, [fp, #-28]
	mov	r3, #54272
	str	r3, [fp, #-24]
	mov	r3, #103424
	str	r3, [fp, #-20]
	sub	r1, fp, #56
	sub	r0, fp, #60
	ldr	r3, .L13+8
	ldr	r2, .L13+12
	bl	Map_Registers
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, .L13+16
	str	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	nDelay
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L4
	b	.L12
.L2:
	ldr	r0, .L13+20
	bl	printf
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, [fp, #-32]
	lsl	r2, r3, #2
	ldr	r3, .L13+16
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #320
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L5
.L6:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L5:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-32]
	lsl	r2, r3, #2
	ldr	r3, .L13+16
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #320
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r3, [r2]
	b	.L7
.L4:
	ldr	r3, [fp, #-32]
	lsl	r2, r3, #2
	ldr	r3, .L13+16
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #340
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L8
.L9:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L8:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L9
	ldr	r3, [fp, #-32]
	lsl	r2, r3, #2
	ldr	r3, .L13+16
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #340
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L7:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L13+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	1046528
	.word	767
	.word	-134193152
	.word	v_base_addr
	.word	.LC0
	.word	1083129856
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"/dev/mem\000"
	.align	2
.LC4:
	.ascii	"Error: could not open /dev/mem!\012\000"
	.align	2
.LC5:
	.ascii	"Error: could not map memory to file!\012\000"
	.text
	.align	2
	.global	Map_Registers
	.syntax unified
	.arm
	.fpu softvfp
	.type	Map_Registers, %function
Map_Registers:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r1, .L19
	ldr	r0, .L19+4
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L19+12
	bl	fwrite
	mvn	r3, #0
	b	.L17
.L16:
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L18
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	mvn	r3, #0
	b	.L17
.L18:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	1052674
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.size	Map_Registers, .-Map_Registers
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nDelay
	.syntax unified
	.arm
	.fpu softvfp
	.type	nDelay, %function
nDelay:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L24:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L23
	ldr	r2, [fp, #-20]
	ldr	r3, .L26+4
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L22
.L23:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L22:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bhi	.L24
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC6
	.word	1000000000
	.size	nDelay, .-nDelay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
