	.file	"279696.c"
	.intel_syntax noprefix
	.text
	.globl	sort
	.type	sort, @function
sort:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L2
.L6:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	edx, DWORD PTR -32[rbp+rax*4]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	cmp	edx, eax
	jle	.L4
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -32[rbp+rax*4]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], edx
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp+rax*4], edx
.L4:
	add	DWORD PTR -40[rbp], 1
.L3:
	mov	eax, 3
	sub	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L5
	add	DWORD PTR -44[rbp], 1
.L2:
	cmp	DWORD PTR -44[rbp], 2
	jle	.L6
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sort, .-sort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld%lld%lld%lld"
.LC2:
	.string	"banana"
.LC3:
	.string	"square"
.LC4:
	.string	"rectangle"
.LC5:
	.string	"quadrangle"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L9
.L14:
	lea	rsi, -16[rbp]
	lea	rcx, -24[rbp]
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -16[rbp]
	lea	rdx, -24[rbp]
	lea	rsi, -32[rbp]
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	sort
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	jg	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	jne	.L12
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jne	.L13
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	jne	.L13
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	je	.L13
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L11
.L13:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L11:
	add	DWORD PTR -44[rbp], 1
.L9:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"279696.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-52]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L3
.L5:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-20]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #-20]
.L4:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L3:
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	ble	.L6
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-40]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-44]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-48]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-12]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	stm	r1, {r2-r3}
	nop
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%lld%lld%lld%lld\000"
	.align	2
.LC3:
	.ascii	"banana\000"
	.align	2
.LC4:
	.ascii	"square\000"
	.align	2
.LC5:
	.ascii	"rectangle\000"
	.align	2
.LC6:
	.ascii	"quadrangle\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L11
.L16:
	sub	r0, fp, #44
	sub	r2, fp, #52
	sub	r1, fp, #60
	sub	r3, fp, #36
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	sub	r2, fp, #44
	sub	r1, fp, #52
	sub	r0, fp, #60
	bl	sort
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r4, r2
	adc	r7, r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, r6
	sbcs	r3, r3, r7
	blt	.L12
	ldr	r0, .L19+12
	bl	puts
	b	.L13
.L12:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L14
	ldr	r0, .L19+16
	bl	puts
	b	.L13
.L14:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L15
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L15
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L15
	ldr	r0, .L19+20
	bl	puts
	b	.L13
.L15:
	ldr	r0, .L19+24
	bl	puts
.L13:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L11:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.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
