	.file	"248581040.c"
	.intel_syntax noprefix
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jge	.L3
	mov	eax, -1
	jmp	.L6
.L3:
	mov	eax, 1
	jmp	.L6
.L2:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"pig.in"
.LC2:
	.string	"w"
.LC3:
	.string	"pig.out"
.LC4:
	.string	"%d%lld"
.LC5:
	.string	"%lld"
.LC6:
	.string	"%lld\n"
	.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	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	freopen@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	freopen@PLT
	lea	rdx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w.3[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L9
	mov	DWORD PTR -28[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, d.2[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L11
	mov	DWORD PTR -28[rbp], 1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, p.1[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L13
	mov	DWORD PTR -28[rbp], 1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, p.1[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, d.2[rip]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	rdx, QWORD PTR -24[rbp]
	imul	rdx, rcx
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, q.0[rip]
	mov	QWORD PTR [rdx+rax], rcx
	add	DWORD PTR -28[rbp], 1
.L14:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L15
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdi, w.3[rip+8]
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	rsi, rax
	call	qsort@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdi, q.0[rip+8]
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	rsi, rax
	call	qsort@PLT
	mov	DWORD PTR -28[rbp], 1
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w.3[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, q.0[rip]
	mov	rax, QWORD PTR [rcx+rax]
	imul	rax, rdx
	add	QWORD PTR -16[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L16:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[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
	.local	w.3
	.comm	w.3,800072,32
	.local	d.2
	.comm	d.2,800072,32
	.local	p.1
	.comm	p.1,800072,32
	.local	q.0
	.comm	q.0,800072,32
	.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	"248581040.c"
	.text
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L2
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L3
	mvn	r3, #0
	b	.L6
.L3:
	mov	r3, #1
	b	.L6
.L2:
	mov	r3, #0
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"pig.in\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"pig.out\000"
	.align	2
.LC4:
	.ascii	"%d%lld\000"
	.align	2
.LC5:
	.ascii	"%lld\000"
	.align	2
.LC6:
	.ascii	"%lld\012\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	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #40
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+8
	ldr	r0, .L20+12
	bl	freopen
	ldr	r3, .L20+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+20
	ldr	r0, .L20+24
	bl	freopen
	sub	r2, fp, #52
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L20+28
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L8
.L9:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, .L20+32
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L20+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L8:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L9
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L10
.L11:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, .L20+40
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L20+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L10:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L11
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L12
.L13:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	ldr	r2, .L20+44
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L20+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L12:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L13
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L14
.L15:
	ldr	r2, .L20+44
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r2, .L20+40
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	subs	r1, r6, r2
	str	r1, [fp, #-68]
	sbc	r3, r7, r3
	str	r3, [fp, #-64]
	ldr	r2, .L20+48
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #68
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L14:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L15
	ldr	r0, .L20+52
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r3, .L20+56
	mov	r2, #8
	bl	qsort
	ldr	r0, .L20+60
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r3, .L20+56
	mov	r2, #8
	bl	qsort
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L16
.L17:
	ldr	r2, .L20+32
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, .L20+48
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	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, #44
	ldmia	r1, {r0-r1}
	adds	r8, r0, r2
	adc	r9, r1, r3
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L16:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L17
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+64
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	w.5125
	.word	.LC5
	.word	d.5127
	.word	p.5128
	.word	q.5126
	.word	w.5125+8
	.word	cmp
	.word	q.5126+8
	.word	.LC6
	.size	main, .-main
	.local	w.5125
	.comm	w.5125,800072,8
	.local	d.5127
	.comm	d.5127,800072,8
	.local	p.5128
	.comm	p.5128,800072,8
	.local	q.5126
	.comm	q.5126,800072,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
