	.file	"51699473.c"
	.intel_syntax noprefix
	.text
	.globl	inc
	.bss
	.align 2
	.type	inc, @object
	.size	inc, 6
inc:
	.zero	6
	.globl	dec
	.align 2
	.type	dec, @object
	.size	dec, 6
dec:
	.zero	6
	.section	.rodata
.LC0:
	.string	"#so"
	.text
	.globl	so
	.type	so, @function
so:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	so, .-so
	.globl	myFunct
	.type	myFunct, @function
myFunct:
.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	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	lea	rsi, dec[rip]
	mov	edi, eax
	call	semop@PLT
	cmp	eax, -1
	jne	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	eax, 0
	call	so
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	lea	rsi, inc[rip]
	mov	edi, eax
	call	semop@PLT
	cmp	eax, -1
	jne	.L5
	mov	eax, -1
	jmp	.L4
.L5:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	myFunct, .-myFunct
	.globl	set_operations
	.type	set_operations, @function
set_operations:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	WORD PTR inc[rip], 0
	mov	WORD PTR inc[rip+2], 1
	mov	WORD PTR inc[rip+4], 0
	mov	WORD PTR dec[rip], 0
	mov	WORD PTR dec[rip+2], -1
	mov	WORD PTR dec[rip+4], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_operations, .-set_operations
	.globl	main
	.type	main, @function
main:
.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	eax, 0
	call	set_operations
	mov	edx, 950
	mov	esi, 1
	mov	edi, 3536
	call	semget@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, 1
	mov	edx, 16
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	rsi, so[rip]
	mov	edi, eax
	call	myFunct
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"51699473.c"
	.text
	.comm	inc,6,4
	.comm	dec,6,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"#so\000"
	.text
	.align	2
	.global	so
	.syntax unified
	.arm
	.fpu softvfp
	.type	so, %function
so:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	so, .-so
	.align	2
	.global	myFunct
	.syntax unified
	.arm
	.fpu softvfp
	.type	myFunct, %function
myFunct:
	@ 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]
	mov	r2, #1
	ldr	r1, .L8
	ldr	r0, [fp, #-8]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mvn	r3, #0
	b	.L6
.L5:
	bl	so
	mov	r2, #1
	ldr	r1, .L8+4
	ldr	r0, [fp, #-8]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	mvn	r3, #0
	b	.L6
.L7:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	dec
	.word	inc
	.size	myFunct, .-myFunct
	.align	2
	.global	set_operations
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_operations, %function
set_operations:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L11
	mov	r2, #1
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L11
	mov	r2, #0
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, .L11+4
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L11+4
	mvn	r2, #0
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L11+4
	mov	r2, #0
	strh	r2, [r3, #4]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	inc
	.word	dec
	.size	set_operations, .-set_operations
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	set_operations
	ldr	r2, .L15
	mov	r1, #1
	mov	r0, #3536
	bl	semget
	str	r0, [fp, #-12]
	mov	r3, #1
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	semctl
	ldr	r1, .L15+4
	ldr	r0, [fp, #-12]
	bl	myFunct
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	950
	.word	so
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
