	.file	"554618.c"
	.intel_syntax noprefix
	.text
	.local	head
	.comm	head,8,8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/dev/random"
	.text
	.globl	generate_random_pct
	.type	generate_random_pct, @function
generate_random_pct:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	mov	BYTE PTR -13[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -13[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	movsx	eax, BYTE PTR -13[rbp]
	mov	edi, eax
	call	srand@PLT
.L3:
	call	rand@PLT
	mov	edx, DWORD PTR -24[rbp]
	sub	edx, DWORD PTR -20[rbp]
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L4
	mov	DWORD PTR -12[rbp], 0
.L4:
	cmp	DWORD PTR -12[rbp], 100
	jle	.L5
	mov	DWORD PTR -12[rbp], 99
.L5:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	generate_random_pct, .-generate_random_pct
	.section	.rodata
.LC2:
	.string	"f:e:"
.LC3:
	.string	"malloc"
.LC4:
	.string	"WIP: [0%%"
.LC5:
	.string	"stdout"
.LC6:
	.string	"%s"
.LC7:
	.string	"...%d%%"
.LC8:
	.string	"read"
.LC9:
	.string	"w"
	.align 8
.LC10:
	.string	"cbsdtee: unable to open %s for writing\n"
.LC11:
	.string	"img_flat_size=\"%ld\"\n"
.LC12:
	.string	"...100%%]\n"
	.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
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	DWORD PTR -180[rbp], 0
	mov	DWORD PTR -188[rbp], 1
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	jmp	.L8
.L12:
	mov	eax, DWORD PTR -176[rbp]
	movsx	eax, al
	cmp	eax, 101
	je	.L9
	cmp	eax, 102
	je	.L10
	jmp	.L35
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoll@PLT
	mov	QWORD PTR -136[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -128[rbp], rax
	jmp	.L8
.L35:
	call	usage
.L8:
	mov	rcx, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -212[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], -1
	jne	.L12
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -224[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -212[rbp], eax
	cmp	QWORD PTR -128[rbp], 0
	jne	.L13
	cmp	QWORD PTR -136[rbp], 0
	jne	.L13
	call	usage
.L13:
	mov	edi, 8192
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L14
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L14:
	cmp	QWORD PTR -136[rbp], 0
	jle	.L15
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rcx, QWORD PTR -136[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -196[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	imul	rax, QWORD PTR -120[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	QWORD PTR -96[rbp+rax*8], rdx
	add	DWORD PTR -196[rbp], 1
.L16:
	cmp	DWORD PTR -196[rbp], 9
	jle	.L17
.L15:
	lea	rsi, .LC5[rip]
	mov	edi, 1
	call	add
	mov	DWORD PTR -192[rbp], 0
	jmp	.L18
.L21:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L19
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -192[rbp], 1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	add
.L20:
	add	QWORD PTR -224[rbp], 8
.L18:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L21
	jmp	.L22
.L29:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -160[rbp], rax
	jmp	.L23
.L28:
	mov	eax, DWORD PTR -172[rbp]
	mov	DWORD PTR -196[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -152[rbp], rax
.L27:
	mov	eax, DWORD PTR -196[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], -1
	jne	.L24
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -192[rbp], 1
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	add	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	add	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -136[rbp], 0
	jle	.L26
	mov	eax, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -96[rbp+rax*8]
	cmp	QWORD PTR -144[rbp], rax
	jle	.L26
	mov	edx, DWORD PTR -188[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -184[rbp]
	lea	edx, 5[rax]
	mov	eax, DWORD PTR -184[rbp]
	sub	eax, 5
	mov	esi, edx
	mov	edi, eax
	call	generate_random_pct
	mov	DWORD PTR -180[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -180[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -188[rbp], 1
.L26:
	mov	eax, DWORD PTR -168[rbp]
	sub	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jne	.L27
.L25:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -160[rbp], rax
.L23:
	cmp	QWORD PTR -160[rbp], 0
	jne	.L28
.L22:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 8192
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jg	.L29
	cmp	DWORD PTR -172[rbp], 0
	jns	.L30
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L30:
	cmp	QWORD PTR -128[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L31
.L32:
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L31:
	cmp	QWORD PTR -136[rbp], 0
	jle	.L33
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L33:
	mov	eax, DWORD PTR -192[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.string	"usage: cbsdtee -f file [ -e <bytes expected> ]\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.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, 47
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.type	add, @function
add:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L38
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L38:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR head[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add, .-add
	.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	"554618.c"
	.text
	.local	head
	.comm	head,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/dev/random\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	generate_random_pct
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_random_pct, %function
generate_random_pct:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-13]
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	b	.L3
.L2:
	ldr	r0, [fp, #-8]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r0, [fp, #-8]
	bl	fclose
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	srand
.L3:
	bl	rand
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L4
	mov	r3, #0
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	ble	.L5
	mov	r3, #99
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.size	generate_random_pct, .-generate_random_pct
	.section	.rodata
	.align	2
.LC2:
	.ascii	"f:e:\000"
	.align	2
.LC3:
	.ascii	"malloc\000"
	.align	2
.LC4:
	.ascii	"WIP: [0%%\000"
	.align	2
.LC5:
	.ascii	"stdout\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"...%d%%\000"
	.align	2
.LC8:
	.ascii	"read\000"
	.align	2
.LC9:
	.ascii	"w\000"
	.align	2
.LC10:
	.ascii	"cbsdtee: unable to open %s for writing\012\000"
	.align	2
.LC11:
	.ascii	"img_flat_size=\"%ld\"\012\000"
	.align	2
.LC12:
	.ascii	"...100%%]\012\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 = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-88]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	b	.L10
.L14:
	ldr	r3, [fp, #-72]
	and	r3, r3, #255
	cmp	r3, #101
	beq	.L11
	cmp	r3, #102
	beq	.L12
	b	.L37
.L11:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-96]
	b	.L10
.L12:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	str	r3, [fp, #-92]
	b	.L10
.L37:
	bl	usage
.L10:
	ldr	r2, .L38+8
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	getopt
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L38+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	str	r3, [fp, #-124]
	ldr	r3, .L38+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	sub	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L15
	bl	usage
.L15:
	mov	r0, #8192
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L16
	ldr	r1, .L38+16
	mov	r0, #1
	bl	err
.L16:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L38+20
	ldr	r3, [r3]
	ldr	r1, .L38+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-96]
	ldr	r2, .L38+28
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L18
.L19:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-112]
	mul	r2, r3, r2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L18:
	ldr	r3, [fp, #-112]
	cmp	r3, #9
	ble	.L19
.L17:
	ldr	r1, .L38+32
	mov	r0, #1
	bl	add
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L20
.L23:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	ldr	r2, .L38+36
	ldr	r1, .L38+40
	mov	r0, r3
	bl	open
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L21
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L38+44
	bl	warn
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L22
.L21:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	add
.L22:
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	str	r3, [fp, #-124]
.L20:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	b	.L24
.L31:
	ldr	r3, .L38+48
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	b	.L25
.L30:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-108]
.L29:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-108]
	mov	r0, r3
	bl	write
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L26
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L38+44
	bl	warn
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L27
.L26:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	ble	.L28
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	sub	r2, r3, #5
	ldr	r3, [fp, #-80]
	add	r3, r3, #5
	mov	r1, r3
	mov	r0, r2
	bl	generate_random_pct
	str	r0, [fp, #-76]
	ldr	r3, .L38+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	ldr	r1, .L38+52
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L28:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L29
.L27:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	str	r3, [fp, #-116]
.L25:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L30
.L24:
	mov	r2, #8192
	ldr	r1, [fp, #-68]
	mov	r0, #0
	bl	read
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L31
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L32
	ldr	r1, .L38+56
	mov	r0, #1
	bl	err
.L32:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L33
	ldr	r1, .L38+60
	ldr	r0, [fp, #-92]
	bl	fopen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L34
	ldr	r1, [fp, #-92]
	ldr	r0, .L38+64
	bl	warn
	b	.L33
.L34:
	ldr	r2, [fp, #-100]
	ldr	r1, .L38+68
	ldr	r0, [fp, #-60]
	bl	fprintf
	ldr	r0, [fp, #-60]
	bl	fclose
.L33:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L35
	ldr	r3, .L38+20
	ldr	r3, [r3]
	ldr	r1, .L38+72
	mov	r0, r3
	bl	fprintf
.L35:
	ldr	r0, [fp, #-104]
	bl	exit
.L39:
	.align	2
.L38:
	.word	.LC13
	.word	optarg
	.word	.LC2
	.word	optind
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	1717986919
	.word	.LC5
	.word	438
	.word	577
	.word	.LC6
	.word	head
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.ascii	"usage: cbsdtee -f file [ -e <bytes expected> ]\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, .L41
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L41+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L42:
	.align	2
.L41:
	.word	stderr
	.word	.LC14
	.size	usage, .-usage
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L44
	ldr	r1, .L45
	mov	r0, #1
	bl	err
.L44:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r3, .L45+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r2, .L45+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC3
	.word	head
	.size	add, .-add
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
