	.file	"1215.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"long nombre del archivo: %d\n"
.LC1:
	.string	"Regular File, linking"
.LC2:
	.string	"%s.sym"
.LC3:
	.string	"%s.hard"
.LC4:
	.string	"\n"
	.align 8
.LC5:
	.string	"this program only link files. This is a Directory"
	.align 8
.LC6:
	.string	"this program only link files. This is a Block Device"
	.align 8
.LC7:
	.string	"this program only link files. This is a Character Device"
	.align 8
.LC8:
	.string	"this program only link files. This is a Socket"
	.align 8
.LC9:
	.string	"this program only link files. This is a Symbolic Link"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 264
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 4
	mov	DWORD PTR -244[rbp], eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 5
	mov	DWORD PTR -248[rbp], eax
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -244[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -240[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -288[rbp], rdx
	mov	QWORD PTR -280[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -304[rbp], rdx
	mov	QWORD PTR -296[rbp], 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -232[rbp], rax
	mov	eax, DWORD PTR -248[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -224[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -184[rbp]
	and	eax, 61440
	cmp	eax, 49152
	je	.L8
	cmp	eax, 49152
	ja	.L9
	cmp	eax, 40960
	je	.L10
	cmp	eax, 40960
	ja	.L9
	cmp	eax, 32768
	je	.L11
	cmp	eax, 32768
	ja	.L9
	cmp	eax, 24576
	je	.L12
	cmp	eax, 24576
	ja	.L9
	cmp	eax, 8192
	je	.L13
	cmp	eax, 16384
	je	.L14
	jmp	.L9
.L11:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -216[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	link@PLT
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	symlink@PLT
	jmp	.L9
.L14:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L9
.L12:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L9
.L13:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
.L9:
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"1215.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"long nombre del archivo: %d\012\000"
	.align	2
.LC1:
	.ascii	"Regular File, linking\000"
	.align	2
.LC2:
	.ascii	"%s.sym\000"
	.align	2
.LC3:
	.ascii	"%s.hard\000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"this program only link files. This is a Directory\000"
	.align	2
.LC6:
	.ascii	"this program only link files. This is a Block Devic"
	.ascii	"e\000"
	.align	2
.LC7:
	.ascii	"this program only link files. This is a Character D"
	.ascii	"evice\000"
	.align	2
.LC8:
	.ascii	"this program only link files. This is a Socket\000"
	.align	2
.LC9:
	.ascii	"this program only link files. This is a Symbolic Li"
	.ascii	"nk\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-124]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-120]
	ldr	ip, [fp, #-132]
	sub	r3, ip, #1
	str	r3, [fp, #-116]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-92]
	and	r3, r3, #61440
	cmp	r3, #49152
	beq	.L2
	cmp	r3, #49152
	bhi	.L3
	cmp	r3, #40960
	beq	.L4
	cmp	r3, #40960
	bhi	.L3
	cmp	r3, #32768
	beq	.L5
	cmp	r3, #32768
	bhi	.L3
	cmp	r3, #24576
	beq	.L6
	cmp	r3, #24576
	bhi	.L3
	cmp	r3, #8192
	beq	.L7
	cmp	r3, #16384
	beq	.L8
	b	.L3
.L5:
	ldr	r0, .L11+8
	bl	puts
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+12
	ldr	r0, [fp, #-120]
	bl	sprintf
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+16
	ldr	r0, [fp, #-112]
	bl	sprintf
	ldr	r0, [fp, #-112]
	bl	puts
	ldr	r0, .L11+20
	bl	puts
	ldr	r0, [fp, #-120]
	bl	puts
	ldr	r0, .L11+20
	bl	puts
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	link
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-120]
	mov	r0, r3
	bl	symlink
	b	.L3
.L8:
	ldr	r0, .L11+24
	bl	puts
	b	.L3
.L6:
	ldr	r0, .L11+28
	bl	puts
	b	.L3
.L7:
	ldr	r0, .L11+32
	bl	puts
	b	.L3
.L2:
	ldr	r0, .L11+36
	bl	puts
	b	.L3
.L4:
	ldr	r0, .L11+40
	bl	puts
	nop
.L3:
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
