	.file	"875048.c"
	.intel_syntax noprefix
	.text
	.globl	perr
	.type	perr, @function
perr:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	perr, .-perr
	.section	.rodata
.LC0:
	.string	"w+"
.LC1:
	.string	"open or fwrite"
.LC2:
	.string	"fflush"
.LC3:
	.string	"ftruncate"
.LC4:
	.string	"fclose"
.LC5:
	.string	"r"
.LC6:
	.string	"fail"
.LC7:
	.string	"pass"
	.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
	push	rbx
	sub	rsp, 216
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, 3347427302621408115
	mov	QWORD PTR -204[rbp], rax
	mov	DWORD PTR -196[rbp], 7627108
	movabs	rax, 2338328219631577172
	movabs	rdx, 8318827349057824884
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	movabs	rax, 7957614682307633268
	movabs	rdx, 2334393380926159212
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	movabs	rax, 2338328528881215087
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -120[rbp], 1701603686
	mov	WORD PTR -116[rbp], 2606
	mov	BYTE PTR -114[rbp], 0
	movabs	rax, 8243109540941754190
	movabs	rdx, 8295737305619570789
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	movabs	rax, 7596482287188796261
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -168[rbp], 170812782
	mov	BYTE PTR -164[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	WORD PTR -40[rbp], 0
	mov	BYTE PTR -38[rbp], 0
	lea	rax, -204[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	je	.L3
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -160[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rbx, rax
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	je	.L4
.L3:
	lea	rdi, .LC1[rip]
	call	perr
.L4:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC2[rip]
	call	perr
.L5:
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, -20[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	rsi, rbx
	mov	edi, eax
	mov	eax, 0
	call	ftruncate@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC3[rip]
	call	perr
.L6:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC4[rip]
	call	perr
.L7:
	lea	rax, -204[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	je	.L8
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -112[rbp]
	mov	rcx, rdx
	mov	edx, 75
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rbx, rax
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 20
	cmp	rbx, rax
	jne	.L8
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -20[rax]
	lea	rcx, -160[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L9
.L8:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"875048.c"
	.text
	.align	2
	.global	perr
	.syntax unified
	.arm
	.fpu softvfp
	.type	perr, %function
perr:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	perr, .-perr
	.section	.rodata
	.align	2
.LC3:
	.ascii	"w+\000"
	.align	2
.LC4:
	.ascii	"open or fwrite\000"
	.align	2
.LC5:
	.ascii	"fflush\000"
	.align	2
.LC6:
	.ascii	"ftruncate\000"
	.align	2
.LC7:
	.ascii	"fclose\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"fail\000"
	.align	2
.LC10:
	.ascii	"pass\000"
	.align	2
.LC0:
	.ascii	"sk1test.dat\000"
	.align	2
.LC1:
	.ascii	"This is the first and only line of this file.\012\000"
	.align	2
.LC2:
	.ascii	"Now there is a second line.\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #180
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L11+4
	sub	r3, fp, #184
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r3, .L11+8
	sub	ip, fp, #140
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	ldr	r3, .L11+12
	sub	ip, fp, #172
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-92]
	sub	r3, fp, #88
	mov	r2, #71
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #184
	ldr	r1, .L11+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #140
	ldr	r3, [fp, #-188]
	mov	r1, #1
	bl	fwrite
	mov	r4, r0
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	beq	.L4
.L3:
	ldr	r0, .L11+20
	bl	perr
.L4:
	ldr	r0, [fp, #-188]
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L11+24
	bl	perr
.L5:
	ldr	r0, [fp, #-188]
	bl	fileno
	mov	r4, r0
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, r4
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L11+28
	bl	perr
.L6:
	ldr	r0, [fp, #-188]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L11+32
	bl	perr
.L7:
	sub	r3, fp, #184
	ldr	r1, .L11+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	beq	.L8
	sub	r0, fp, #92
	ldr	r3, [fp, #-188]
	mov	r2, #75
	mov	r1, #1
	bl	fread
	mov	r4, r0
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #20
	cmp	r4, r3
	bne	.L8
	sub	r3, fp, #140
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #20
	sub	r1, fp, #140
	sub	r3, fp, #92
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-188]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r0, .L11+40
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, .L11+44
	bl	puts
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
