	.file	"826972.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Prob04.in.txt"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"ROCK"
.LC4:
	.string	"PAPER"
.LC5:
	.string	"SCISSORS"
.LC6:
	.string	"NO WINNER"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L2
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -33[rbp], al
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L3
.L7:
	cmp	BYTE PTR -33[rbp], 82
	jne	.L4
	add	DWORD PTR -28[rbp], 1
	jmp	.L5
.L4:
	cmp	BYTE PTR -33[rbp], 80
	jne	.L6
	add	DWORD PTR -24[rbp], 1
	jmp	.L5
.L6:
	cmp	BYTE PTR -33[rbp], 83
	jne	.L5
	add	DWORD PTR -20[rbp], 1
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -33[rbp], al
.L3:
	cmp	BYTE PTR -33[rbp], 10
	jne	.L7
	cmp	DWORD PTR -28[rbp], 1
	jne	.L8
	cmp	DWORD PTR -24[rbp], 0
	jne	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	cmp	DWORD PTR -24[rbp], 1
	jne	.L10
	cmp	DWORD PTR -20[rbp], 0
	jne	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L11
	cmp	DWORD PTR -28[rbp], 0
	jne	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L9:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
.L2:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jg	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"826972.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Prob04.in.txt\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"ROCK\000"
	.align	2
.LC4:
	.ascii	"PAPER\000"
	.align	2
.LC5:
	.ascii	"SCISSORS\000"
	.align	2
.LC6:
	.ascii	"NO WINNER\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	fopen
	str	r0, [fp, #-12]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L15+12
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	b	.L2
.L12:
	ldr	r0, [fp, #-12]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L7:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L4
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L5
.L4:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L6
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r0, [fp, #-12]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-29]
.L3:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L7
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L8
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L15+16
	bl	puts
	b	.L9
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L15+20
	bl	puts
	b	.L9
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L11
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L15+24
	bl	puts
	b	.L9
.L11:
	ldr	r0, .L15+28
	bl	puts
.L9:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L12
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
