	.file	"115765320.c"
	.intel_syntax noprefix
	.text
	.globl	sem_id
	.bss
	.align 4
	.type	sem_id, @object
	.size	sem_id, 4
sem_id:
	.zero	4
	.section	.rodata
.LC0:
	.string	"."
	.text
	.globl	init
	.type	init, @function
init:
.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	esi, 115
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 932
	mov	esi, 2
	mov	edi, eax
	call	semget@PLT
	mov	DWORD PTR sem_id[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.section	.rodata
.LC1:
	.string	"this is customer"
.LC2:
	.string	"\n\nbefore consume:"
.LC3:
	.string	"productor is %d\n"
.LC4:
	.string	"space  is %d\n"
.LC5:
	.string	"now consuming......"
.LC6:
	.string	"\nafter consume"
.LC7:
	.string	"products number is %d\n"
.LC8:
	.string	"space number is %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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	init
	mov	WORD PTR -20[rbp], 0
	mov	WORD PTR -18[rbp], -1
	mov	WORD PTR -16[rbp], 0
	mov	WORD PTR -14[rbp], 1
	mov	WORD PTR -12[rbp], 1
	mov	WORD PTR -10[rbp], 0
	mov	eax, 0
	call	init
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L3:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sem_id[rip]
	mov	edx, 12
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sem_id[rip]
	mov	edx, 12
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sem_id[rip]
	lea	rcx, -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sem_id[rip]
	lea	rdx, -20[rbp]
	lea	rcx, 6[rdx]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sem_id[rip]
	mov	edx, 12
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR sem_id[rip]
	mov	edx, 12
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	sleep@PLT
	jmp	.L3
	.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	"115765320.c"
	.text
	.comm	sem_id,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #115
	ldr	r0, .L2
	bl	ftok
	str	r0, [fp, #-8]
	mov	r2, #932
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	semget
	mov	r3, r0
	ldr	r2, .L2+4
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	sem_id
	.size	init, .-init
	.section	.rodata
	.align	2
.LC1:
	.ascii	"this is customer\000"
	.align	2
.LC2:
	.ascii	"\012\012before consume:\000"
	.align	2
.LC3:
	.ascii	"productor is %d\012\000"
	.align	2
.LC4:
	.ascii	"space  is %d\012\000"
	.align	2
.LC5:
	.ascii	"now consuming......\000"
	.align	2
.LC6:
	.ascii	"\012after consume\000"
	.align	2
.LC7:
	.ascii	"products number is %d\012\000"
	.align	2
.LC8:
	.ascii	"space number is %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	init
	mov	r3, #0
	strh	r3, [fp, #-20]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	bl	init
	ldr	r0, .L7+4
	bl	puts
.L5:
	ldr	r0, .L7+8
	bl	puts
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #0
	mov	r0, r3
	bl	semctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+16
	bl	printf
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	mov	r0, r3
	bl	semctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+20
	bl	printf
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r1, fp, #20
	mov	r2, #1
	mov	r0, r3
	bl	semop
	ldr	r0, .L7+24
	bl	puts
	ldr	r3, .L7+12
	ldr	r0, [r3]
	sub	r3, fp, #20
	add	r3, r3, #6
	mov	r2, #1
	mov	r1, r3
	bl	semop
	ldr	r0, .L7+28
	bl	puts
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #0
	mov	r0, r3
	bl	semctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	mov	r0, r3
	bl	semctl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	mov	r0, #3
	bl	sleep
	b	.L5
.L8:
	.align	2
.L7:
	.word	.LC9
	.word	.LC1
	.word	.LC2
	.word	sem_id
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
