	.file	"318229.c"
	.intel_syntax noprefix
	.text
	.globl	ccw
	.type	ccw, @function
ccw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	DWORD PTR -40[rbp], r9d
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	imul	rax, rdx
	add	rcx, rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rdx
	add	rcx, rax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rdx
	add	rax, rcx
	sub	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jle	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	QWORD PTR -8[rbp], 0
	jns	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ccw, .-ccw
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L6
.L7:
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -68[rbp], 1
.L6:
	cmp	DWORD PTR -68[rbp], 3
	jle	.L7
	mov	r8d, DWORD PTR -24[rbp]
	mov	edi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	ccw
	mov	DWORD PTR -64[rbp], eax
	mov	r8d, DWORD PTR -20[rbp]
	mov	edi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	ccw
	mov	DWORD PTR -60[rbp], eax
	mov	r8d, DWORD PTR -32[rbp]
	mov	edi, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	ccw
	mov	DWORD PTR -56[rbp], eax
	mov	r8d, DWORD PTR -28[rbp]
	mov	edi, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	ccw
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jns	.L8
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jns	.L8
	mov	edi, 49
	call	putchar@PLT
	jmp	.L9
.L8:
	mov	edi, 48
	call	putchar@PLT
.L9:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"318229.c"
	.text
	.align	2
	.global	ccw
	.syntax unified
	.arm
	.fpu softvfp
	.type	ccw, %function
ccw:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	mov	r0, r1
	asr	r1, r0, #31
	mul	lr, r0, r3
	mul	ip, r2, r1
	add	ip, lr, ip
	umull	r6, r7, r2, r0
	add	r3, ip, r7
	mov	r7, r3
	ldr	r3, [fp, #-48]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, [fp, #8]
	mov	r0, r3
	asr	r1, r0, #31
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	adds	r1, r6, r2
	str	r1, [fp, #-60]
	adc	r3, r7, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #4]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-44]
	mov	r4, r3
	asr	r5, r4, #31
	mul	r2, r4, r1
	mul	r3, r0, r5
	add	ip, r2, r3
	umull	r2, r3, r0, r4
	add	r1, ip, r3
	mov	r3, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	ip, r0
	adds	ip, ip, r2
	str	ip, [fp, #-76]
	adc	r3, r1, r3
	str	r3, [fp, #-72]
	sub	r4, fp, #76
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	ldr	r3, [fp, #-44]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, [fp, #-48]
	mov	r2, r3
	asr	r3, r2, #31
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	ip, r0, r1
	umull	r0, r1, r4, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-52]
	mov	r6, r3
	asr	r7, r6, #31
	ldr	r3, [fp, #4]
	mov	r4, r3
	asr	r5, r4, #31
	mul	r2, r4, r7
	mul	r3, r6, r5
	add	ip, r2, r3
	umull	r2, r3, r6, r4
	add	ip, ip, r3
	mov	r3, ip
	adds	ip, r0, r2
	str	ip, [fp, #-68]
	adc	r3, r1, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #8]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, [fp, #-40]
	mov	r0, r3
	asr	r1, r0, #31
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	ip, r0
	adds	r8, ip, r2
	adc	r9, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r1, r2, r8
	str	r1, [fp, #-84]
	sbc	r3, r3, r9
	str	r3, [fp, #-80]
	sub	r4, fp, #84
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-36]
	str	r4, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	blt	.L2
	mov	r3, #1
	b	.L3
.L2:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L4
	mvn	r3, #0
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	ccw, .-ccw
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L6
.L7:
	sub	r2, fp, #40
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r1, r2, r3
	sub	r2, fp, #24
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L6:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	ble	.L7
	ldr	r0, [fp, #-40]
	ldr	r1, [fp, #-24]
	ldr	ip, [fp, #-36]
	ldr	lr, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	ccw
	str	r0, [fp, #-56]
	ldr	r0, [fp, #-40]
	ldr	r1, [fp, #-24]
	ldr	ip, [fp, #-36]
	ldr	lr, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	ccw
	str	r0, [fp, #-52]
	ldr	r0, [fp, #-32]
	ldr	r1, [fp, #-16]
	ldr	ip, [fp, #-28]
	ldr	lr, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	ccw
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-32]
	ldr	r1, [fp, #-16]
	ldr	ip, [fp, #-28]
	ldr	lr, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	ccw
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	cmp	r3, #0
	bge	.L8
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	cmp	r3, #0
	bge	.L8
	mov	r0, #49
	bl	putchar
	b	.L9
.L8:
	mov	r0, #48
	bl	putchar
.L9:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
