	.file	"218894166.c"
	.intel_syntax noprefix
	.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, 16
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 879961287
	shr	rdx, 32
	sar	edx, 11
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 9996
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 5[rdx]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	game
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	rules
	.type	rules, @function
rules:
.LFB7:
	.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
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	jmp	.L5
.L4:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, 1
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rules, .-rules
	.section	.rodata
.LC0:
	.string	"%d \n"
	.text
	.globl	game
	.type	game, @function
game:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	rules
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	je	.L7
	cmp	DWORD PTR -4[rbp], 1
	jne	.L8
.L7:
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L8:
	cmp	DWORD PTR -20[rbp], 2
	je	.L10
	cmp	DWORD PTR -4[rbp], 2
	jne	.L11
.L10:
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L11:
	cmp	DWORD PTR -20[rbp], 4
	je	.L12
	cmp	DWORD PTR -4[rbp], 4
	jne	.L13
.L12:
	mov	esi, 4
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	game
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	game, .-game
	.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	"218894166.c"
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L3
	smull	r1, r3, r2, r3
	asr	r1, r3, #11
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L3+4
	mul	r3, r1, r3
	sub	r3, r2, r3
	add	r3, r3, #5
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	game
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	879961287
	.word	9996
	.size	main, .-main
	.align	2
	.global	rules
	.syntax unified
	.arm
	.fpu softvfp
	.type	rules, %function
rules:
	@ 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]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	b	.L7
.L6:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, #1
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rules, .-rules
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \012\000"
	.text
	.align	2
	.global	game
	.syntax unified
	.arm
	.fpu softvfp
	.type	game, %function
game:
	@ 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	r0, [fp, #-16]
	bl	rules
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L10
.L9:
	mov	r1, #1
	ldr	r0, .L16
	bl	printf
	b	.L8
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L12
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L13
.L12:
	mov	r1, #2
	ldr	r0, .L16
	bl	printf
	mov	r1, #1
	ldr	r0, .L16
	bl	printf
	b	.L8
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	beq	.L14
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L15
.L14:
	mov	r1, #4
	ldr	r0, .L16
	bl	printf
	mov	r1, #2
	ldr	r0, .L16
	bl	printf
	mov	r1, #1
	ldr	r0, .L16
	bl	printf
	b	.L8
.L15:
	ldr	r1, [fp, #-8]
	ldr	r0, .L16
	bl	printf
	ldr	r0, [fp, #-8]
	bl	game
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	game, .-game
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
