	.file	"654997.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"I assume you are using a Random Number Generator (RNG) that cannot generate zeroes."
	.align 8
.LC1:
	.string	"What is the largest number your RNG can generate?"
.LC2:
	.string	"%d"
	.text
	.globl	get_rng_ceil
	.type	get_rng_ceil, @function
get_rng_ceil:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_rng_ceil, .-get_rng_ceil
	.section	.rodata
	.align 8
.LC3:
	.string	"Enter an input from your RNG: "
	.align 8
.LC4:
	.string	"That's higher than your RNG is supposed to be able to generate! Try again: "
	.text
	.globl	get_rng_input
	.type	get_rng_input, @function
get_rng_input:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L5
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jb	.L6
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_rng_input, .-get_rng_input
	.section	.rodata
	.align 8
.LC5:
	.string	"How many bits long do you want your key to be?"
	.text
	.globl	get_key_size
	.type	get_key_size, @function
get_key_size:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	get_key_size, .-get_key_size
	.globl	get_bit_length
	.type	get_bit_length, @function
get_bit_length:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	ja	.L14
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	get_bit_length, .-get_bit_length
	.globl	is_power_of_two
	.type	is_power_of_two, @function
is_power_of_two:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	ja	.L19
	mov	eax, 0
	jmp	.L18
.L21:
	shr	DWORD PTR -4[rbp]
.L19:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L20
	cmp	DWORD PTR -4[rbp], 1
	ja	.L21
.L20:
	cmp	DWORD PTR -4[rbp], 1
	sete	al
	movzx	eax, al
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	is_power_of_two, .-is_power_of_two
	.section	.rodata
	.align 8
.LC6:
	.string	"Sorry, I can only use powers of 2!"
.LC7:
	.string	"%d of %d bits generated...\n"
.LC8:
	.string	"Your key is:\n0x"
.LC9:
	.string	"%X"
	.align 8
.LC10:
	.string	"\nBe sure to run this through newBitcoinKey in bitcoin.sh first if you are planning on using this to seed a Bitcoin address!"
.LC11:
	.string	"Generate another? [y/n]"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -105[rbp], 121
	jmp	.L23
.L24:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L23:
	mov	eax, 0
	call	get_rng_ceil
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	is_power_of_two
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	get_bit_length
	mov	DWORD PTR -80[rbp], eax
	jmp	.L25
.L45:
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -104[rbp], 0
	mov	eax, 0
	call	get_key_size
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 7
	shr	eax, 3
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, eax
	mov	r12, rdx
	mov	r13d, 0
	mov	edx, eax
	mov	r14, rdx
	mov	r15d, 0
	mov	edx, eax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L26:
	cmp	rsp, rdx
	je	.L27
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L26
.L27:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L28
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L28:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	jmp	.L29
.L35:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	get_rng_input
	sub	eax, 1
	mov	DWORD PTR -100[rbp], eax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L30
.L34:
	mov	eax, DWORD PTR -100[rbp]
	and	eax, 1
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -104[rbp]
	shr	eax, 3
	mov	esi, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, esi
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -104[rbp]
	and	eax, 7
	mov	edi, 1
	mov	ecx, eax
	sal	edi, cl
	mov	eax, edi
	or	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, esi
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L32
.L31:
	mov	eax, DWORD PTR -104[rbp]
	shr	eax, 3
	mov	esi, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, esi
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -104[rbp]
	and	eax, 7
	mov	edi, 1
	mov	ecx, eax
	sal	edi, cl
	mov	eax, edi
	not	eax
	and	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, esi
	mov	BYTE PTR [rax+rcx], dl
.L32:
	shr	DWORD PTR -100[rbp]
	add	DWORD PTR -104[rbp], 1
	add	DWORD PTR -96[rbp], 1
.L30:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jbe	.L33
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jb	.L34
.L33:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jb	.L35
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L36
.L41:
	mov	eax, DWORD PTR -88[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L37
	add	DWORD PTR -92[rbp], 1
.L37:
	cmp	DWORD PTR -88[rbp], 0
	jle	.L38
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	and	eax, 3
	test	eax, eax
	je	.L39
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	cmp	DWORD PTR -104[rbp], eax
	jne	.L38
.L39:
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L40
.L38:
	sal	DWORD PTR -92[rbp]
.L40:
	add	DWORD PTR -88[rbp], 1
.L36:
	mov	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -104[rbp], eax
	ja	.L41
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	BYTE PTR -105[rbp], al
	jmp	.L42
.L44:
	call	getchar@PLT
	mov	BYTE PTR -105[rbp], al
.L42:
	cmp	BYTE PTR -105[rbp], 121
	je	.L43
	cmp	BYTE PTR -105[rbp], 89
	je	.L43
	cmp	BYTE PTR -105[rbp], 110
	je	.L43
	cmp	BYTE PTR -105[rbp], 78
	jne	.L44
.L43:
	mov	rsp, rbx
.L25:
	cmp	BYTE PTR -105[rbp], 121
	je	.L45
	cmp	BYTE PTR -105[rbp], 89
	je	.L45
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"654997.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I assume you are using a Random Number Generator (R"
	.ascii	"NG) that cannot generate zeroes.\000"
	.align	2
.LC1:
	.ascii	"What is the largest number your RNG can generate?\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_rng_ceil
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rng_ceil, %function
get_rng_ceil:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	puts
	ldr	r0, .L4+8
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L4+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	get_rng_ceil, .-get_rng_ceil
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter an input from your RNG: \000"
	.align	2
.LC5:
	.ascii	"That's higher than your RNG is supposed to be able "
	.ascii	"to generate! Try again: \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_rng_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rng_input, %function
get_rng_input:
	@ 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]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	b	.L7
.L8:
	ldr	r0, .L11+12
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-12]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC4
	.word	.LC2
	.word	.LC5
	.size	get_rng_input, .-get_rng_input
	.section	.rodata
	.align	2
.LC7:
	.ascii	"How many bits long do you want your key to be?\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_key_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_key_size, %function
get_key_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC7
	.word	.LC2
	.size	get_key_size, .-get_key_size
	.align	2
	.global	get_bit_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_bit_length, %function
get_bit_length:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	mov	r2, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bhi	.L20
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_bit_length, .-get_bit_length
	.align	2
	.global	is_power_of_two
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_power_of_two, %function
is_power_of_two:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bhi	.L25
	mov	r3, #0
	b	.L24
.L27:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bhi	.L27
.L26:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L24:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_power_of_two, .-is_power_of_two
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Sorry, I can only use powers of 2!\000"
	.align	2
.LC10:
	.ascii	"%d of %d bits generated...\012\000"
	.align	2
.LC11:
	.ascii	"Your key is:\0120x\000"
	.align	2
.LC12:
	.ascii	"%X\000"
	.align	2
.LC13:
	.ascii	"\012Be sure to run this through newBitcoinKey in bi"
	.ascii	"tcoin.sh first if you are planning on using this to"
	.ascii	" seed a Bitcoin address!\000"
	.align	2
.LC14:
	.ascii	"Generate another? [y/n]\000"
	.align	2
.LC15:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #121
	strb	r3, [fp, #-57]
	b	.L29
.L30:
	ldr	r0, .L51+4
	bl	puts
.L29:
	bl	get_rng_ceil
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	is_power_of_two
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, [fp, #-36]
	bl	get_bit_length
	str	r0, [fp, #-32]
	b	.L31
.L48:
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-56]
	bl	get_key_size
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #7
	lsr	ip, r3, #3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	b	.L32
.L38:
	ldr	r0, [fp, #-36]
	bl	get_rng_input
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L33
.L37:
	ldr	r3, [fp, #-52]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-56]
	lsr	r3, r3, #3
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	lsl	r2, r2, #24
	asr	r1, r2, #24
	ldr	r2, [fp, #-56]
	and	r2, r2, #7
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	orr	r2, r1, r2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	and	r1, r2, #255
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
	b	.L35
.L34:
	ldr	r3, [fp, #-56]
	lsr	r3, r3, #3
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	lsl	r2, r2, #24
	asr	r1, r2, #24
	ldr	r2, [fp, #-56]
	and	r2, r2, #7
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	mvn	r2, r2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	and	r2, r2, r1
	lsl	r2, r2, #24
	asr	r2, r2, #24
	and	r1, r2, #255
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
.L35:
	ldr	r3, [fp, #-52]
	lsr	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L33:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bls	.L36
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L37
.L36:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-56]
	ldr	r0, .L51+8
	bl	printf
.L32:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L38
	ldr	r0, .L51+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L39
.L44:
	ldr	r3, [fp, #-40]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L41
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	bne	.L41
.L42:
	ldr	r1, [fp, #-44]
	ldr	r0, .L51+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L43
.L41:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	str	r3, [fp, #-44]
.L43:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L39:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bhi	.L44
	ldr	r0, .L51+20
	bl	puts
	ldr	r0, .L51+24
	bl	puts
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-57]
	b	.L45
.L47:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-57]
.L45:
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L46
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L46
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L46
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L47
.L46:
	mov	sp, r4
.L31:
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L48
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L48
	mov	r3, #0
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC15
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
