	.file	"1879.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"x"
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"/afs/kip.uni-heidelberg.de/user/tnonne/s2pp-source/dump_c_coremark.mem"
.LC3:
	.string	"w"
.LC4:
	.string	"temp_dump.mem"
.LC5:
	.string	"Error opening file"
.LC6:
	.string	"%s"
.LC7:
	.string	"00 "
.LC8:
	.string	"%s "
	.align 8
.LC9:
	.string	"Adresse: ascii-Interpretation "
.LC10:
	.string	"%d :"
.LC11:
	.string	"%x"
.LC12:
	.string	"%c"
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L3
.L9:
	add	DWORD PTR -52[rbp], 1
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L5
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L5
	nop
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L6
	sub	DWORD PTR -52[rbp], 1
.L5:
	cmp	DWORD PTR -52[rbp], 0
	jle	.L4
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L7
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L8
.L7:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	mov	eax, DWORD PTR -52[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L4:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L3:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L10
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -52[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L12
	mov	edi, 10
	call	putchar@PLT
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L14
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"1879.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"x\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"/afs/kip.uni-heidelberg.de/user/tnonne/s2pp-source/"
	.ascii	"dump_c_coremark.mem\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"temp_dump.mem\000"
	.align	2
.LC5:
	.ascii	"Error opening file\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"00 \000"
	.align	2
.LC8:
	.ascii	"%s \000"
	.align	2
.LC9:
	.ascii	"Adresse: ascii-Interpretation \000"
	.align	2
.LC10:
	.ascii	"%d :\000"
	.align	2
.LC11:
	.ascii	"%x\000"
	.align	2
.LC12:
	.ascii	"%c\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, .L17+4
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L17+24
	bl	perror
	b	.L3
.L9:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, .L17+28
	ldr	r0, [fp, #-20]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L5
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L5
	nop
.L6:
	ldr	r0, [fp, #-20]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L6
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L7
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L7
	ldr	r3, [fp, #-16]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L17+32
	bl	fwrite
	b	.L8
.L7:
	ldr	r2, [fp, #-28]
	ldr	r1, .L17+36
	ldr	r0, [fp, #-16]
	bl	fprintf
.L8:
	ldr	r3, [fp, #-32]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L4
	ldr	r1, [fp, #-16]
	mov	r0, #10
	bl	fputc
.L4:
	ldr	r0, [fp, #-20]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
.L3:
	ldr	r1, .L17+8
	ldr	r0, .L17+20
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L17+24
	bl	perror
	b	.L11
.L10:
	ldr	r0, .L17+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L14:
	ldr	r3, [fp, #-32]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L13
	ldr	r1, [fp, #-32]
	ldr	r0, .L17+44
	bl	printf
.L13:
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L17+48
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L17+52
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L12
	mov	r0, #10
	bl	putchar
.L12:
	ldr	r0, [fp, #-12]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-12]
	bl	fclose
.L11:
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.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
