	.file	"165765479.c"
	.intel_syntax noprefix
	.text
	.globl	fun
	.type	fun, @function
fun:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -4[rbp], dl
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	cmp	al, BYTE PTR -8[rbp]
	jne	.L2
	mov	eax, 0
	jmp	.L1
.L2:
	cmp	BYTE PTR -4[rbp], 97
	jne	.L4
	cmp	BYTE PTR -8[rbp], 98
	jne	.L4
	mov	eax, -1
	jmp	.L1
.L4:
	cmp	BYTE PTR -4[rbp], 98
	jne	.L5
	cmp	BYTE PTR -8[rbp], 97
	jne	.L5
	mov	eax, 1
	jmp	.L1
.L5:
	cmp	BYTE PTR -4[rbp], 97
	jne	.L6
	cmp	BYTE PTR -8[rbp], 99
	jne	.L6
	mov	eax, 1
	jmp	.L1
.L6:
	cmp	BYTE PTR -4[rbp], 99
	jne	.L7
	cmp	BYTE PTR -8[rbp], 97
	jne	.L7
	mov	eax, -1
	jmp	.L1
.L7:
	cmp	BYTE PTR -4[rbp], 98
	jne	.L8
	cmp	BYTE PTR -8[rbp], 99
	jne	.L8
	mov	eax, -1
	jmp	.L1
.L8:
	cmp	BYTE PTR -4[rbp], 99
	jne	.L9
	cmp	BYTE PTR -8[rbp], 98
	jne	.L9
	mov	eax, 1
	jmp	.L1
.L9:
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fun, .-fun
	.section	.rodata
	.align 8
.LC0:
	.string	"enter 'a' for stone, 'b' for paper, 'c' for scissor :- "
.LC1:
	.string	"%c"
	.align 8
.LC2:
	.string	"you chose %c and computer chose %c\n"
.LC3:
	.string	"game draw"
.LC4:
	.string	"you win"
.LC5:
	.string	" you lose"
	.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
	sub	rsp, 32
	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
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 3
	jg	.L11
	mov	BYTE PTR -17[rbp], 97
	jmp	.L12
.L11:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L13
	cmp	DWORD PTR -16[rbp], 6
	jg	.L13
	mov	BYTE PTR -17[rbp], 98
	jmp	.L12
.L13:
	mov	BYTE PTR -17[rbp], 99
.L12:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsx	edx, BYTE PTR -17[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	fun
	mov	DWORD PTR -12[rbp], eax
	movsx	edx, BYTE PTR -17[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 0
	jne	.L14
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L15
.L14:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L16
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L15
.L16:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.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	"165765479.c"
	.text
	.align	2
	.global	fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun, %function
fun:
	@ 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
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-5]
	mov	r3, r2
	strb	r3, [fp, #-6]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L2
	mov	r3, #0
	b	.L1
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L4
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L4
	mvn	r3, #0
	b	.L1
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L5
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L5
	mov	r3, #1
	b	.L1
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L6
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L6
	mov	r3, #1
	b	.L1
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L7
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L7
	mvn	r3, #0
	b	.L1
.L7:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L8
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L8
	mvn	r3, #0
	b	.L1
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L9
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L9
	mov	r3, #1
	b	.L1
.L9:
.L1:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fun, .-fun
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter 'a' for stone, 'b' for paper, 'c' for scissor"
	.ascii	" :- \000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"you chose %c and computer chose %c\012\000"
	.align	2
.LC3:
	.ascii	"game draw\000"
	.align	2
.LC4:
	.ascii	"you win\000"
	.align	2
.LC5:
	.ascii	" you lose\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L19+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L11
	mov	r3, #97
	strb	r3, [fp, #-17]
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L13
	ldr	r3, [fp, #-16]
	cmp	r3, #6
	bgt	.L13
	mov	r3, #98
	strb	r3, [fp, #-17]
	b	.L12
.L13:
	mov	r3, #99
	strb	r3, [fp, #-17]
.L12:
	ldr	r0, .L19+8
	bl	puts
	sub	r3, fp, #18
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	fun
	str	r0, [fp, #-12]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L19+20
	bl	puts
	b	.L15
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L16
	ldr	r0, .L19+24
	bl	puts
	b	.L15
.L16:
	ldr	r0, .L19+28
	bl	printf
.L15:
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.word	1717986919
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
