	.file	"37638090.c"
	.intel_syntax noprefix
	.text
	.globl	arg
	.bss
	.align 8
	.type	arg, @object
	.size	arg, 8
arg:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d  "
	.align 8
.LC1:
	.string	"Semaphore creation becomes unsuccessful..."
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -76[rbp], 136
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 950
	mov	esi, 10
	mov	edi, eax
	call	semget@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -64[rbp], 21
	mov	DWORD PTR -60[rbp], 22
	mov	DWORD PTR -56[rbp], 223
	mov	DWORD PTR -52[rbp], 24
	mov	DWORD PTR -48[rbp], 25
	lea	rax, -64[rbp]
	mov	QWORD PTR arg[rip], rax
	mov	rdx, QWORD PTR arg[rip]
	mov	eax, DWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	edx, 17
	mov	esi, 5
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	DWORD PTR -68[rbp], eax
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	edx, 13
	mov	esi, 5
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -80[rbp], 1
.L2:
	cmp	DWORD PTR -80[rbp], 4
	jle	.L3
	cmp	DWORD PTR -68[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
.L5:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"37638090.c"
	.text
	.comm	arg,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d  \000"
	.align	2
.LC2:
	.ascii	"Semaphore creation becomes unsuccessful...\000"
	.align	2
.LC0:
	.word	21
	.word	22
	.word	223
	.word	24
	.word	25
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #136
	str	r3, [fp, #-60]
	ldr	r2, .L8+4
	mov	r1, #10
	ldr	r0, [fp, #-60]
	bl	semget
	str	r0, [fp, #-56]
	ldr	r3, .L8+8
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, .L8+12
	sub	r3, fp, #48
	str	r3, [r2]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #5
	ldr	r0, [fp, #-56]
	bl	semctl
	str	r0, [fp, #-52]
	sub	r3, fp, #28
	mov	r2, #13
	mov	r1, #5
	ldr	r0, [fp, #-56]
	bl	semctl
	str	r0, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L2
.L3:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #4
	ble	.L3
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L8+20
	bl	puts
	b	.L5
.L4:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	semctl
.L5:
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	950
	.word	.LC0
	.word	arg
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
