	.file	"179830909.c"
	.intel_syntax noprefix
	.text
	.globl	compare_ints
	.type	compare_ints, @function
compare_ints:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_ints, .-compare_ints
	.section	.rodata
.LC0:
	.string	"It's an A\n"
.LC1:
	.string	"It's a B\n"
.LC2:
	.string	"Have to assume C\n"
	.text
	.globl	lookup
	.type	lookup, @function
lookup:
.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, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 65
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L7
.L6:
	cmp	BYTE PTR -4[rbp], 66
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 2
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lookup, .-lookup
	.section	.rodata
.LC3:
	.string	"%d %d %d\n"
.LC4:
	.string	"Failed to read initial input\n"
.LC5:
	.string	"%3s\n"
.LC6:
	.string	"Desired order: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	lea	rcx, 8[rax]
	lea	rax, -48[rbp]
	lea	rdx, 4[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 3
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L13
.L10:
	mov	esi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -48[rbp]
	lea	rcx, compare_ints[rip]
	mov	edx, 4
	mov	esi, 3
	mov	rdi, rax
	call	qsort@PLT
	mov	esi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -27[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -27[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	edi, eax
	call	lookup
	cdqe
	mov	r12d, DWORD PTR -48[rbp+rax*4]
	movzx	eax, BYTE PTR -26[rbp]
	movsx	eax, al
	mov	edi, eax
	call	lookup
	cdqe
	mov	ebx, DWORD PTR -48[rbp+rax*4]
	movzx	eax, BYTE PTR -27[rbp]
	movsx	eax, al
	mov	edi, eax
	call	lookup
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	ecx, r12d
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L13:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"179830909.c"
	.text
	.align	2
	.global	compare_ints
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_ints, %function
compare_ints:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L4
	mov	r3, #1
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare_ints, .-compare_ints
	.section	.rodata
	.align	2
.LC0:
	.ascii	"It's an A\012\000"
	.align	2
.LC1:
	.ascii	"It's a B\012\000"
	.align	2
.LC2:
	.ascii	"Have to assume C\012\000"
	.text
	.align	2
	.global	lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookup, %function
lookup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L6
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L9+4
	bl	fwrite
	mov	r3, #0
	b	.L7
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L8
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mov	r3, #1
	b	.L7
.L8:
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L9+12
	bl	fwrite
	mov	r3, #2
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	lookup, .-lookup
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d %d %d\012\000"
	.align	2
.LC4:
	.ascii	"Failed to read initial input\012\000"
	.align	2
.LC5:
	.ascii	"%3s\012\000"
	.align	2
.LC6:
	.ascii	"Desired order: %s\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36
	add	r0, r3, #8
	sub	r3, fp, #36
	add	r2, r3, #4
	sub	r1, fp, #36
	mov	r3, r0
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #3
	beq	.L12
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L17+12
	bl	fwrite
	mov	r3, #1
	b	.L15
.L12:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+4
	bl	fprintf
	sub	r0, fp, #36
	ldr	r3, .L17+16
	mov	r2, #4
	mov	r1, #3
	bl	qsort
	ldr	r3, .L17+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+4
	bl	fprintf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L17+20
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L17+12
	bl	fwrite
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L17+24
	mov	r0, r3
	bl	fprintf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r0, r3
	bl	lookup
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-24]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r0, r3
	bl	lookup
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r5, [r3, #-24]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r0, r3
	bl	lookup
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	compare_ints
	.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
