	.file	"43888401.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/mem"
.LC1:
	.string	"open"
.LC2:
	.string	"%10d\n"
	.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, 64
	lea	rax, .LC0[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, 1073741824
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, 1073745920
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	sal	rax, 13
	mov	rsi, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, 503316480
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	and	eax, -2
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 116479513
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 10
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	mov	WORD PTR [rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 12
	mov	DWORD PTR [rax], 10000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	DWORD PTR [rax], 1023
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 20
	mov	DWORD PTR [rax], 8388607
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	and	eax, -3
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L4
.L5:
	mov	edi, 1000
	call	usleep@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1024
	and	eax, 8388544
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	and	eax, 8388607
	sal	eax, 2
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L6:
	cmp	DWORD PTR -52[rbp], 8388607
	jle	.L7
	mov	edi, 30
	call	sysconf@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	edi, 30
	call	sysconf@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	edi, 30
	call	sysconf@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"43888401.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.align	2
.LC1:
	.ascii	"open\000"
	.align	2
.LC2:
	.ascii	"%10d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L8
	str	r3, [fp, #-36]
	mov	r1, #2
	ldr	r0, [fp, #-36]
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+4
	bl	perror
	mov	r3, #1
	b	.L3
.L2:
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	mov	r3, #1073741824
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-28]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L8+8
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-24]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	lsl	r3, r3, #13
	mov	r1, r3
	mov	r3, #503316480
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	bic	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	orr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r2, .L8+12
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	mov	r2, #10
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r2, .L8+16
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r2, .L8+20
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #20
	ldr	r2, .L8+24
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	orr	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	bic	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	b	.L4
.L5:
	mov	r0, #1000
	bl	usleep
.L4:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1024
	bic	r3, r3, #-1073741761
	bic	r3, r3, #1065353216
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L6
.L7:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	bic	r3, r3, #-16777216
	bic	r3, r3, #8388608
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+28
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-40]
	cmp	r3, #8388608
	blt	.L7
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	munmap
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	munmap
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	munmap
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	1073745920
	.word	116479513
	.word	10000
	.word	1023
	.word	8388607
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
