	.file	"182951988.c"
	.intel_syntax noprefix
	.text
	.globl	buf1
	.bss
	.align 8
	.type	buf1, @object
	.size	buf1, 8
buf1:
	.zero	8
	.globl	buf2
	.align 8
	.type	buf2, @object
	.size	buf2, 8
buf2:
	.zero	8
	.globl	coremaker_data
	.data
	.align 4
	.type	coremaker_data, @object
	.size	coremaker_data, 4
coremaker_data:
	.long	1
	.globl	coremaker_bss
	.bss
	.align 4
	.type	coremaker_bss, @object
	.size	coremaker_bss, 4
coremaker_bss:
	.zero	4
	.globl	coremaker_ro
	.section	.rodata
	.align 4
	.type	coremaker_ro, @object
	.size	coremaker_ro, 4
coremaker_ro:
	.long	201
.LC0:
	.string	"coremmap.data"
.LC1:
	.string	"coremmap.data open failed"
.LC2:
	.string	"mmap failed"
.LC3:
	.string	"mapped data is incorrect"
	.text
	.globl	mmapdata
	.type	mmapdata, @function
mmapdata:
.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, 16
	mov	edi, 8192
	call	malloc@PLT
	mov	QWORD PTR buf1[rip], rax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR buf1[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 8191
	jle	.L3
	mov	edx, 438
	mov	esi, 66
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	QWORD PTR buf2[rip], -1
	jmp	.L1
.L4:
	mov	rcx, QWORD PTR buf1[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 2
	mov	edx, 3
	mov	esi, 8192
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR buf2[rip], rax
	mov	rax, QWORD PTR buf2[rip]
	cmp	rax, -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L1
.L6:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L9:
	mov	rdx, QWORD PTR buf1[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR buf2[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	QWORD PTR buf2[rip], -1
	jmp	.L1
.L8:
	add	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 8191
	jle	.L9
	mov	rdx, QWORD PTR buf1[rip]
	mov	rax, QWORD PTR buf2[rip]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mmapdata, .-mmapdata
	.globl	func2
	.type	func2, @function
func2:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp+rax*4], edx
	add	DWORD PTR -36[rbp], 1
.L11:
	cmp	DWORD PTR -36[rbp], 4
	jle	.L12
	mov	DWORD PTR coremaker_bss[rip], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	edx, DWORD PTR -32[rbp+rax*4]
	mov	eax, DWORD PTR coremaker_bss[rip]
	add	eax, edx
	mov	DWORD PTR coremaker_bss[rip], eax
	add	DWORD PTR -36[rbp], 1
.L13:
	cmp	DWORD PTR -36[rbp], 4
	jle	.L14
	mov	eax, 201
	add	eax, 1
	mov	DWORD PTR coremaker_data[rip], eax
	call	abort@PLT
	.cfi_endproc
.LFE7:
	.size	func2, .-func2
	.globl	func1
	.type	func1, @function
func1:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	func2
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	func1, .-func1
	.section	.rodata
.LC4:
	.string	"sleep"
	.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
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L18
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	edi, 60
	call	sleep@PLT
	mov	eax, 0
	jmp	.L19
.L18:
	mov	eax, 0
	call	mmapdata
	mov	eax, 0
	call	func1
	mov	eax, 0
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"182951988.c"
	.text
	.comm	buf1,4,4
	.comm	buf2,4,4
	.global	coremaker_data
	.data
	.align	2
	.type	coremaker_data, %object
	.size	coremaker_data, 4
coremaker_data:
	.word	1
	.comm	coremaker_bss,4,4
	.global	coremaker_ro
	.section	.rodata
	.align	2
	.type	coremaker_ro, %object
	.size	coremaker_ro, 4
coremaker_ro:
	.word	201
	.align	2
.LC0:
	.ascii	"coremmap.data\000"
	.align	2
.LC1:
	.ascii	"coremmap.data open failed\000"
	.align	2
.LC2:
	.ascii	"mmap failed\000"
	.align	2
.LC3:
	.ascii	"mapped data is incorrect\000"
	.text
	.align	2
	.global	mmapdata
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmapdata, %function
mmapdata:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #8192
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #8192
	blt	.L3
	ldr	r2, .L10+4
	mov	r1, #66
	ldr	r0, .L10+8
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L10+12
	bl	perror
	ldr	r3, .L10+16
	mvn	r2, #0
	str	r2, [r3]
	b	.L1
.L4:
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	write
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #3
	mov	r1, #8192
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L10+16
	str	r3, [r2]
	ldr	r3, .L10+16
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+20
	bl	perror
	b	.L1
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L9:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L10+16
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L8
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L10+28
	bl	fwrite
	ldr	r3, .L10+16
	mvn	r2, #0
	str	r2, [r3]
	b	.L1
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #8192
	blt	.L9
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, .L10+16
	ldr	r3, [r3]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	buf1
	.word	438
	.word	.LC0
	.word	.LC1
	.word	buf2
	.word	.LC2
	.word	stderr
	.word	.LC3
	.size	mmapdata, .-mmapdata
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	func2
	.syntax unified
	.arm
	.fpu softvfp
	.type	func2, %function
func2:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L14:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L14
	ldr	r3, .L18+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L15
.L16:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-24]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L18+4
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L15:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L16
	mov	r3, #201
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	bl	abort
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	coremaker_bss
	.word	coremaker_data
	.size	func2, .-func2
	.align	2
	.global	func1
	.syntax unified
	.arm
	.fpu softvfp
	.type	func1, %function
func1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	func2
	nop
	pop	{fp, pc}
	.size	func1, .-func1
	.section	.rodata
	.align	2
.LC5:
	.ascii	"sleep\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L22
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	mov	r0, #60
	bl	sleep
	mov	r3, #0
	b	.L23
.L22:
	bl	mmapdata
	bl	func1
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
