	.file	"122016662.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Failed to allocate memory for temporary buffer!"
.LC1:
	.string	"%lu %d %d %d"
.LC2:
	.string	"ERROR: Trace inconsistency!"
.LC3:
	.string	"Request #%lu failed! %s\n"
	.text
	.globl	play_trace_file
	.type	play_trace_file, @function
play_trace_file:
.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, 336
	mov	QWORD PTR -328[rbp], rdi
	mov	DWORD PTR -332[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -280[rbp], 0
	call	getpagesize@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -300[rbp]
	movsx	rcx, eax
	lea	rax, -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	posix_memalign@PLT
	mov	rax, QWORD PTR -288[rbp]
	test	rax, rax
	jne	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -12
	jmp	.L10
.L9:
	lea	rdi, -316[rbp]
	lea	rsi, -308[rbp]
	lea	rcx, -312[rbp]
	lea	rdx, -296[rbp]
	lea	rax, -272[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -280[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -280[rbp], rdx
	mov	rdx, QWORD PTR -296[rbp]
	cmp	rax, rdx
	je	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L10
.L5:
	mov	eax, DWORD PTR -308[rbp]
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -312[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edi, eax
	call	pwrite@PLT
	mov	DWORD PTR -304[rbp], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -312[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edi, eax
	call	pread@PLT
	mov	DWORD PTR -304[rbp], eax
.L7:
	mov	eax, DWORD PTR -304[rbp]
	cmp	eax, DWORD PTR -300[rbp]
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L10
.L8:
	mov	eax, DWORD PTR -316[rbp]
	sub	eax, 1
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -312[rbp]
	add	eax, 1
	mov	DWORD PTR -312[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	test	eax, eax
	jg	.L5
.L4:
	mov	rdx, QWORD PTR -328[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L9
	mov	eax, 0
.L10:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	play_trace_file, .-play_trace_file
	.section	.rodata
.LC4:
	.string	"Enter device path: "
.LC5:
	.string	"%s"
.LC6:
	.string	"Enter trace file path: "
	.align 8
.LC7:
	.string	"Failed to open device file! %s\n"
.LC8:
	.string	"r"
.LC9:
	.string	"Failed to open trace file!"
	.align 8
.LC10:
	.string	"Failed on replaying the warm-up trace!"
	.align 8
.LC11:
	.string	"Trace file was proceeded successfully!"
	.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
	sub	rsp, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -528[rbp]
	mov	edx, 384
	mov	esi, 1069058
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	lea	rax, -272[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L15
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -2
	jmp	.L12
.L15:
	mov	edx, DWORD PTR -540[rbp]
	mov	rax, QWORD PTR -536[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	play_trace_file
	test	eax, eax
	je	.L17
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L18
.L17:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L18:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"122016662.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to allocate memory for temporary buffer!\000"
	.align	2
.LC1:
	.ascii	"%lu %d %d %d\000"
	.align	2
.LC2:
	.ascii	"ERROR: Trace inconsistency!\000"
	.align	2
.LC3:
	.ascii	"Request #%lu failed! %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	play_trace_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_trace_file, %function
play_trace_file:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #316
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-284]
	bl	getpagesize
	str	r0, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r2, [fp, #-276]
	sub	r3, fp, #288
	mov	r0, r3
	bl	posix_memalign
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L12+4
	bl	puts
	mvn	r3, #11
	b	.L10
.L9:
	sub	r1, fp, #300
	sub	r2, fp, #292
	sub	r0, fp, #272
	sub	r3, fp, #304
	str	r3, [sp, #4]
	sub	r3, fp, #296
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L12+8
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-284]
	add	r2, r3, #1
	str	r2, [fp, #-284]
	ldr	r2, [fp, #-292]
	cmp	r3, r2
	beq	.L5
	ldr	r0, .L12+12
	bl	printf
	mvn	r3, #0
	b	.L10
.L5:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L6
	ldr	r1, [fp, #-288]
	ldr	r0, [fp, #-276]
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-276]
	mul	r3, r2, r3
	mov	r2, r0
	ldr	r0, [fp, #-316]
	bl	pwrite
	str	r0, [fp, #-280]
	b	.L7
.L6:
	ldr	r1, [fp, #-288]
	ldr	r0, [fp, #-276]
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-276]
	mul	r3, r2, r3
	mov	r2, r0
	ldr	r0, [fp, #-316]
	bl	pread
	str	r0, [fp, #-280]
.L7:
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	beq	.L8
	ldr	r4, [fp, #-292]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L12+16
	bl	printf
	mvn	r3, #0
	b	.L10
.L8:
	ldr	r3, [fp, #-304]
	sub	r3, r3, #1
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bgt	.L5
.L4:
	sub	r3, fp, #272
	ldr	r2, [fp, #-312]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	play_trace_file, .-play_trace_file
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Enter device path: \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"Enter trace file path: \000"
	.align	2
.LC8:
	.ascii	"Failed to open device file! %s\012\000"
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"Failed to open trace file!\000"
	.align	2
.LC11:
	.ascii	"Failed on replaying the warm-up trace!\000"
	.align	2
.LC12:
	.ascii	"Trace file was proceeded successfully!\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L23+4
	bl	printf
	sub	r3, fp, #512
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r0, .L23+12
	bl	printf
	sub	r3, fp, #260
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	sub	r3, fp, #512
	mov	r2, #384
	ldr	r1, .L23+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-520]
	ldr	r3, [fp, #-520]
	cmn	r3, #1
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
	b	.L14
.L15:
	sub	r3, fp, #260
	ldr	r1, .L23+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-516]
	ldr	r3, [fp, #-516]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L23+28
	bl	puts
	ldr	r0, [fp, #-520]
	bl	close
	mvn	r3, #1
	b	.L14
.L17:
	ldr	r1, [fp, #-520]
	ldr	r0, [fp, #-516]
	bl	play_trace_file
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L23+32
	bl	puts
	b	.L20
.L19:
	ldr	r0, .L23+36
	bl	puts
.L20:
	ldr	r0, [fp, #-516]
	bl	fclose
	ldr	r0, [fp, #-520]
	bl	close
	mov	r3, #0
.L14:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC13
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1118210
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
