	.file	"758405.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 2
	.type	buf, @object
	.size	buf, 6
buf:
	.zero	6
	.section	.rodata
.LC0:
	.string	"Down failed!/n"
	.text
	.globl	down
	.type	down, @function
down:
.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	DWORD PTR -4[rbp], edi
	mov	WORD PTR buf[rip], 0
	mov	WORD PTR buf[rip+2], -1
	mov	WORD PTR buf[rip+4], 4096
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	lea	rsi, buf[rip]
	mov	edi, eax
	mov	eax, 0
	call	semop@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	down, .-down
	.section	.rodata
.LC1:
	.string	"Up failed!/n"
	.text
	.globl	up
	.type	up, @function
up:
.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	WORD PTR buf[rip], 0
	mov	WORD PTR buf[rip+2], 1
	mov	WORD PTR buf[rip+4], 4096
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	lea	rsi, buf[rip]
	mov	edi, eax
	mov	eax, 0
	call	semop@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L6
.L5:
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	up, .-up
	.section	.rodata
.LC2:
	.string	"set the mutex error\n"
.LC3:
	.string	"set the full error\n"
.LC4:
	.string	"set the empty error/n"
	.align 8
.LC5:
	.string	"Producer P1 insert letter: %c\n"
	.align 8
.LC6:
	.string	"Producer P2 insert letter: %c\n"
	.align 8
.LC7:
	.string	"Consumer C1 removes letter: %c\n"
	.align 8
.LC8:
	.string	"Consumer C2 removes letter: %c\n"
	.align 8
.LC9:
	.string	"Consumer C3 removes letter: %c\n"
.LC10:
	.string	"Buffer: "
.LC11:
	.string	"%c "
.LC12:
	.string	" "
	.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, 96
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	esi, 4
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	add	DWORD PTR -84[rbp], 1
.L8:
	cmp	DWORD PTR -84[rbp], 3
	jle	.L9
	mov	edx, 950
	mov	esi, 1
	mov	edi, 0
	mov	eax, 0
	call	semget@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	edx, 950
	mov	esi, 1
	mov	edi, 0
	mov	eax, 0
	call	semget@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	edx, 950
	mov	esi, 1
	mov	edi, 0
	mov	eax, 0
	call	semget@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -16[rbp], 1
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L7
.L10:
	mov	DWORD PTR -16[rbp], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L7
.L12:
	mov	DWORD PTR -16[rbp], 4
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L7
.L13:
	call	fork@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L14
.L19:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	down
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1321528399
	shr	rdx, 32
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	imul	edx, edx, 26
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 65
	mov	BYTE PTR -85[rbp], al
	mov	DWORD PTR -80[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L16
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -85[rbp]
	mov	BYTE PTR [rdx], al
	movsx	eax, BYTE PTR -85[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	add	DWORD PTR -80[rbp], 1
.L15:
	cmp	DWORD PTR -80[rbp], 3
	jle	.L18
.L17:
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	up
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	up
	mov	edi, 1
	call	sleep@PLT
	jmp	.L19
.L14:
	call	fork@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jne	.L20
.L25:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	down
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1321528399
	shr	rdx, 32
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -24[rbp], edx
	mov	edx, DWORD PTR -24[rbp]
	imul	edx, edx, 26
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 97
	mov	BYTE PTR -86[rbp], al
	mov	DWORD PTR -76[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L22
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -86[rbp]
	mov	BYTE PTR [rdx], al
	movsx	eax, BYTE PTR -86[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L22:
	add	DWORD PTR -76[rbp], 1
.L21:
	cmp	DWORD PTR -76[rbp], 3
	jle	.L24
.L23:
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	up
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	up
	mov	edi, 1
	call	sleep@PLT
	jmp	.L25
.L20:
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L26
.L31:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	down
	mov	DWORD PTR -72[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L28
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jg	.L28
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -89[rbp], al
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L29
.L28:
	add	DWORD PTR -72[rbp], 1
.L27:
	cmp	DWORD PTR -72[rbp], 3
	jle	.L30
.L29:
	movsx	eax, BYTE PTR -89[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	up
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	up
	mov	edi, 2
	call	sleep@PLT
	jmp	.L31
.L26:
	call	fork@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jne	.L32
.L37:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	down
	mov	DWORD PTR -68[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L34
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jg	.L34
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -88[rbp], al
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L35
.L34:
	add	DWORD PTR -68[rbp], 1
.L33:
	cmp	DWORD PTR -68[rbp], 3
	jle	.L36
.L35:
	movsx	eax, BYTE PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	up
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	up
	mov	edi, 2
	call	sleep@PLT
	jmp	.L37
.L32:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L38
.L43:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	down
	mov	DWORD PTR -64[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L40
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -87[rbp], al
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L41
.L40:
	add	DWORD PTR -64[rbp], 1
.L39:
	cmp	DWORD PTR -64[rbp], 3
	jle	.L42
.L41:
	movsx	eax, BYTE PTR -87[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	up
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	up
	mov	edi, 2
	call	sleep@PLT
	jmp	.L43
.L38:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L44:
	cmp	DWORD PTR -60[rbp], 3
	jle	.L45
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 10
	call	sleep@PLT
	jmp	.L38
.L7:
	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	"758405.c"
	.text
	.comm	buf,6,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Down failed!/n\000"
	.text
	.align	2
	.global	down
	.syntax unified
	.arm
	.fpu softvfp
	.type	down, %function
down:
	@ 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, .L4
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L4
	mvn	r2, #0
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L4
	mov	r2, #4096
	strh	r2, [r3, #4]	@ movhi
	mov	r2, #1
	ldr	r1, .L4
	ldr	r0, [fp, #-8]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L4+4
	bl	perror
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	buf
	.word	.LC0
	.size	down, .-down
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Up failed!/n\000"
	.text
	.align	2
	.global	up
	.syntax unified
	.arm
	.fpu softvfp
	.type	up, %function
up:
	@ 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, .L9
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L9
	mov	r2, #1
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L9
	mov	r2, #4096
	strh	r2, [r3, #4]	@ movhi
	mov	r2, #1
	ldr	r1, .L9
	ldr	r0, [fp, #-8]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L9+4
	bl	perror
	mov	r3, #0
	b	.L8
.L7:
	mov	r3, #1
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	buf
	.word	.LC1
	.size	up, .-up
	.section	.rodata
	.align	2
.LC2:
	.ascii	"set the mutex error\012\000"
	.align	2
.LC3:
	.ascii	"set the full error\012\000"
	.align	2
.LC4:
	.ascii	"set the empty error/n\000"
	.align	2
.LC5:
	.ascii	"Producer P1 insert letter: %c\012\000"
	.align	2
.LC6:
	.ascii	"Producer P2 insert letter: %c\012\000"
	.align	2
.LC7:
	.ascii	"Consumer C1 removes letter: %c\012\000"
	.align	2
.LC8:
	.ascii	"Consumer C2 removes letter: %c\012\000"
	.align	2
.LC9:
	.ascii	"Consumer C3 removes letter: %c\012\000"
	.align	2
.LC10:
	.ascii	"Buffer: \000"
	.align	2
.LC11:
	.ascii	"%c \000"
	.align	2
.LC12:
	.ascii	" \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	mov	r1, #4
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L12
.L13:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L12:
	ldr	r3, [fp, #-76]
	cmp	r3, #3
	ble	.L13
	ldr	r2, .L51
	mov	r1, #1
	mov	r0, #0
	bl	semget
	str	r0, [fp, #-44]
	ldr	r2, .L51
	mov	r1, #1
	mov	r0, #0
	bl	semget
	str	r0, [fp, #-40]
	ldr	r2, .L51
	mov	r1, #1
	mov	r0, #0
	bl	semget
	str	r0, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	semctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L51+4
	bl	perror
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-40]
	bl	semctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L51+8
	bl	perror
	b	.L11
.L16:
	mov	r3, #4
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	semctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L51+12
	bl	perror
	b	.L11
.L17:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L18
.L23:
	ldr	r0, [fp, #-36]
	bl	down
	ldr	r0, [fp, #-44]
	bl	down
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L51+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #65
	strb	r3, [fp, #-81]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L19
.L22:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L20
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r2, [fp, #-81]
	strb	r2, [r3]
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+20
	bl	printf
	b	.L21
.L20:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L19:
	ldr	r3, [fp, #-72]
	cmp	r3, #3
	ble	.L22
.L21:
	ldr	r0, [fp, #-44]
	bl	up
	ldr	r0, [fp, #-40]
	bl	up
	mov	r0, #1
	bl	sleep
	b	.L23
.L18:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L24
.L29:
	ldr	r0, [fp, #-36]
	bl	down
	ldr	r0, [fp, #-44]
	bl	down
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L51+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	add	r3, r3, #97
	strb	r3, [fp, #-82]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L25
.L28:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L26
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r2, [fp, #-82]
	strb	r2, [r3]
	ldrb	r3, [fp, #-82]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+24
	bl	printf
	b	.L27
.L26:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L25:
	ldr	r3, [fp, #-68]
	cmp	r3, #3
	ble	.L28
.L27:
	ldr	r0, [fp, #-44]
	bl	up
	ldr	r0, [fp, #-40]
	bl	up
	mov	r0, #1
	bl	sleep
	b	.L29
.L24:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L30
.L35:
	ldr	r0, [fp, #-40]
	bl	down
	ldr	r0, [fp, #-44]
	bl	down
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L31
.L34:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L32
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L32
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-85]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L33
.L32:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L31:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	ble	.L34
.L33:
	ldrb	r3, [fp, #-85]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+28
	bl	printf
	ldr	r0, [fp, #-44]
	bl	up
	ldr	r0, [fp, #-36]
	bl	up
	mov	r0, #2
	bl	sleep
	b	.L35
.L30:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L36
.L41:
	ldr	r0, [fp, #-40]
	bl	down
	ldr	r0, [fp, #-44]
	bl	down
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L37
.L40:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L38
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L38
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-84]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L39
.L38:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L37:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	ble	.L40
.L39:
	ldrb	r3, [fp, #-84]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+32
	bl	printf
	ldr	r0, [fp, #-44]
	bl	up
	ldr	r0, [fp, #-36]
	bl	up
	mov	r0, #2
	bl	sleep
	b	.L41
.L36:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L42
.L47:
	ldr	r0, [fp, #-40]
	bl	down
	ldr	r0, [fp, #-44]
	bl	down
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L43
.L46:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L44
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-83]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L45
.L44:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L43:
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	ble	.L46
.L45:
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+36
	bl	printf
	ldr	r0, [fp, #-44]
	bl	up
	ldr	r0, [fp, #-36]
	bl	up
	mov	r0, #2
	bl	sleep
	b	.L47
.L42:
	ldr	r0, .L51+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L48
.L49:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L51+44
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L48:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L49
	ldr	r0, .L51+48
	bl	puts
	mov	r0, #10
	bl	sleep
	b	.L42
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	950
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1321528399
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
