	.file	"1173833.c"
	.intel_syntax noprefix
	.text
	.globl	strUpr
	.type	strUpr, @function
strUpr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strUpr, .-strUpr
	.globl	strLower
	.type	strLower, @function
strLower:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 1
.L6:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strLower, .-strLower
	.section	.rodata
	.align 8
.LC0:
	.string	"\347\210\266\350\277\233\347\250\213\346\225\260\346\215\256\345\206\231\345\205\245\345\256\214\346\257\225\357\274\201\r"
	.text
	.globl	handler1
	.type	handler1, @function
handler1:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 10
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	handler1, .-handler1
	.section	.rodata
	.align 8
.LC1:
	.string	"\345\255\220\350\277\233\347\250\213\345\233\236\345\244\215\345\256\214\346\257\225,\347\273\223\346\235\237\350\277\233\347\250\213\357\274\201\r"
	.text
	.globl	handler2
	.type	handler2, @function
handler2:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 12
	jne	.L14
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handler2, .-handler2
	.section	.rodata
.LC2:
	.string	"/tmp"
.LC3:
	.string	"ftok error"
.LC4:
	.string	"shmget error"
.LC5:
	.string	"shmat error"
.LC6:
	.string	"fork error"
.LC7:
	.string	"Father send to Son:"
	.align 8
.LC8:
	.string	"Father last get\357\274\210before treatment\357\274\211:%s\r"
	.align 8
.LC9:
	.string	"Father last show\357\274\210After treatment\357\274\211:%s\r"
.LC10:
	.string	"Father end!"
	.align 8
.LC11:
	.string	"Son get\357\274\210before treatment\357\274\211:%s\r"
	.align 8
.LC12:
	.string	"Son show\357\274\210After treatment\357\274\211\357\274\232%s\r"
.LC13:
	.string	"Son reply to Father:"
.LC14:
	.string	"Son send message\357\274\232%s\r"
.LC15:
	.string	"Son end!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	esi, 23
	lea	rdi, .LC2[rip]
	call	ftok@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	jns	.L16
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L16:
	mov	eax, DWORD PTR -140[rbp]
	mov	edx, 932
	mov	esi, 1024
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L18
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L23
.L18:
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], -1
	jne	.L19
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	eax, -1
	jmp	.L23
.L19:
	call	fork@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	jns	.L20
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	eax, -1
	jmp	.L23
.L20:
	cmp	DWORD PTR -128[rbp], 0
	jle	.L21
	lea	rsi, handler2[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	call	pause@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strUpr
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	nop
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	jmp	.L22
.L21:
	call	getppid@PLT
	mov	DWORD PTR -124[rbp], eax
	lea	rsi, handler1[rip]
	mov	edi, 10
	call	signal@PLT
	call	pause@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strLower
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	nop
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L22:
	mov	eax, 0
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"1173833.c"
	.text
	.align	2
	.global	strUpr
	.syntax unified
	.arm
	.fpu softvfp
	.type	strUpr, %function
strUpr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strUpr, .-strUpr
	.align	2
	.global	strLower
	.syntax unified
	.arm
	.fpu softvfp
	.type	strLower, %function
strLower:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strLower, .-strLower
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\347\210\266\350\277\233\347\250\213\346\225\260\346"
	.ascii	"\215\256\345\206\231\345\205\245\345\256\214\346\257"
	.ascii	"\225\357\274\201\015\000"
	.text
	.align	2
	.global	handler1
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler1, %function
handler1:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L11
	ldr	r0, .L12
	bl	puts
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	handler1, .-handler1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\345\255\220\350\277\233\347\250\213\345\233\236\345"
	.ascii	"\244\215\345\256\214\346\257\225,\347\273\223\346\235"
	.ascii	"\237\350\277\233\347\250\213\357\274\201\015\000"
	.text
	.align	2
	.global	handler2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler2, %function
handler2:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	bne	.L16
	ldr	r0, .L17
	bl	puts
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC1
	.size	handler2, .-handler2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/tmp\000"
	.align	2
.LC3:
	.ascii	"ftok error\000"
	.align	2
.LC4:
	.ascii	"shmget error\000"
	.align	2
.LC5:
	.ascii	"shmat error\000"
	.align	2
.LC6:
	.ascii	"fork error\000"
	.align	2
.LC7:
	.ascii	"Father send to Son:\000"
	.align	2
.LC8:
	.ascii	"Father last get\357\274\210before treatment\357\274"
	.ascii	"\211:%s\015\000"
	.align	2
.LC9:
	.ascii	"Father last show\357\274\210After treatment\357\274"
	.ascii	"\211:%s\015\000"
	.align	2
.LC10:
	.ascii	"Father end!\000"
	.align	2
.LC11:
	.ascii	"Son get\357\274\210before treatment\357\274\211:%s\015"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"Son show\357\274\210After treatment\357\274\211\357"
	.ascii	"\274\232%s\015\000"
	.align	2
.LC13:
	.ascii	"Son reply to Father:\000"
	.align	2
.LC14:
	.ascii	"Son send message\357\274\232%s\015\000"
	.align	2
.LC15:
	.ascii	"Son end!\000"
	.align	2
.LC16:
	.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, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r1, #23
	ldr	r0, .L29+4
	bl	ftok
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L29+8
	bl	perror
	mvn	r3, #0
	b	.L27
.L20:
	mov	r2, #932
	mov	r1, #1024
	ldr	r0, [fp, #-132]
	bl	shmget
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L29+12
	bl	perror
	mvn	r3, #0
	b	.L27
.L22:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	shmat
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L29+16
	bl	perror
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	shmctl
	mvn	r3, #0
	b	.L27
.L23:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L29+20
	bl	perror
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	shmctl
	mvn	r3, #0
	b	.L27
.L24:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	ble	.L25
	ldr	r1, .L29+24
	mov	r0, #12
	bl	signal
	ldr	r0, .L29+28
	bl	printf
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #1024
	ldr	r0, [fp, #-120]
	bl	fgets
	mov	r1, #10
	ldr	r0, [fp, #-116]
	bl	kill
	bl	pause
	ldr	r1, [fp, #-120]
	ldr	r0, .L29+36
	bl	printf
	ldr	r0, [fp, #-120]
	bl	strUpr
	str	r0, [fp, #-120]
	ldr	r1, [fp, #-120]
	ldr	r0, .L29+40
	bl	printf
	mov	r1, #10
	ldr	r0, [fp, #-116]
	bl	kill
	nop
	ldr	r0, .L29+44
	bl	puts
	ldr	r0, [fp, #-120]
	bl	shmdt
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	shmctl
	b	.L26
.L25:
	bl	getppid
	str	r0, [fp, #-112]
	ldr	r1, .L29+48
	mov	r0, #10
	bl	signal
	bl	pause
	ldr	r1, [fp, #-120]
	ldr	r0, .L29+52
	bl	printf
	ldr	r0, [fp, #-120]
	bl	strLower
	str	r0, [fp, #-120]
	ldr	r1, [fp, #-120]
	ldr	r0, .L29+56
	bl	printf
	ldr	r0, .L29+60
	bl	printf
	ldr	r3, .L29+32
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #1024
	ldr	r0, [fp, #-120]
	bl	fgets
	ldr	r1, [fp, #-120]
	ldr	r0, .L29+64
	bl	printf
	mov	r1, #12
	ldr	r0, [fp, #-112]
	bl	kill
	nop
	ldr	r0, .L29+68
	bl	puts
.L26:
	mov	r3, #0
.L27:
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC16
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	handler2
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	handler1
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
