	.file	"1215776.c"
	.intel_syntax noprefix
	.text
	.globl	res
	.bss
	.align 8
	.type	res, @object
	.size	res, 12
res:
	.zero	12
	.globl	total
	.align 4
	.type	total, @object
	.size	total, 4
total:
	.zero	4
	.globl	max
	.align 2
	.type	max, @object
	.size	max, 2
max:
	.zero	2
	.globl	game
	.align 2
	.type	game, @object
	.size	game, 2
game:
	.zero	2
	.section	.rodata
.LC0:
	.string	"%u %u %u"
.LC1:
	.string	"TIDAK"
.LC2:
	.string	"YA"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	lea	rcx, res[rip+8]
	lea	rdx, res[rip+4]
	lea	rsi, res[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR res[rip]
	mov	eax, DWORD PTR res[rip+4]
	cmp	edx, eax
	jbe	.L2
	mov	edx, DWORD PTR res[rip]
	mov	eax, DWORD PTR res[rip+8]
	cmp	edx, eax
	jbe	.L2
	mov	WORD PTR max[rip], 0
	jmp	.L3
.L2:
	mov	edx, DWORD PTR res[rip+4]
	mov	eax, DWORD PTR res[rip]
	cmp	edx, eax
	jbe	.L4
	mov	edx, DWORD PTR res[rip+4]
	mov	eax, DWORD PTR res[rip+8]
	cmp	edx, eax
	jbe	.L4
	mov	WORD PTR max[rip], 1
	jmp	.L3
.L4:
	mov	edx, DWORD PTR res[rip+8]
	mov	eax, DWORD PTR res[rip+4]
	cmp	edx, eax
	jbe	.L3
	mov	edx, DWORD PTR res[rip+8]
	mov	eax, DWORD PTR res[rip]
	cmp	edx, eax
	jbe	.L3
	mov	WORD PTR max[rip], 2
.L3:
	movzx	eax, WORD PTR max[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 3
	test	eax, eax
	jne	.L5
	movzx	eax, WORD PTR max[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	eax, DWORD PTR [rdx+rax]
	shr	eax, 2
	mov	WORD PTR game[rip], ax
	mov	DWORD PTR total[rip], 0
	mov	WORD PTR -2[rbp], 0
	jmp	.L6
.L10:
	movzx	eax, WORD PTR max[rip]
	cmp	WORD PTR -2[rbp], ax
	je	.L7
	movzx	eax, WORD PTR -2[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR total[rip]
	add	eax, edx
	mov	DWORD PTR total[rip], eax
	movzx	eax, WORD PTR -2[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	edx, DWORD PTR [rdx+rax]
	movzx	eax, WORD PTR game[rip]
	movzx	eax, ax
	cmp	edx, eax
	jb	.L8
	movzx	eax, WORD PTR -2[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movzx	edx, WORD PTR game[rip]
	movzx	edx, dx
	add	edx, edx
	cmp	eax, edx
	jbe	.L7
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L9
.L7:
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L6:
	cmp	WORD PTR -2[rbp], 2
	jbe	.L10
	mov	eax, DWORD PTR total[rip]
	mov	edx, eax
	mov	eax, 2863311531
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx
	movzx	eax, WORD PTR game[rip]
	movzx	eax, ax
	cmp	edx, eax
	je	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L12
.L5:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L12:
	mov	eax, 0
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"1215776.c"
	.text
	.comm	res,12,4
	.comm	total,4,4
	.comm	max,2,2
	.comm	game,2,2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%u %u %u\000"
	.align	2
.LC1:
	.ascii	"TIDAK\000"
	.align	2
.LC2:
	.ascii	"YA\000"
	.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
	ldr	r3, .L13
	ldr	r2, .L13+4
	ldr	r1, .L13+8
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, .L13+8
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bls	.L2
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, .L13+8
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bls	.L2
	ldr	r3, .L13+16
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L3
.L2:
	ldr	r3, .L13+8
	ldr	r2, [r3, #4]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L4
	ldr	r3, .L13+8
	ldr	r2, [r3, #4]
	ldr	r3, .L13+8
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bls	.L4
	ldr	r3, .L13+16
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	b	.L3
.L4:
	ldr	r3, .L13+8
	ldr	r2, [r3, #8]
	ldr	r3, .L13+8
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bls	.L3
	ldr	r3, .L13+8
	ldr	r2, [r3, #8]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L3
	ldr	r3, .L13+16
	mov	r2, #2
	strh	r2, [r3]	@ movhi
.L3:
	ldr	r3, .L13+16
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L13+8
	ldr	r3, [r3, r2, lsl #2]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L13+16
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L13+8
	ldr	r3, [r3, r2, lsl #2]
	lsr	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L13+20
	strh	r3, [r2]	@ movhi
	ldr	r3, .L13+24
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L6
.L10:
	ldr	r3, .L13+16
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-6]
	cmp	r2, r3
	beq	.L7
	ldrh	r3, [fp, #-6]
	ldr	r2, .L13+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L13+24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L13+24
	str	r3, [r2]
	ldrh	r3, [fp, #-6]
	ldr	r2, .L13+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L13+20
	ldrh	r2, [r2]
	cmp	r3, r2
	bcc	.L8
	ldrh	r3, [fp, #-6]
	ldr	r2, .L13+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L13+20
	ldrh	r2, [r2]
	lsl	r2, r2, #1
	cmp	r3, r2
	bls	.L7
.L8:
	ldr	r0, .L13+28
	bl	puts
	mov	r3, #0
	b	.L9
.L7:
	ldrh	r3, [fp, #-6]
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L6:
	ldrh	r3, [fp, #-6]
	cmp	r3, #2
	bls	.L10
	ldr	r3, .L13+24
	ldr	r3, [r3]
	ldr	r2, .L13+32
	umull	r1, r3, r2, r3
	lsr	r3, r3, #1
	ldr	r2, .L13+20
	ldrh	r2, [r2]
	cmp	r3, r2
	beq	.L11
	ldr	r0, .L13+28
	bl	puts
	b	.L12
.L11:
	ldr	r0, .L13+36
	bl	puts
	b	.L12
.L5:
	ldr	r0, .L13+28
	bl	puts
.L12:
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	res+8
	.word	res+4
	.word	res
	.word	.LC0
	.word	max
	.word	game
	.word	total
	.word	.LC1
	.word	-1431655765
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
