	.file	"460868.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
.LC0:
	.string	"%s:\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	add	QWORD PTR -48[rbp], 8
	jmp	.L2
.L5:
	movsx	eax, BYTE PTR -17[rbp]
	cmp	eax, 118
	jne	.L4
	mov	eax, DWORD PTR verbose[rip]
	add	eax, 1
	mov	DWORD PTR verbose[rip], eax
	jmp	.L3
.L4:
	mov	eax, 0
	call	usage
	nop
.L3:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], 0
	jne	.L5
	add	QWORD PTR -48[rbp], 8
.L2:
	sub	DWORD PTR -36[rbp], 1
	cmp	DWORD PTR -36[rbp], 0
	jle	.L6
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L3
.L6:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L9
	mov	eax, 0
	call	usage
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	CRFix
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L9
	mov	edi, 10
	call	putchar@PLT
.L9:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -36[rbp], edx
	test	eax, eax
	jg	.L11
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.string	"CRLF: Change carriage returns to linefeeds in a file\n"
	.align 8
.LC2:
	.string	"Usage:  crlf [-v] file1 file2 ... filen\n"
.LC3:
	.string	"  -v: verbose\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.type	CRFix, @function
CRFix:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1040
	mov	QWORD PTR -1032[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1032[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1012[rbp], eax
	mov	DWORD PTR -1020[rbp], 1000
	jmp	.L15
.L19:
	lea	rcx, -1008[rbp]
	mov	eax, DWORD PTR -1012[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	jle	.L15
	mov	DWORD PTR -1016[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -1016[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	al, 13
	jne	.L17
	mov	eax, DWORD PTR -1016[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 10
.L17:
	add	DWORD PTR -1016[rbp], 1
.L16:
	mov	eax, DWORD PTR -1016[rbp]
	cmp	eax, DWORD PTR -1020[rbp]
	jl	.L18
	mov	eax, DWORD PTR -1020[rbp]
	movsx	rdx, eax
	lea	rax, -1008[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L15:
	cmp	DWORD PTR -1020[rbp], 0
	jg	.L19
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	CRFix, .-CRFix
	.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	"460868.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s:\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	b	.L2
.L5:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #118
	bne	.L4
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	b	.L3
.L4:
	bl	usage
	nop
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L3
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	bl	usage
	b	.L9
.L11:
	ldr	r3, [fp, #-28]
	add	r2, r3, #4
	str	r2, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r1, [fp, #-8]
	ldr	r0, .L13+4
	bl	printf
.L10:
	ldr	r0, [fp, #-8]
	bl	CRFix
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	mov	r0, #10
	bl	putchar
.L9:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	bgt	.L11
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	verbose
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"CRLF: Change carriage returns to linefeeds in a fil"
	.ascii	"e\012\000"
	.align	2
.LC2:
	.ascii	"Usage:  crlf [-v] file1 file2 ... filen\012\000"
	.align	2
.LC3:
	.ascii	"  -v: verbose\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L16+4
	bl	fwrite
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L16+8
	bl	fwrite
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L16+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CRFix, %function
CRFix:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-1024]
	bl	open
	str	r0, [fp, #-1012]
	mov	r3, #1000
	str	r3, [fp, #-1020]
	b	.L19
.L23:
	sub	r3, fp, #1008
	mov	r2, #1000
	mov	r1, r3
	ldr	r0, [fp, #-1012]
	bl	read
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	ble	.L19
	mov	r3, #0
	str	r3, [fp, #-1016]
	b	.L20
.L22:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1016]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L21
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1016]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-1016]
	add	r3, r3, #1
	str	r3, [fp, #-1016]
.L20:
	ldr	r2, [fp, #-1016]
	ldr	r3, [fp, #-1020]
	cmp	r2, r3
	blt	.L22
	ldr	r2, [fp, #-1020]
	sub	r3, fp, #1008
	mov	r1, r3
	mov	r0, #1
	bl	write
.L19:
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bgt	.L23
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.size	CRFix, .-CRFix
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
