	.file	"141645.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"substring"
.LC1:
	.string	"./substring.out"
.LC2:
	.string	"Error calling substring"
.LC3:
	.string	"Error while calling fork"
.LC4:
	.string	"w"
.LC5:
	.string	"case_swap"
.LC6:
	.string	"./case_swap.out"
	.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	cmp	eax, -1
	je	.L2
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	close@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	execl@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -124[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	mov	rcx, rdx
	mov	edx, 102
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	close@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, 0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	execl@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"141645.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"substring\000"
	.align	2
.LC1:
	.ascii	"./substring.out\000"
	.align	2
.LC2:
	.ascii	"Error calling substring\000"
	.align	2
.LC3:
	.ascii	"Error while calling fork\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"case_swap\000"
	.align	2
.LC6:
	.ascii	"./case_swap.out\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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #124
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #116
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	close
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-116]
	mov	r0, r3
	bl	close
	mov	r0, #1
	bl	close
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	close
	mov	r2, #0
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	execl
	ldr	r0, .L5+12
	bl	puts
.L2:
	ldr	r0, .L5+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-120]
	ldr	r1, .L5+20
	mov	r0, r3
	bl	fdopen
	str	r0, [fp, #-128]
	ldr	r3, .L5+24
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	mov	r2, #102
	mov	r1, #1
	bl	fwrite
	ldr	r0, [fp, #-128]
	bl	fclose
	mov	r0, #0
	bl	close
	ldr	r3, [fp, #-116]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-116]
	mov	r0, r3
	bl	close
	mov	r2, #0
	ldr	r1, .L5+28
	ldr	r0, .L5+32
	bl	execl
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdin
	.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
