	.file	"997825.c"
	.intel_syntax noprefix
	.text
	.globl	error_y_exit
	.type	error_y_exit, @function
error_y_exit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error_y_exit, .-error_y_exit
	.section	.rodata
	.align 8
.LC0:
	.string	"Soy el proceso HIJO: %d de %s\n"
	.align 8
.LC1:
	.string	"Ha fallado el fork del proceso: %d\n"
.LC2:
	.string	"Soy el proceso PADRE: %d\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
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	jne	.L3
	call	fork@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	je	.L4
	cmp	DWORD PTR -84[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rbx, QWORD PTR [rax]
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -80[rbp]
	mov	rcx, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L6:
	jmp	.L6
.L4:
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -80[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	error_y_exit
	jmp	.L3
.L5:
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -80[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L8:
	jmp	.L8
.L3:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"997825.c"
	.text
	.align	2
	.global	error_y_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_y_exit, %function
error_y_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	perror
	ldr	r0, [fp, #-12]
	bl	exit
	.size	error_y_exit, .-error_y_exit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Soy el proceso HIJO: %d de %s\012\000"
	.align	2
.LC1:
	.ascii	"Ha fallado el fork del proceso: %d\012\000"
	.align	2
.LC2:
	.ascii	"Soy el proceso PADRE: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	bne	.L3
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	beq	.L4
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L5
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #60
	ldr	r1, .L11+4
	bl	sprintf
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #60
	mov	r1, r3
	mov	r0, #1
	bl	write
.L6:
	b	.L6
.L4:
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #60
	ldr	r1, .L11+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	error_y_exit
	b	.L3
.L5:
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #60
	ldr	r1, .L11+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #60
	mov	r1, r3
	mov	r0, #1
	bl	write
.L8:
	b	.L8
.L3:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
