	.file	"12639120.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/onesync"
	.text
	.globl	SignalHandler
	.type	SignalHandler, @function
SignalHandler:
.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
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	SignalHandler, .-SignalHandler
	.section	.rodata
.LC1:
	.string	"sem_open"
.LC2:
	.string	"sem_trywait"
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, SignalHandler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	mov	ecx, 1
	mov	edx, 438
	mov	esi, 64
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L3:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	sem_trywait@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L5
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	mov	eax, 0
	jmp	.L7
.L5:
	cmp	DWORD PTR -172[rbp], 0
	jns	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	call	sync@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"12639120.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/onesync\000"
	.text
	.align	2
	.global	SignalHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	SignalHandler, %function
SignalHandler:
	@ 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	r0, .L2
	bl	sem_unlink
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	SignalHandler, .-SignalHandler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"sem_open\000"
	.align	2
.LC2:
	.ascii	"sem_trywait\000"
	.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 = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L11+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, #1
	ldr	r2, .L11+8
	mov	r1, #64
	ldr	r0, .L11+12
	bl	sem_open
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L11+16
	bl	perror
	mov	r3, #1
	b	.L9
.L5:
	ldr	r0, [fp, #-156]
	bl	sem_trywait
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L7
	ldr	r0, .L11+12
	bl	sem_unlink
	mov	r3, #0
	b	.L9
.L7:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+20
	bl	perror
	ldr	r0, .L11+12
	bl	sem_unlink
	mov	r3, #1
	b	.L9
.L8:
	bl	sync
	ldr	r0, [fp, #-156]
	bl	sem_post
	ldr	r0, .L11+12
	bl	sem_unlink
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	SignalHandler
	.word	438
	.word	.LC0
	.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
