	.file	"395095.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"CHANGE - Filter to alter one character in the stream to one or"
	.align 8
.LC1:
	.string	"         more others. Arguments are From and To, where From is"
	.align 8
.LC2:
	.string	"         specified as a 2 digit hex number (the character to be"
	.align 8
.LC3:
	.string	"         changed), and To is 0 or multiples of 2 digit hex numbers"
	.align 8
.LC4:
	.string	"         that this character is to be changed into."
	.align 8
.LC5:
	.string	"         File is read from stdin and written to stdout."
.LC6:
	.string	"Usage: CHANGE from (to)"
.LC7:
	.string	" "
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 0
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR -58[rbp], al
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L3
	mov	edi, 8
	call	exit@PLT
.L3:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, eax
	cdqe
	lea	rcx, [rdx+rax]
	lea	rax, -11[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -9[rbp], 0
	lea	rcx, -40[rbp]
	lea	rax, -11[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -56[rbp], 1
.L4:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L5
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L6
.L10:
	movzx	eax, BYTE PTR -57[rbp]
	cmp	al, BYTE PTR -58[rbp]
	jne	.L7
	mov	DWORD PTR -56[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	add	DWORD PTR -56[rbp], 1
.L8:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR stdout[rip]
	movsx	eax, BYTE PTR -57[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
.L6:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -57[rbp], al
	cmp	BYTE PTR -57[rbp], -1
	jne	.L10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"395095.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CHANGE - Filter to alter one character in the strea"
	.ascii	"m to one or\000"
	.align	2
.LC1:
	.ascii	"         more others. Arguments are From and To, wh"
	.ascii	"ere From is\000"
	.align	2
.LC2:
	.ascii	"         specified as a 2 digit hex number (the cha"
	.ascii	"racter to be\000"
	.align	2
.LC3:
	.ascii	"         changed), and To is 0 or multiples of 2 di"
	.ascii	"git hex numbers\000"
	.align	2
.LC4:
	.ascii	"         that this character is to be changed into."
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"         File is read from stdin and written to std"
	.ascii	"out.\000"
	.align	2
.LC6:
	.ascii	"Usage: CHANGE from (to)\000"
	.align	2
.LC7:
	.ascii	" \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L2
	ldr	r0, .L13+4
	bl	puts
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	puts
	ldr	r0, .L13+24
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L13+28
	bl	puts
	ldr	r0, .L13+32
	bl	puts
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r1, fp, #36
	mov	r2, #16
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	strb	r3, [fp, #-38]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	lsr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	mov	r0, #8
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	lsl	r2, r2, #1
	add	r1, r3, r2
	sub	r3, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-10]
	sub	r1, fp, #32
	sub	r3, fp, #12
	mov	r2, #16
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L6
.L12:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L8
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L13+36
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	putc
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	b	.L6
.L7:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	ldr	r2, .L13+36
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	putc
.L6:
	ldr	r3, .L13+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-37]
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	b	.L12
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdout
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
