	.file	"200850.c"
	.intel_syntax noprefix
	.text
	.globl	num_rolls_to_target
	.type	num_rolls_to_target, @function
num_rolls_to_target:
.LFB6:
	.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, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	DWORD PTR -124[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -124[rbp]
	lea	edi, 1[rax]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, esi
	mov	rcx, rax
	mov	ebx, 0
	movsx	rax, esi
	lea	rcx, 0[0+rax*4]
	movsx	rax, edi
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, esi
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rbx, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rbx, rdx
	mov	rdx, rbx
	movsx	rax, esi
	mov	r10, rax
	mov	r11d, 0
	movsx	rax, edi
	mov	r8, rax
	mov	r9d, 0
	mov	rdx, r11
	imul	rdx, r8
	mov	rax, r9
	imul	rax, r10
	lea	rbx, [rdx+rax]
	mov	rax, r10
	mul	r8
	lea	r8, [rbx+rdx]
	mov	rdx, r8
	movsx	rdx, esi
	movsx	rax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rsi, rax
	and	rsi, -4096
	mov	rdx, rsp
	sub	rdx, rsi
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L6
.L7:
	mov	rsi, rcx
	shr	rsi, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -88[rbp], 1
.L6:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jle	.L7
	add	DWORD PTR -84[rbp], 1
.L5:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jle	.L8
	mov	DWORD PTR -92[rbp], 1
	jmp	.L9
.L10:
	mov	rsi, rcx
	shr	rsi, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, 1
	mov	DWORD PTR [rax+rdx*4], 1
	add	DWORD PTR -92[rbp], 1
.L9:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jle	.L10
	mov	DWORD PTR -96[rbp], 1
	jmp	.L11
.L17:
	mov	DWORD PTR -100[rbp], 2
	jmp	.L12
.L16:
	mov	DWORD PTR -104[rbp], 1
	jmp	.L13
.L15:
	mov	rsi, rcx
	shr	rsi, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	r8d, DWORD PTR [rax+rdx*4]
	mov	rsi, rcx
	shr	rsi, 2
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -104[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -100[rbp]
	lea	edi, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdi, edi
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rdi, rcx
	shr	rdi, 2
	lea	esi, [r8+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	r8, edx
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	imul	rdx, rdi
	add	rdx, r8
	mov	DWORD PTR [rax+rdx*4], esi
	mov	rsi, rcx
	shr	rsi, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rdi, rcx
	shr	rdi, 2
	movsx	rax, edx
	imul	rax, rax, 1152921497
	shr	rax, 32
	sar	eax, 28
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	imul	esi, eax, 1000000007
	mov	eax, edx
	sub	eax, esi
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, DWORD PTR -100[rbp]
	movsx	r8, esi
	mov	esi, DWORD PTR -96[rbp]
	movsx	rsi, esi
	imul	rsi, rdi
	add	rsi, r8
	mov	DWORD PTR [rdx+rsi*4], eax
	add	DWORD PTR -104[rbp], 1
.L13:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jg	.L14
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -100[rbp]
	sub	edx, 1
	cmp	eax, edx
	jge	.L15
.L14:
	add	DWORD PTR -100[rbp], 1
.L12:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jle	.L16
	add	DWORD PTR -96[rbp], 1
.L11:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jle	.L17
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rsp, QWORD PTR -136[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	num_rolls_to_target, .-num_rolls_to_target
	.globl	numRollsToTarget
	.type	numRollsToTarget, @function
numRollsToTarget:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	DWORD PTR -140[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rsi, rax
	mov	eax, DWORD PTR -140[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	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, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -64[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -100[rbp], 1
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	setle	al
	movzx	ecx, al
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -100[rbp], 1
.L27:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jle	.L28
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -104[rbp], 2
	jmp	.L29
.L35:
	mov	DWORD PTR -108[rbp], 1
	jmp	.L30
.L34:
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -116[rbp], 1
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1152921497
	shr	rdx, 32
	sar	edx, 28
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 1000000007
	sub	eax, edx
	mov	DWORD PTR -112[rbp], eax
	add	DWORD PTR -116[rbp], 1
.L31:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jg	.L32
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, DWORD PTR -116[rbp]
	mov	edx, DWORD PTR -104[rbp]
	sub	edx, 1
	cmp	eax, edx
	jge	.L33
.L32:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -108[rbp], 1
.L30:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jle	.L34
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -96[rbp], rax
	add	DWORD PTR -104[rbp], 1
.L29:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L35
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rsp, rsi
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	numRollsToTarget, .-numRollsToTarget
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, r12d
	mov	esi, ebx
	mov	edi, eax
	call	num_rolls_to_target
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"200850.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	num_rolls_to_target
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_rolls_to_target, %function
num_rolls_to_target:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #60
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	r3, [fp, #-72]
	add	ip, r3, #1
	ldr	r3, [fp, #-80]
	add	lr, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	sub	r2, lr, #1
	str	r2, [fp, #-40]
	mov	r2, ip
	mov	r6, r2
	mov	r7, #0
	mov	r2, lr
	mov	r4, r2
	mov	r5, #0
	mul	r1, r4, r7
	mul	r2, r6, r5
	add	r2, r1, r2
	umull	r0, r1, r6, r4
	add	r2, r2, r1
	mov	r1, r2
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r1, #5
	orr	r5, r5, r0, lsr #27
	lsl	r4, r0, #5
	mov	r2, ip
	mov	r6, r2
	mov	r7, #0
	mov	r2, lr
	mov	r4, r2
	mov	r5, #0
	mul	r1, r4, r7
	mul	r2, r6, r5
	add	r2, r1, r2
	umull	r0, r1, r6, r4
	add	r2, r2, r1
	mov	r1, r2
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r1, #5
	orr	r5, r5, r0, lsr #27
	lsl	r4, r0, #5
	mov	r2, ip
	mov	r1, lr
	mul	r2, r1, r2
	lsl	r2, r2, #2
	add	r2, r2, #7
	lsr	r2, r2, #3
	lsl	r2, r2, #3
	sub	sp, sp, r2
	mov	r2, sp
	add	r2, r2, #3
	lsr	r2, r2, #2
	lsl	r2, r2, #2
	str	r2, [fp, #-36]
	mov	r2, #0
	str	r2, [fp, #-48]
	b	.L2
.L5:
	mov	r2, #0
	str	r2, [fp, #-52]
	b	.L3
.L4:
	lsr	r1, r3, #2
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-48]
	mul	r0, r1, r0
	ldr	r1, [fp, #-52]
	add	r1, r0, r1
	mov	r0, #0
	str	r0, [r2, r1, lsl #2]
	ldr	r2, [fp, #-52]
	add	r2, r2, #1
	str	r2, [fp, #-52]
.L3:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-72]
	cmp	r1, r2
	ble	.L4
	ldr	r2, [fp, #-48]
	add	r2, r2, #1
	str	r2, [fp, #-48]
.L2:
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-80]
	cmp	r1, r2
	ble	.L5
	mov	r2, #1
	str	r2, [fp, #-56]
	b	.L6
.L7:
	lsr	r1, r3, #2
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-56]
	mul	r1, r0, r1
	add	r1, r1, #1
	mov	r0, #1
	str	r0, [r2, r1, lsl #2]
	ldr	r2, [fp, #-56]
	add	r2, r2, #1
	str	r2, [fp, #-56]
.L6:
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-76]
	cmp	r1, r2
	ble	.L7
	mov	r2, #1
	str	r2, [fp, #-60]
	b	.L8
.L14:
	mov	r2, #2
	str	r2, [fp, #-64]
	b	.L9
.L13:
	mov	r2, #1
	str	r2, [fp, #-68]
	b	.L10
.L12:
	lsr	r1, r3, #2
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-60]
	mul	r0, r1, r0
	ldr	r1, [fp, #-64]
	add	r1, r0, r1
	ldr	r0, [r2, r1, lsl #2]
	lsr	ip, r3, #2
	ldr	r1, [fp, #-60]
	ldr	r2, [fp, #-68]
	sub	lr, r1, r2
	ldr	r2, [fp, #-64]
	sub	r1, r2, #1
	ldr	r2, [fp, #-36]
	mul	ip, lr, ip
	add	r1, ip, r1
	ldr	r2, [r2, r1, lsl #2]
	lsr	r1, r3, #2
	add	r0, r0, r2
	ldr	r2, [fp, #-36]
	ldr	ip, [fp, #-60]
	mul	ip, r1, ip
	ldr	r1, [fp, #-64]
	add	r1, ip, r1
	str	r0, [r2, r1, lsl #2]
	lsr	r1, r3, #2
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-60]
	mul	r0, r1, r0
	ldr	r1, [fp, #-64]
	add	r1, r0, r1
	ldr	r1, [r2, r1, lsl #2]
	lsr	r0, r3, #2
	ldr	r2, .L17+4
	smull	ip, r2, r1, r2
	asr	ip, r2, #28
	asr	r2, r1, #31
	sub	r2, ip, r2
	ldr	ip, .L17+8
	mul	r2, ip, r2
	sub	r2, r1, r2
	ldr	r1, [fp, #-36]
	ldr	ip, [fp, #-60]
	mul	ip, r0, ip
	ldr	r0, [fp, #-64]
	add	r0, ip, r0
	str	r2, [r1, r0, lsl #2]
	ldr	r2, [fp, #-68]
	add	r2, r2, #1
	str	r2, [fp, #-68]
.L10:
	ldr	r1, [fp, #-68]
	ldr	r2, [fp, #-76]
	cmp	r1, r2
	bgt	.L11
	ldr	r1, [fp, #-60]
	ldr	r2, [fp, #-68]
	sub	r1, r1, r2
	ldr	r2, [fp, #-64]
	sub	r2, r2, #1
	cmp	r1, r2
	bge	.L12
.L11:
	ldr	r2, [fp, #-64]
	add	r2, r2, #1
	str	r2, [fp, #-64]
.L9:
	ldr	r1, [fp, #-64]
	ldr	r2, [fp, #-72]
	cmp	r1, r2
	ble	.L13
	ldr	r2, [fp, #-60]
	add	r2, r2, #1
	str	r2, [fp, #-60]
.L8:
	ldr	r1, [fp, #-60]
	ldr	r2, [fp, #-80]
	cmp	r1, r2
	ble	.L14
	lsr	r2, r3, #2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-80]
	mul	r1, r2, r1
	ldr	r2, [fp, #-72]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	mov	sp, r8
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	1152921497
	.word	1000000007
	.size	num_rolls_to_target, .-num_rolls_to_target
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	numRollsToTarget
	.syntax unified
	.arm
	.fpu softvfp
	.type	numRollsToTarget, %function
numRollsToTarget:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, sp
	mov	lr, r3
	ldr	r3, [fp, #-72]
	add	ip, r3, #1
	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, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-72]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-20]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L20
.L21:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L20:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-40]
	mov	r3, #2
	str	r3, [fp, #-44]
	b	.L22
.L28:
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L23
.L27:
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L24
.L26:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldr	r2, .L31+4
	smull	r1, r2, r3, r2
	asr	r1, r2, #28
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L31+8
	mul	r2, r1, r2
	sub	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L24:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bgt	.L25
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	sub	r2, r2, r3
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L26
.L25:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L23:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L27
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L22:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L28
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	sp, lr
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC1
	.word	1152921497
	.word	1000000007
	.size	numRollsToTarget, .-numRollsToTarget
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r4, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r5, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	num_rolls_to_target
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L35
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
