	.file	"103266718.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"SYNOPSIS\n  A error-injection (noise) program.\n\nUSAGE\n  %s [-h] [-s seed] [-e error_rate]\n\nOPTIONS\n  -h               Program usage and help.\n  -s seed          Specifies the random seed.\n  -e error_rate    Specifies the error rate.\n"
	.text
	.type	usage, @function
usage:
.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 stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.type	uniform, @function
uniform:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	random@PLT
	and	eax, 2147483647
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	uniform, .-uniform
	.section	.rodata
.LC4:
	.string	"hs:e:"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1064[rbp], 0
	mov	DWORD PTR -1076[rbp], 2021
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -1056[rbp], xmm0
	jmp	.L5
.L14:
	cmp	DWORD PTR -1064[rbp], 115
	je	.L6
	cmp	DWORD PTR -1064[rbp], 115
	jg	.L7
	cmp	DWORD PTR -1064[rbp], 101
	je	.L8
	cmp	DWORD PTR -1064[rbp], 104
	je	.L9
	jmp	.L7
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -1076[rbp], eax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, optarg[rip]
	mov	rdi, rax
	call	strtod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -1056[rbp], rax
	movsd	xmm0, QWORD PTR -1056[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	comisd	xmm0, xmm1
	jbe	.L27
	movsd	xmm0, QWORD PTR .LC3[rip]
	jmp	.L12
.L27:
	movsd	xmm0, QWORD PTR -1056[rbp]
.L12:
	movsd	QWORD PTR -1056[rbp], xmm0
	jmp	.L5
.L9:
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	eax, 0
	jmp	.L23
.L7:
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L23
.L5:
	mov	rcx, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	lea	rdx, .LC4[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	srandom@PLT
	jmp	.L15
.L22:
	mov	DWORD PTR -1072[rbp], 0
	jmp	.L16
.L21:
	mov	BYTE PTR -1077[rbp], 1
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L17
.L20:
	mov	eax, 0
	call	uniform
	movq	rax, xmm0
	mov	QWORD PTR -1048[rbp], rax
	movsd	xmm0, QWORD PTR -1056[rbp]
	comisd	xmm0, QWORD PTR -1048[rbp]
	jbe	.L18
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	movzx	edx, BYTE PTR -1040[rbp+rax]
	movzx	eax, BYTE PTR -1077[rbp]
	xor	edx, eax
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], dl
.L18:
	sal	BYTE PTR -1077[rbp]
	add	DWORD PTR -1068[rbp], 1
.L17:
	cmp	DWORD PTR -1068[rbp], 7
	jle	.L20
	add	DWORD PTR -1072[rbp], 1
.L16:
	mov	eax, DWORD PTR -1072[rbp]
	cmp	eax, DWORD PTR -1060[rbp]
	jl	.L21
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L15:
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], 0
	jg	.L22
	mov	eax, 0
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	-4194304
	.long	1105199103
	.align 8
.LC2:
	.long	-755914244
	.long	1062232653
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"103266718.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SYNOPSIS\012  A error-injection (noise) program.\012"
	.ascii	"\012USAGE\012  %s [-h] [-s seed] [-e error_rate]\012"
	.ascii	"\012OPTIONS\012  -h               Program usage and"
	.ascii	" help.\012  -s seed          Specifies the random s"
	.ascii	"eed.\012  -e error_rate    Specifies the error rate"
	.ascii	".\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uniform, %function
uniform:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	random
	mov	r3, r0
	bic	r3, r3, #-2147483648
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L6
	ldr	r3, .L6+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	-4194304
	.word	1105199103
	.size	uniform, .-uniform
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC1:
	.ascii	"hs:e:\000"
	.global	__aeabi_dcmplt
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	str	r0, [fp, #-1080]
	str	r1, [fp, #-1084]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1060]
	ldr	r3, .L32+4
	str	r3, [fp, #-1072]
	ldr	r2, .L32+8
	ldr	r3, .L32+12
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
	b	.L9
.L18:
	ldr	r3, [fp, #-1060]
	cmp	r3, #115
	beq	.L10
	ldr	r3, [fp, #-1060]
	cmp	r3, #115
	bgt	.L11
	ldr	r3, [fp, #-1060]
	cmp	r3, #101
	beq	.L12
	ldr	r3, [fp, #-1060]
	cmp	r3, #104
	beq	.L13
	b	.L11
.L10:
	ldr	r3, .L32+16
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-1072]
	b	.L9
.L12:
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r1, .L32+16
	mov	r0, r3
	bl	strtod
	str	r0, [fp, #-1052]
	str	r1, [fp, #-1048]
	mov	r2, #0
	ldr	r3, .L32+20
	ldr	r0, [fp, #-1052]
	ldr	r1, [fp, #-1048]
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	mov	r2, #0
	ldr	r3, .L32+20
	b	.L16
.L31:
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
.L16:
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
	b	.L9
.L13:
	ldr	r3, [fp, #-1084]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r3, #0
	b	.L27
.L11:
	ldr	r3, [fp, #-1084]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r3, #1
	b	.L27
.L9:
	ldr	r2, .L32+24
	ldr	r1, [fp, #-1084]
	ldr	r0, [fp, #-1080]
	bl	getopt
	str	r0, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	cmn	r3, #1
	bne	.L18
	ldr	r0, [fp, #-1072]
	bl	srandom
	b	.L19
.L26:
	mov	r3, #0
	str	r3, [fp, #-1068]
	b	.L20
.L25:
	mov	r3, #1
	strb	r3, [fp, #-1073]
	mov	r3, #0
	str	r3, [fp, #-1064]
	b	.L21
.L24:
	bl	uniform
	str	r0, [fp, #-1044]
	str	r1, [fp, #-1040]
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	ldr	r0, [fp, #-1044]
	ldr	r1, [fp, #-1040]
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1068]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-1073]
	eor	r3, r3, r2
	and	r1, r3, #255
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1068]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
.L22:
	ldrb	r3, [fp, #-1073]
	lsl	r3, r3, #1
	strb	r3, [fp, #-1073]
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L21:
	ldr	r3, [fp, #-1064]
	cmp	r3, #7
	ble	.L24
	ldr	r3, [fp, #-1068]
	add	r3, r3, #1
	str	r3, [fp, #-1068]
.L20:
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	blt	.L25
	ldr	r2, [fp, #-1056]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
.L19:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	bgt	.L26
	mov	r3, #0
.L27:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC2
	.word	2021
	.word	-755914244
	.word	1062232653
	.word	optarg
	.word	1072693248
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
