	.file	"114241.c"
	.intel_syntax noprefix
	.text
	.globl	DICE_POOL_MODE
	.bss
	.type	DICE_POOL_MODE, @object
	.size	DICE_POOL_MODE, 1
DICE_POOL_MODE:
	.zero	1
	.globl	VERBOSE_MODE
	.type	VERBOSE_MODE, @object
	.size	VERBOSE_MODE, 1
VERBOSE_MODE:
	.zero	1
	.globl	DEFAULT_TARGET_NUM
	.align 8
	.type	DEFAULT_TARGET_NUM, @object
	.size	DEFAULT_TARGET_NUM, 8
DEFAULT_TARGET_NUM:
	.zero	8
	.globl	TOKEN_DIE
	.section	.rodata
.LC0:
	.string	"d"
	.section	.data.rel.local,"aw"
	.align 8
	.type	TOKEN_DIE, @object
	.size	TOKEN_DIE, 8
TOKEN_DIE:
	.quad	.LC0
	.globl	VERSION_STR
	.section	.rodata
.LC1:
	.string	"v1.0.1\n"
	.section	.data.rel.local
	.align 8
	.type	VERSION_STR, @object
	.size	VERSION_STR, 8
VERSION_STR:
	.quad	.LC1
	.globl	HELP_STR
	.section	.rodata
	.align 8
.LC2:
	.ascii	"\nUSAGE\nroll [options] XdY[+A-B#Z] ...\n\tX is Number of Ro"
	.ascii	"lls\n\tY is the type of die\n\tA and B are optional incremen"
	.ascii	"ts and decrements, respectively\n\tZ is a Target Number. A r"
	.ascii	"oll will be successful if Result >= TN \n\nPlease note that "
	.ascii	"roll fails quietly - Incorrect input will simply be ignored\n"
	.ascii	"\nOPTIONS\n\t-p\tDice Pool mode: Each die of a roll is indep"
	.ascii	"endent of the others\n\t-v\tVerbose mode\n\t-t<NUM>\tDefault"
	.ascii	" Target Number: All rolls will be compared against it.An exp"
	.ascii	"licit"
	.string	" target number declaration will beused instead for that roll.\n\t-V\tPrints out the program's version\n\nEXAMPLES\n\troll 1d20+2-4#14 2d8#4\n\troll -p 6d6#5\n\nAUTHOR:\tJo\303\243o Victor Guimar\303\243es\nBugs and feedback should be sent to https://github.com/jvlsg/roll/issues \n\n"
	.section	.data.rel.local
	.align 8
	.type	HELP_STR, @object
	.size	HELP_STR, 8
HELP_STR:
	.quad	.LC2
	.text
	.globl	parse_modifiers
	.type	parse_modifiers, @function
parse_modifiers:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L7:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 45
	je	.L3
	cmp	eax, 45
	jg	.L8
	cmp	eax, 35
	je	.L5
	cmp	eax, 43
	jne	.L8
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L3:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L8:
	nop
.L6:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_modifiers, .-parse_modifiers
	.globl	random_in_range
	.type	random_in_range, @function
random_in_range:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	eax, 2147483647
	cqo
	idiv	QWORD PTR -32[rbp]
	mov	eax, 2147483647
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	nop
.L10:
	call	rand@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jge	.L10
	mov	rax, QWORD PTR -16[rbp]
	cqo
	idiv	QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	random_in_range, .-random_in_range
	.section	.rodata
.LC3:
	.string	"+%ld-%ld=%ld"
.LC4:
	.string	" -> %ld"
	.text
	.globl	apply_modifiers
	.type	apply_modifiers, @function
apply_modifiers:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	movzx	eax, BYTE PTR VERBOSE_MODE[rip]
	test	al, al
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	apply_modifiers, .-apply_modifiers
	.section	.rodata
.LC5:
	.string	"%ld"
.LC6:
	.string	" , "
.LC7:
	.string	" | %ld Successes"
.LC8:
	.string	" | Success"
.LC9:
	.string	" | Fail"
.LC10:
	.string	"]\t"
	.text
	.globl	roll_dice
	.type	roll_dice, @function
roll_dice:
.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, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	cmp	QWORD PTR -88[rbp], 0
	setg	al
	mov	BYTE PTR -42[rbp], al
	cmp	QWORD PTR -72[rbp], 0
	jg	.L17
	cmp	QWORD PTR -80[rbp], 0
	jle	.L18
.L17:
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	mov	BYTE PTR -41[rbp], al
	and	BYTE PTR -41[rbp], 1
	mov	edi, 91
	call	putchar@PLT
	movzx	eax, BYTE PTR DICE_POOL_MODE[rip]
	test	al, al
	je	.L20
	mov	QWORD PTR -24[rbp], 0
	jmp	.L21
.L25:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	random_in_range
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -41[rbp], 0
	je	.L22
	lea	rdx, -40[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	apply_modifiers
.L22:
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -88[rbp], rax
	jg	.L23
	add	QWORD PTR -32[rbp], 1
.L23:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	cmp	QWORD PTR -56[rbp], rax
	jle	.L24
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	QWORD PTR -40[rbp], 0
	add	QWORD PTR -24[rbp], 1
.L21:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jl	.L25
	cmp	BYTE PTR -42[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L20:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	random_in_range
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	add	QWORD PTR -16[rbp], 1
.L27:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jl	.L28
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -41[rbp], 0
	je	.L29
	lea	rdx, -40[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	apply_modifiers
.L29:
	cmp	BYTE PTR -42[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -88[rbp], rax
	jg	.L30
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L30:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR VERBOSE_MODE[rip]
	test	al, al
	je	.L34
	mov	edi, 10
	call	putchar@PLT
	nop
.L34:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	roll_dice, .-roll_dice
	.section	.rodata
	.align 8
.LC11:
	.string	"#rolls %ld \td%ld\tinc %ld\t dec %ld\t tn %ld\n"
	.text
	.globl	parse_roll
	.type	parse_roll, @function
parse_roll:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rdx, QWORD PTR TOKEN_DIE[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L36
	mov	eax, 1
	jmp	.L43
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L38
	mov	eax, 1
	jmp	.L43
.L38:
	mov	rax, QWORD PTR TOKEN_DIE[rip]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L39
	mov	eax, 1
	jmp	.L43
.L39:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jg	.L40
	mov	eax, 1
	jmp	.L43
.L40:
	lea	rcx, -40[rbp]
	lea	rdx, -48[rbp]
	lea	rsi, -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	parse_modifiers
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jg	.L41
	mov	rax, QWORD PTR DEFAULT_TARGET_NUM[rip]
	mov	QWORD PTR -40[rbp], rax
.L41:
	movzx	eax, BYTE PTR VERBOSE_MODE[rip]
	test	al, al
	je	.L42
	mov	rdi, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L42:
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	roll_dice
	mov	eax, 0
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	parse_roll, .-parse_roll
	.section	.rodata
.LC12:
	.string	"Default Target Number %ld\n"
.LC13:
	.string	"%s"
.LC14:
	.string	"pVvt:h"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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
	jmp	.L46
.L56:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 86
	cmp	eax, 32
	ja	.L61
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L49[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L49[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L49:
	.long	.L53-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L52-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L51-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L61-.L49
	.long	.L50-.L49
	.long	.L61-.L49
	.long	.L48-.L49
	.text
.L51:
	mov	BYTE PTR DICE_POOL_MODE[rip], 1
	jmp	.L46
.L48:
	mov	BYTE PTR VERBOSE_MODE[rip], 1
	jmp	.L46
.L50:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR DEFAULT_TARGET_NUM[rip], rax
	movzx	eax, BYTE PTR VERBOSE_MODE[rip]
	test	al, al
	je	.L46
	mov	rax, QWORD PTR DEFAULT_TARGET_NUM[rip]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L46
.L52:
	mov	rax, QWORD PTR HELP_STR[rip]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L55
.L53:
	mov	rax, QWORD PTR VERSION_STR[rip]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L55
.L61:
	nop
.L46:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L56
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L57
	mov	rax, QWORD PTR HELP_STR[rip]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L57:
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	parse_roll
	add	DWORD PTR -8[rbp], 1
.L58:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L59
	movzx	eax, BYTE PTR VERBOSE_MODE[rip]
	xor	eax, 1
	test	al, al
	je	.L60
	mov	edi, 10
	call	putchar@PLT
.L60:
	mov	eax, 0
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"114241.c"
	.text
	.global	DICE_POOL_MODE
	.bss
	.type	DICE_POOL_MODE, %object
	.size	DICE_POOL_MODE, 1
DICE_POOL_MODE:
	.space	1
	.global	VERBOSE_MODE
	.type	VERBOSE_MODE, %object
	.size	VERBOSE_MODE, 1
VERBOSE_MODE:
	.space	1
	.global	DEFAULT_TARGET_NUM
	.align	3
	.type	DEFAULT_TARGET_NUM, %object
	.size	DEFAULT_TARGET_NUM, 8
DEFAULT_TARGET_NUM:
	.space	8
	.global	TOKEN_DIE
	.section	.rodata
	.align	2
.LC0:
	.ascii	"d\000"
	.data
	.align	2
	.type	TOKEN_DIE, %object
	.size	TOKEN_DIE, 4
TOKEN_DIE:
	.word	.LC0
	.global	VERSION_STR
	.section	.rodata
	.align	2
.LC1:
	.ascii	"v1.0.1\012\000"
	.data
	.align	2
	.type	VERSION_STR, %object
	.size	VERSION_STR, 4
VERSION_STR:
	.word	.LC1
	.global	HELP_STR
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012USAGE\012roll [options] XdY[+A-B#Z] ...\012\011"
	.ascii	"X is Number of Rolls\012\011Y is the type of die\012"
	.ascii	"\011A and B are optional increments and decrements,"
	.ascii	" respectively\012\011Z is a Target Number. A roll w"
	.ascii	"ill be successful if Result >= TN \012\012Please no"
	.ascii	"te that roll fails quietly - Incorrect input will s"
	.ascii	"imply be ignored\012\012OPTIONS\012\011-p\011Dice P"
	.ascii	"ool mode: Each die of a roll is independent of the "
	.ascii	"others\012\011-v\011Verbose mode\012\011-t<NUM>\011"
	.ascii	"Default Target Number: All rolls will be compared a"
	.ascii	"gainst it.An explicit target number declaration wil"
	.ascii	"l beused instead for that roll.\012\011-V\011Prints"
	.ascii	" out the program's version\012\012EXAMPLES\012\011r"
	.ascii	"oll 1d20+2-4#14 2d8#4\012\011roll -p 6d6#5\012\012A"
	.ascii	"UTHOR:\011Jo\303\243o Victor Guimar\303\243es\012Bu"
	.ascii	"gs and feedback should be sent to https://github.co"
	.ascii	"m/jvlsg/roll/issues \012\012\000"
	.data
	.align	2
	.type	HELP_STR, %object
	.size	HELP_STR, 4
HELP_STR:
	.word	.LC2
	.text
	.align	2
	.global	parse_modifiers
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_modifiers, %function
parse_modifiers:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L7:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L3
	cmp	r3, #45
	bgt	.L8
	cmp	r3, #35
	beq	.L5
	cmp	r3, #43
	bne	.L8
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-44]
	stm	r3, {r4-r5}
	b	.L6
.L3:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	ldr	r3, [fp, #-48]
	stm	r3, {r6-r7}
	b	.L6
.L5:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r1, [fp, #-52]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L6
.L8:
	nop
.L6:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	parse_modifiers, .-parse_modifiers
	.global	__aeabi_ldivmod
	.align	2
	.global	random_in_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_in_range, %function
random_in_range:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mvn	r0, #-2147483648
	mov	r1, #0
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	mov	r0, r2
	mov	r1, r3
	mvn	r2, #-2147483648
	mov	r3, #0
	subs	r4, r2, r0
	sbc	r5, r3, r1
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	nop
.L10:
	bl	rand
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L10
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	adds	r6, r2, #1
	adc	r7, r3, #0
	mov	r2, r6
	mov	r3, r7
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	random_in_range, .-random_in_range
	.section	.rodata
	.align	2
.LC3:
	.ascii	"+%ld-%ld=%ld\000"
	.align	2
.LC4:
	.ascii	" -> %ld\000"
	.text
	.align	2
	.global	apply_modifiers
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_modifiers, %function
apply_modifiers:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #4]
	ldmia	r3, {r2-r3}
	sub	r7, fp, #36
	ldmia	r7, {r6-r7}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	subs	r4, r6, r0
	sbc	r5, r7, r1
	adds	r8, r2, r4
	adc	r9, r3, r5
	ldr	r3, [fp, #4]
	stm	r3, {r8-r9}
	ldr	r3, .L16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #4]
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+4
	bl	printf
	b	.L12
.L13:
	ldr	r3, [fp, #4]
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+8
	bl	printf
	nop
.L12:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L17:
	.align	2
.L16:
	.word	VERBOSE_MODE
	.word	.LC3
	.word	.LC4
	.size	apply_modifiers, .-apply_modifiers
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%ld\000"
	.align	2
.LC6:
	.ascii	" , \000"
	.align	2
.LC7:
	.ascii	" | %ld Successes\000"
	.align	2
.LC8:
	.ascii	" | Success\000"
	.align	2
.LC9:
	.ascii	" | Fail\000"
	.align	2
.LC10:
	.ascii	"]\011\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	roll_dice
	.syntax unified
	.arm
	.fpu softvfp
	.type	roll_dice, %function
roll_dice:
	@ args = 24, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #96
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	movge	r3, #1
	movlt	r3, #0
	strb	r3, [fp, #-70]
	ldmib	fp, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L19
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	blt	.L20
.L19:
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]
	and	r3, r3, #1
	strb	r3, [fp, #-69]
	mov	r0, #91
	bl	putchar
	ldr	r3, .L37+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L23
.L27:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	mov	r0, #1
	mov	r1, #0
	bl	random_in_range
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r8, r0, r2
	adc	r9, r1, r3
	str	r8, [fp, #-68]
	str	r9, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L37+8
	bl	printf
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #68
	str	r3, [sp]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	apply_modifiers
.L24:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L25
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
.L25:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-100]
	adc	r3, r3, #0
	str	r3, [fp, #-96]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L26
	ldr	r0, .L37+12
	bl	printf
.L26:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-116]
	adc	r3, r3, #0
	str	r3, [fp, #-112]
	sub	r4, fp, #116
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L23:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L27
	ldrb	r3, [fp, #-70]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L37+16
	bl	printf
	b	.L28
.L22:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L29
.L30:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	mov	r0, #1
	mov	r1, #0
	bl	random_in_range
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-68]
	str	r5, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
.L29:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L30
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L37+8
	bl	printf
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	sub	r3, fp, #68
	str	r3, [sp]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	apply_modifiers
.L31:
	ldrb	r3, [fp, #-70]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L32
	ldr	r0, .L37+20
	bl	printf
	b	.L28
.L32:
	ldr	r0, .L37+24
	bl	printf
.L28:
	ldr	r0, .L37+28
	bl	printf
	ldr	r3, .L37+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	mov	r0, #10
	bl	putchar
	nop
.L36:
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC11
	.word	DICE_POOL_MODE
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	VERBOSE_MODE
	.size	roll_dice, .-roll_dice
	.section	.rodata
	.align	2
.LC12:
	.ascii	"#rolls %ld \011d%ld\011inc %ld\011 dec %ld\011 tn %"
	.ascii	"ld\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_roll
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_roll, %function
parse_roll:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	str	r0, [fp, #-72]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, .L49+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	strtok
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L40
	mov	r3, #1
	b	.L47
.L40:
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-64]
	bl	strtoll
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L42
	mov	r3, #1
	b	.L47
.L42:
	ldr	r3, .L49+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L43
	mov	r3, #1
	b	.L47
.L43:
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-64]
	bl	strtoll
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L44
	mov	r3, #1
	b	.L47
.L44:
	sub	r3, fp, #44
	sub	r2, fp, #52
	sub	r1, fp, #60
	ldr	r0, [fp, #-64]
	bl	parse_modifiers
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L45
	ldr	r3, .L49+8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L45:
	ldr	r3, .L49+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	str	r4, [sp, #24]
	str	r5, [sp, #28]
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L49+16
	bl	printf
.L46:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	roll_dice
	mov	r3, #0
.L47:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC13
	.word	TOKEN_DIE
	.word	DEFAULT_TARGET_NUM
	.word	VERBOSE_MODE
	.word	.LC12
	.size	parse_roll, .-parse_roll
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Default Target Number %ld\012\000"
	.align	2
.LC15:
	.ascii	"%s\000"
	.align	2
.LC16:
	.ascii	"pVvt:h\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	b	.L52
.L62:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #86
	cmp	r3, #32
	ldrls	pc, [pc, r3, asl #2]
	b	.L67
.L55:
	.word	.L59
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L58
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L57
	.word	.L67
	.word	.L67
	.word	.L67
	.word	.L56
	.word	.L67
	.word	.L54
.L57:
	ldr	r3, .L68
	mov	r2, #1
	strb	r2, [r3]
	b	.L52
.L54:
	ldr	r3, .L68+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L52
.L56:
	ldr	r3, .L68+8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L68+12
	stm	r1, {r2-r3}
	ldr	r3, .L68+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L68+12
	ldmia	r3, {r2-r3}
	ldr	r0, .L68+16
	bl	printf
	b	.L52
.L58:
	ldr	r3, .L68+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+24
	bl	printf
	mov	r3, #0
	b	.L61
.L59:
	ldr	r3, .L68+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+24
	bl	printf
	mov	r3, #0
	b	.L61
.L67:
	nop
.L52:
	ldr	r2, .L68+32
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L62
	ldr	r3, .L68+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L63
	ldr	r3, .L68+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+24
	bl	printf
.L63:
	ldr	r3, .L68+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L64
.L65:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	parse_roll
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L64:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L65
	ldr	r3, .L68+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L66
	mov	r0, #10
	bl	putchar
.L66:
	mov	r3, #0
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	DICE_POOL_MODE
	.word	VERBOSE_MODE
	.word	optarg
	.word	DEFAULT_TARGET_NUM
	.word	.LC14
	.word	HELP_STR
	.word	.LC15
	.word	VERSION_STR
	.word	.LC16
	.word	optind
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
