	.file	"60617.c"
	.intel_syntax noprefix
	.text
	.globl	POINTS
	.data
	.align 32
	.type	POINTS, @object
	.size	POINTS, 104
POINTS:
	.long	1
	.long	3
	.long	3
	.long	2
	.long	1
	.long	4
	.long	2
	.long	4
	.long	1
	.long	8
	.long	5
	.long	1
	.long	3
	.long	1
	.long	1
	.long	3
	.long	10
	.long	1
	.long	1
	.long	1
	.long	1
	.long	4
	.long	4
	.long	8
	.long	4
	.long	10
	.text
	.globl	compute_score
	.type	compute_score, @function
compute_score:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 64
	jle	.L3
	cmp	DWORD PTR -20[rbp], 90
	jg	.L3
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 65
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, POINTS[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -28[rbp], eax
.L3:
	add	DWORD PTR -24[rbp], 1
.L2:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L4
	mov	eax, DWORD PTR -28[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compute_score, .-compute_score
	.section	.rodata
.LC0:
	.string	"Player 1: "
.LC1:
	.string	"%s"
.LC2:
	.string	"Player 2: "
.LC3:
	.string	"Player 1 wins!"
.LC4:
	.string	"Player 2 wins!"
.LC5:
	.string	"Tie!"
	.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	edi, 5
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 5
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	compute_score
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	compute_score
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L8
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	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	"60617.c"
	.text
	.global	POINTS
	.data
	.align	2
	.type	POINTS, %object
	.size	POINTS, 104
POINTS:
	.word	1
	.word	3
	.word	3
	.word	2
	.word	1
	.word	4
	.word	2
	.word	4
	.word	1
	.word	8
	.word	5
	.word	1
	.word	3
	.word	1
	.word	1
	.word	3
	.word	10
	.word	1
	.word	1
	.word	1
	.word	1
	.word	4
	.word	4
	.word	8
	.word	4
	.word	10
	.text
	.align	2
	.global	compute_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_score, %function
compute_score:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	ble	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	bgt	.L3
	ldr	r3, [fp, #-8]
	sub	r3, r3, #65
	ldr	r2, .L6
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcs	.L4
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	POINTS
	.size	compute_score, .-compute_score
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Player 1: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Player 2: \000"
	.align	2
.LC3:
	.ascii	"Player 1 wins!\000"
	.align	2
.LC4:
	.ascii	"Player 2 wins!\000"
	.align	2
.LC5:
	.ascii	"Tie!\000"
	.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
	mov	r0, #5
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r0, #5
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, .L13
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	ldr	r0, .L13+8
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	ldr	r0, [fp, #-20]
	bl	compute_score
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	compute_score
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L9
	ldr	r0, .L13+12
	bl	puts
	b	.L10
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L11
	ldr	r0, .L13+16
	bl	puts
	b	.L10
.L11:
	ldr	r0, .L13+20
	bl	puts
.L10:
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.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
