	.file	"983684.c"
	.intel_syntax noprefix
	.text
	.globl	l
	.bss
	.align 8
	.type	l, @object
	.size	l, 8
l:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\nDigite os dados do funcionario:\n"
.LC1:
	.string	"Nome: "
.LC2:
	.string	"Matricula: "
.LC3:
	.string	"%d"
.LC4:
	.string	"Departamento: "
.LC5:
	.string	"%s"
.LC6:
	.string	"Salario: "
.LC7:
	.string	"%f"
	.align 8
.LC8:
	.string	"\n\nDeseja inserir mais elementos: 1 - Sim 0 - Nao "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	inicializa
	mov	QWORD PTR l[rip], rax
.L2:
	call	getchar@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, DWORD PTR -140[rbp]
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR l[rip]
	lea	rcx, -128[rbp]
	lea	rsi, -96[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	insere_ord
	mov	QWORD PTR l[rip], rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -132[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, 1
	je	.L2
	mov	rax, QWORD PTR l[rip]
	mov	rdi, rax
	call	imprimir
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	vazia
	.type	vazia, @function
vazia:
.LFB7:
	.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
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	vazia, .-vazia
	.globl	inicializa
	.type	inicializa, @function
inicializa:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	inicializa, .-inicializa
	.globl	insere_ord
	.type	insere_ord, @function
insere_ord:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	movss	DWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR 84[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 88[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR 112[rax], xmm0
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	QWORD PTR -24[rbp], rax
.L10:
	cmp	QWORD PTR -24[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR 112[rax]
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR 112[rax]
	comiss	xmm0, xmm1
	ja	.L12
.L11:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], rdx
.L14:
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insere_ord, .-insere_ord
	.section	.rodata
	.align 8
.LC9:
	.string	"Nome Matricula Departamento Salario\n"
.LC10:
	.string	"\n%s %d %s %f"
	.text
	.globl	imprimir
	.type	imprimir, @function
imprimir:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 112[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 88[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 84[rax]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	rcx, rsi
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	QWORD PTR -8[rbp], rax
.L17:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	imprimir, .-imprimir
	.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	"983684.c"
	.text
	.comm	l,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Digite os dados do funcionario:\012\000"
	.align	2
.LC1:
	.ascii	"Nome: \000"
	.align	2
.LC2:
	.ascii	"Matricula: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Departamento: \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"Salario: \000"
	.align	2
.LC7:
	.ascii	"%f\000"
	.align	2
.LC8:
	.ascii	"\012\012Deseja inserir mais elementos: 1 - Sim 0 - "
	.ascii	"Nao \000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	inicializa
	mov	r3, r0
	ldr	r2, .L5+4
	str	r3, [r2]
.L2:
	bl	getchar
	ldr	r0, .L5+8
	bl	puts
	ldr	r0, .L5+12
	bl	printf
	sub	r3, fp, #92
	mov	r0, r3
	bl	gets
	ldr	r0, .L5+16
	bl	printf
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, .L5+20
	bl	__isoc99_scanf
	ldr	r0, .L5+24
	bl	printf
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L5+28
	bl	__isoc99_scanf
	bl	getchar
	ldr	r0, .L5+32
	bl	printf
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L5+36
	bl	__isoc99_scanf
	ldr	r3, .L5+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-128]	@ float
	sub	ip, fp, #116
	sub	r1, fp, #92
	str	r3, [sp]	@ float
	mov	r3, ip
	bl	insere_ord
	mov	r3, r0
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r0, .L5+40
	bl	printf
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L5+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	beq	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	imprimir
	mov	r3, #0
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC9
	.word	l
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	vazia
	.syntax unified
	.arm
	.fpu softvfp
	.type	vazia, %function
vazia:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	vazia, .-vazia
	.align	2
	.global	inicializa
	.syntax unified
	.arm
	.fpu softvfp
	.type	inicializa, %function
inicializa:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inicializa, .-inicializa
	.global	__aeabi_fcmpgt
	.align	2
	.global	insere_ord
	.syntax unified
	.arm
	.fpu softvfp
	.type	insere_ord, %function
insere_ord:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #120
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-8]
	add	r3, r3, #88
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]	@ float
	str	r2, [r3, #112]	@ float
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #116]
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #112]	@ float
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #112]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #116]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	b	.L16
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #116]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #116]
.L16:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insere_ord, .-insere_ord
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Nome Matricula Departamento Salario\012\000"
	.global	__aeabi_f2d
	.align	2
.LC11:
	.ascii	"\012%s %d %s %f\000"
	.text
	.align	2
	.global	imprimir
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimir, %function
imprimir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L22
	bl	puts
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L19
.L20:
	ldr	r4, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r5, [r3, #84]
	ldr	r3, [fp, #-24]
	add	r6, r3, #88
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L22+4
	bl	printf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #116]
	str	r3, [fp, #-24]
.L19:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L20
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.word	.LC11
	.size	imprimir, .-imprimir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
