	.file	"50203.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: %s <min length> <max length> <min byte val> <max byte val> <length>\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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 255
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 128
	cmp	DWORD PTR -84[rbp], 4
	jg	.L2
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -72[rbp], eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	ecx, eax
	mov	edx, 3257812231
	imul	rdx, rcx
	shr	rdx, 32
	shr	edx, 16
	imul	edx, edx, 86400
	sub	eax, edx
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax, 1000
	mov	DWORD PTR -68[rbp], eax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	srandom@PLT
	call	random@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -56[rbp]
	lea	rcx, 1[rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	jmp	.L3
.L11:
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L4
	call	random@PLT
	cqo
	shr	rdx, 62
	add	rax, rdx
	and	eax, 3
	sub	rax, rdx
	cmp	rax, 3
	je	.L5
	cmp	rax, 3
	jg	.L10
	cmp	rax, 2
	je	.L7
	cmp	rax, 2
	jg	.L10
	test	rax, rax
	je	.L8
	cmp	rax, 1
	je	.L9
	jmp	.L10
.L8:
	mov	edi, 32
	call	putchar@PLT
	jmp	.L10
.L9:
	mov	edi, 9
	call	putchar@PLT
	jmp	.L10
.L7:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L10
.L5:
	mov	edi, 13
	call	putchar@PLT
	jmp	.L10
.L4:
	call	random@PLT
	mov	edx, DWORD PTR -72[rbp]
	sub	edx, DWORD PTR -76[rbp]
	add	edx, 1
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	add	eax, edx
	mov	edi, eax
	call	putchar@PLT
.L10:
	add	QWORD PTR -64[rbp], 1
.L3:
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L11
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"50203.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s <min length> <max length> <min byte val> "
	.ascii	"<max byte val> <length>\012\000"
	.global	__aeabi_uidivmod
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.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, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #255
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #128
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	bgt	.L2
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r3, .L15+12
	umull	r2, r3, r1, r3
	lsr	r2, r3, #16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	sub	r3, r1, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	ldr	r2, .L15+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	srandom
	bl	random
	mov	r3, r0
	mov	r0, r3
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L3
.L12:
	bl	random
	mov	r1, r0
	ldr	r3, .L15+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L4
	bl	random
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L10:
	mov	r0, #32
	bl	putchar
	b	.L11
.L9:
	mov	r0, #9
	bl	putchar
	b	.L11
.L8:
	mov	r0, #10
	bl	putchar
	b	.L11
.L6:
	mov	r0, #13
	bl	putchar
	b	.L11
.L4:
	bl	random
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r0, r3
	bl	putchar
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.word	-1037155065
	.word	274877907
	.word	1717986919
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
