	.file	"48576310.c"
	.intel_syntax noprefix
	.text
	.globl	usage
	.section	.rodata
	.align 8
.LC0:
	.ascii	"rand:  simple random integer generator using "
	.string	"/dev/random\nrand [-hdxrun] [[min] max]\n-h\tThis help\n-d/-x\tOutput in decimal (default) or hexadecimal\n-u/-r\tUse /dev/urandom (default) or /dev/random\n-n num\tOutput num numbers (default 1)\nmin\tMinimum number (default 0)\nmax\tMaximum number (default UINT_MAX)\n"
	.section	.data.rel.local,"aw"
	.align 8
	.type	usage, @object
	.size	usage, 8
usage:
	.quad	.LC0
	.text
	.globl	die
	.type	die, @function
die:
.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	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC1:
	.string	"/dev/urandom"
.LC2:
	.string	"/dev/random"
.LC3:
	.string	"dhn:rux"
.LC4:
	.string	"Bad argument list.\n"
.LC5:
	.string	"Internal error 1"
.LC6:
	.string	"%u\n"
.LC7:
	.string	"r"
	.align 8
.LC8:
	.string	"Could not open random file for reading"
.LC9:
	.string	"EOF"
.LC10:
	.string	"%x\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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -144[rbp], -1
	mov	DWORD PTR -148[rbp], 1
	mov	DWORD PTR -136[rbp], 10
	mov	DWORD PTR -132[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L3
.L10:
	cmp	DWORD PTR -108[rbp], 104
	jne	.L4
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
	jmp	.L3
.L4:
	cmp	DWORD PTR -108[rbp], 114
	jne	.L5
	lea	rax, .LC2[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L3
.L5:
	cmp	DWORD PTR -108[rbp], 117
	jne	.L6
	lea	rax, .LC1[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L3
.L6:
	cmp	DWORD PTR -108[rbp], 110
	jne	.L7
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -148[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
	jmp	.L3
.L7:
	cmp	DWORD PTR -108[rbp], 100
	jne	.L8
	mov	DWORD PTR -136[rbp], 10
	jmp	.L3
.L8:
	cmp	DWORD PTR -108[rbp], 120
	jne	.L9
	mov	DWORD PTR -136[rbp], 16
	jmp	.L3
.L9:
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
.L3:
	mov	rcx, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -164[rbp]
	lea	rdx, .LC3[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L10
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 2
	cmp	DWORD PTR -104[rbp], eax
	jge	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 1
	cmp	DWORD PTR -104[rbp], eax
	jne	.L13
	mov	DWORD PTR -132[rbp], 1
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -144[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 2
	cmp	DWORD PTR -104[rbp], eax
	jne	.L14
	mov	DWORD PTR -132[rbp], 1
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -144[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	die
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	je	.L12
	lea	rdi, .LC5[rip]
	call	die
.L12:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	jbe	.L15
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -144[rbp], eax
.L15:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	jne	.L16
	mov	DWORD PTR -128[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -128[rbp], 1
.L17:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L18
	mov	eax, 0
	jmp	.L19
.L16:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L20
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L19
.L20:
	mov	DWORD PTR -96[rbp], 4
	mov	eax, DWORD PTR -96[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 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
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	jmp	.L24
.L33:
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L26
	lea	rdi, .LC9[rip]
	call	die
.L26:
	mov	eax, DWORD PTR -92[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -116[rbp], 1
.L25:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L27
	mov	DWORD PTR -112[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -124[rbp], eax
	add	DWORD PTR -112[rbp], 1
.L28:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L29
	cmp	DWORD PTR -132[rbp], 0
	je	.L30
	mov	eax, DWORD PTR -144[rbp]
	sub	eax, DWORD PTR -140[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, DWORD PTR -140[rbp]
	add	eax, edx
	mov	DWORD PTR -124[rbp], eax
.L30:
	cmp	DWORD PTR -136[rbp], 10
	jne	.L31
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L32
.L31:
	cmp	DWORD PTR -136[rbp], 16
	jne	.L32
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	cmp	DWORD PTR -148[rbp], 0
	jle	.L24
	add	DWORD PTR -120[rbp], 1
.L24:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L33
	mov	eax, 0
	mov	rsp, rbx
.L19:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"48576310.c"
	.text
	.global	usage
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rand:  simple random integer generator using /dev/r"
	.ascii	"andom\012rand [-hdxrun] [[min] max]\012-h\011This h"
	.ascii	"elp\012-d/-x\011Output in decimal (default) or hexa"
	.ascii	"decimal\012-u/-r\011Use /dev/urandom (default) or /"
	.ascii	"dev/random\012-n num\011Output num numbers (default"
	.ascii	" 1)\012min\011Minimum number (default 0)\012max\011"
	.ascii	"Maximum number (default UINT_MAX)\012\000"
	.data
	.align	2
	.type	usage, %object
	.size	usage, 4
usage:
	.word	.LC0
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fputs
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/urandom\000"
	.align	2
.LC2:
	.ascii	"/dev/random\000"
	.align	2
.LC3:
	.ascii	"dhn:rux\000"
	.align	2
.LC4:
	.ascii	"Bad argument list.\012\000"
	.align	2
.LC5:
	.ascii	"Internal error 1\000"
	.align	2
.LC6:
	.ascii	"%u\012\000"
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"Could not open random file for reading\000"
	.align	2
.LC9:
	.ascii	"EOF\000"
	.global	__aeabi_uidivmod
	.align	2
.LC10:
	.ascii	"%x\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-84]
	mvn	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-92]
	mov	r3, #10
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L34+4
	str	r3, [fp, #-72]
	b	.L5
.L12:
	ldr	r3, [fp, #-48]
	cmp	r3, #104
	bne	.L6
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L5
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #114
	bne	.L7
	ldr	r3, .L34+12
	str	r3, [fp, #-72]
	b	.L5
.L7:
	ldr	r3, [fp, #-48]
	cmp	r3, #117
	bne	.L8
	ldr	r3, .L34+4
	str	r3, [fp, #-72]
	b	.L5
.L8:
	ldr	r3, [fp, #-48]
	cmp	r3, #110
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L34+16
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-92]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L5
.L9:
	ldr	r3, [fp, #-48]
	cmp	r3, #100
	bne	.L10
	mov	r3, #10
	str	r3, [fp, #-80]
	b	.L5
.L10:
	ldr	r3, [fp, #-48]
	cmp	r3, #120
	bne	.L11
	mov	r3, #16
	str	r3, [fp, #-80]
	b	.L5
.L11:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
.L5:
	ldr	r2, .L34+20
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-96]
	bl	getopt
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L12
	ldr	r3, .L34+24
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-96]
	sub	r3, r3, #2
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L13
	ldr	r3, .L34+28
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L34+32
	bl	fwrite
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L14
.L13:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L15
	mov	r3, #1
	str	r3, [fp, #-76]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-88]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L14
.L15:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #2
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L16
	mov	r3, #1
	str	r3, [fp, #-76]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-88]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	die
	b	.L14
.L16:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	beq	.L14
	ldr	r0, .L34+36
	bl	die
.L14:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bls	.L17
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-88]
.L17:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bne	.L18
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L19
.L20:
	ldr	r1, [fp, #-84]
	ldr	r0, .L34+40
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L19:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	b	.L21
.L18:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L34+44
	ldr	r0, [fp, #-72]
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L34+48
	bl	perror
	mov	r3, #1
	b	.L21
.L22:
	mov	r3, #4
	str	r3, [fp, #-32]
	ldr	ip, [fp, #-32]
	mov	r3, sp
	mov	r4, r3
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L23
.L32:
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L24
.L26:
	ldr	r0, [fp, #-36]
	bl	fgetc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L34+52
	bl	die
.L25:
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L24:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L26
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L27
.L28:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	orr	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L27:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L29
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-64]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-84]
	add	r3, r3, r2
	str	r3, [fp, #-64]
.L29:
	ldr	r3, [fp, #-80]
	cmp	r3, #10
	bne	.L30
	ldr	r1, [fp, #-64]
	ldr	r0, .L34+40
	bl	printf
	b	.L31
.L30:
	ldr	r3, [fp, #-80]
	cmp	r3, #16
	bne	.L31
	ldr	r1, [fp, #-64]
	ldr	r0, .L34+56
	bl	printf
.L31:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	ble	.L23
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L23:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L32
	mov	r3, #0
	mov	sp, r4
.L21:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC11
	.word	.LC1
	.word	usage
	.word	.LC2
	.word	optarg
	.word	.LC3
	.word	optind
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
