	.file	"346064.c"
	.intel_syntax noprefix
	.text
	.globl	extractnum
	.type	extractnum, @function
extractnum:
.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L5
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 127
	jle	.L4
.L5:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	extractnum, .-extractnum
	.section	.rodata
.LC0:
	.string	"Sum = %d\n"
	.text
	.globl	sum
	.type	sum, @function
sum:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sum, .-sum
	.section	.rodata
.LC1:
	.string	"child op, received :"
.LC2:
	.string	"a : %d\n"
.LC3:
	.string	"b : %d\n"
.LC4:
	.string	"Parent op! Sending data."
.LC5:
	.string	"117\n"
.LC6:
	.string	"228\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
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -152[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jne	.L8
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -152[rbp]
	lea	rcx, -144[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -144[rbp]
	lea	rax, -164[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	extractnum
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	lea	rcx, -144[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -144[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	extractnum
	mov	eax, DWORD PTR -160[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sum
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	edi, eax
	call	close@PLT
.L9:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.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	"346064.c"
	.text
	.align	2
	.global	extractnum
	.syntax unified
	.arm
	.fpu softvfp
	.type	extractnum, %function
extractnum:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	ble	.L4
.L5:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	extractnum, .-extractnum
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Sum = %d\012\000"
	.text
	.align	2
	.global	sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum, %function
sum:
	@ 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	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L7
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	sum, .-sum
	.section	.rodata
	.align	2
.LC1:
	.ascii	"child op, received :\000"
	.align	2
.LC2:
	.ascii	"a : %d\012\000"
	.align	2
.LC3:
	.ascii	"b : %d\012\000"
	.align	2
.LC4:
	.ascii	"Parent op! Sending data.\000"
	.align	2
.LC5:
	.ascii	"117\012\000"
	.align	2
.LC6:
	.ascii	"228\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 = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	close
	ldr	r0, .L14+4
	bl	puts
	ldr	r3, [fp, #-144]
	sub	r1, fp, #136
	mov	r2, #4
	mov	r0, r3
	bl	read
	sub	r2, fp, #136
	sub	r3, fp, #156
	mov	r1, r2
	mov	r0, r3
	bl	extractnum
	ldr	r3, [fp, #-156]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	ldr	r3, [fp, #-144]
	sub	r1, fp, #136
	mov	r2, #4
	mov	r0, r3
	bl	read
	sub	r2, fp, #136
	sub	r3, fp, #152
	mov	r1, r2
	mov	r0, r3
	bl	extractnum
	ldr	r3, [fp, #-152]
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-152]
	mov	r1, r2
	mov	r0, r3
	bl	sum
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	close
	b	.L11
.L10:
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	close
	ldr	r0, .L14+16
	bl	puts
	ldr	r3, [fp, #-140]
	mov	r2, #4
	ldr	r1, .L14+20
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-140]
	mov	r2, #4
	ldr	r1, .L14+24
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-140]
	mov	r0, r3
	bl	close
.L11:
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.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
