	.file	"745664.c"
	.intel_syntax noprefix
	.text
	.globl	rockpapersizer
	.type	rockpapersizer, @function
rockpapersizer:
.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	.L3
.L2:
	cmp	BYTE PTR -4[rbp], 114
	jne	.L4
	cmp	BYTE PTR -8[rbp], 115
	jne	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	cmp	BYTE PTR -4[rbp], 115
	jne	.L5
	cmp	BYTE PTR -8[rbp], 114
	jne	.L5
	mov	eax, 1
	jmp	.L3
.L5:
	cmp	BYTE PTR -4[rbp], 114
	jne	.L6
	cmp	BYTE PTR -8[rbp], 112
	jne	.L6
	mov	eax, 1
	jmp	.L3
.L6:
	cmp	BYTE PTR -4[rbp], 112
	jne	.L7
	cmp	BYTE PTR -8[rbp], 114
	jne	.L7
	mov	eax, -1
	jmp	.L3
.L7:
	cmp	BYTE PTR -4[rbp], 115
	jne	.L8
	cmp	BYTE PTR -8[rbp], 112
	jne	.L8
	mov	eax, -1
	jmp	.L3
.L8:
	cmp	BYTE PTR -4[rbp], 112
	jne	.L10
	cmp	BYTE PTR -8[rbp], 115
.L10:
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rockpapersizer, .-rockpapersizer
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter 'r' for rock, 'p' for paper and 's' for sizer"
.LC1:
	.string	"%c"
.LC2:
	.string	"Game draw!"
.LC3:
	.string	"You win!"
.LC4:
	.string	"You Lose!"
	.align 8
.LC5:
	.string	"You chose %c and computer chose %c. "
	.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
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 32
	jg	.L12
	mov	BYTE PTR -17[rbp], 114
	jmp	.L13
.L12:
	cmp	DWORD PTR -16[rbp], 33
	jle	.L14
	cmp	DWORD PTR -16[rbp], 65
	jg	.L14
	mov	BYTE PTR -17[rbp], 112
	jmp	.L13
.L14:
	mov	BYTE PTR -17[rbp], 115
.L13:
	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	rockpapersizer
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L17
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L16
.L17:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L16:
	movsx	edx, BYTE PTR -17[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"745664.c"
	.text
	.align	2
	.global	rockpapersizer
	.syntax unified
	.arm
	.fpu softvfp
	.type	rockpapersizer, %function
rockpapersizer:
	@ 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	.L3
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L4
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L4
	mvn	r3, #0
	b	.L3
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L5
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L5
	mov	r3, #1
	b	.L3
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L6
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L6
	mov	r3, #1
	b	.L3
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L7
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L7
	mvn	r3, #0
	b	.L3
.L7:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L8
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L8
	mvn	r3, #0
	b	.L3
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L10
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #115
.L10:
	mov	r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rockpapersizer, .-rockpapersizer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter 'r' for rock, 'p' for paper and 's' for sizer"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"Game draw!\000"
	.align	2
.LC3:
	.ascii	"You win!\000"
	.align	2
.LC4:
	.ascii	"You Lose!\000"
	.align	2
.LC5:
	.ascii	"You chose %c and computer chose %c. \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, .L20
	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, .L20+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #32
	bgt	.L12
	mov	r3, #114
	strb	r3, [fp, #-17]
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #33
	ble	.L14
	ldr	r3, [fp, #-16]
	cmp	r3, #65
	bgt	.L14
	mov	r3, #112
	strb	r3, [fp, #-17]
	b	.L13
.L14:
	mov	r3, #115
	strb	r3, [fp, #-17]
.L13:
	ldr	r0, .L20+8
	bl	puts
	sub	r3, fp, #18
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	rockpapersizer
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L20+16
	bl	puts
	b	.L16
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L17
	ldr	r0, .L20+20
	bl	puts
	b	.L16
.L17:
	ldr	r0, .L20+24
	bl	puts
.L16:
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L20+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	1374389535
	.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
