	.file	"888377.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	amHighlander, @object
	.size	amHighlander, 4
amHighlander:
	.long	-1
	.local	semk
	.comm	semk,8,8
	.local	seml
	.comm	seml,8,8
	.section	.rodata
.LC0:
	.string	"/power_wrapperK"
.LC1:
	.string	"/power_wrapperL"
	.text
	.globl	highlander
	.type	highlander, @function
highlander:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR amHighlander[rip]
	cmp	eax, -1
	je	.L2
	mov	eax, DWORD PTR amHighlander[rip]
	jmp	.L3
.L2:
	mov	ecx, 0
	mov	edx, 384
	mov	esi, 192
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR semk[rip], rax
	mov	rax, QWORD PTR semk[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR semk[rip]
	test	rax, rax
	jne	.L5
.L4:
	mov	ecx, 0
	mov	edx, 384
	mov	esi, 64
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR semk[rip], rax
	mov	ecx, 0
	mov	edx, 384
	mov	esi, 64
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR seml[rip], rax
	mov	rax, QWORD PTR semk[rip]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR semk[rip]
	lea	rdx, -12[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	mov	DWORD PTR amHighlander[rip], 0
	mov	eax, 0
	jmp	.L3
.L5:
	mov	ecx, 0
	mov	edx, 384
	mov	esi, 64
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR seml[rip], rax
	mov	DWORD PTR amHighlander[rip], 1
	mov	eax, 1
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	highlander, .-highlander
	.section	.rodata
	.align 8
.LC2:
	.string	"Removing named semaphore /power_wrapperK\n"
	.align 8
.LC3:
	.string	"Removing named semaphore /power_wrapperL\n"
	.text
	.globl	highlander_clean
	.type	highlander_clean, @function
highlander_clean:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, .LC1[rip]
	call	sem_unlink@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	highlander_clean, .-highlander_clean
	.globl	highlander_wait
	.type	highlander_wait, @function
highlander_wait:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR amHighlander[rip]
	test	eax, eax
	jns	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, DWORD PTR amHighlander[rip]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR semk[rip]
	lea	rdx, -12[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sem_getvalue@PLT
	jmp	.L13
.L14:
	mov	rax, QWORD PTR seml[rip]
	mov	rdi, rax
	call	sem_wait@PLT
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jg	.L14
	mov	rax, QWORD PTR semk[rip]
	mov	rdi, rax
	call	sem_close@PLT
	mov	rax, QWORD PTR seml[rip]
	mov	rdi, rax
	call	sem_close@PLT
	lea	rdi, .LC0[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC1[rip]
	call	sem_unlink@PLT
	mov	eax, 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR semk[rip]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR seml[rip]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR semk[rip]
	mov	rdi, rax
	call	sem_close@PLT
	mov	rax, QWORD PTR seml[rip]
	mov	rdi, rax
	call	sem_close@PLT
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	highlander_wait, .-highlander_wait
	.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	"888377.c"
	.text
	.data
	.align	2
	.type	amHighlander, %object
	.size	amHighlander, 4
amHighlander:
	.word	-1
	.local	semk
	.comm	semk,4,4
	.local	seml
	.comm	seml,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/power_wrapperK\000"
	.align	2
.LC1:
	.ascii	"/power_wrapperL\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	highlander
	.syntax unified
	.arm
	.fpu softvfp
	.type	highlander, %function
highlander:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L2
	ldr	r3, .L7+4
	ldr	r3, [r3]
	b	.L3
.L2:
	mov	r3, #0
	mov	r2, #384
	mov	r1, #192
	ldr	r0, .L7+8
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L7+12
	str	r3, [r2]
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
.L4:
	mov	r3, #0
	mov	r2, #384
	mov	r1, #64
	ldr	r0, .L7+8
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L7+12
	str	r3, [r2]
	mov	r3, #0
	mov	r2, #384
	mov	r1, #64
	ldr	r0, .L7+16
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L7+20
	str	r3, [r2]
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r2, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	ldr	r3, .L7+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L3
.L5:
	mov	r3, #0
	mov	r2, #384
	mov	r1, #64
	ldr	r0, .L7+16
	bl	sem_open
	mov	r3, r0
	ldr	r2, .L7+20
	str	r3, [r2]
	ldr	r3, .L7+4
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
.L3:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	amHighlander
	.word	.LC0
	.word	semk
	.word	.LC1
	.word	seml
	.size	highlander, .-highlander
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Removing named semaphore /power_wrapperK\012\000"
	.align	2
.LC4:
	.ascii	"Removing named semaphore /power_wrapperL\012\000"
	.text
	.align	2
	.global	highlander_clean
	.syntax unified
	.arm
	.fpu softvfp
	.type	highlander_clean, %function
highlander_clean:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L11+4
	bl	fwrite
	ldr	r0, .L11+8
	bl	sem_unlink
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	ldr	r0, .L11+16
	bl	sem_unlink
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	stdout
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.size	highlander_clean, .-highlander_clean
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	highlander_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	highlander_wait, %function
highlander_wait:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L14
	mov	r3, #1
	b	.L15
.L14:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L20+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	sem_getvalue
	b	.L17
.L18:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L18
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r0, .L20+16
	bl	sem_unlink
	ldr	r0, .L20+20
	bl	sem_unlink
	mov	r3, #0
	b	.L15
.L16:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	mov	r3, #0
.L15:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	amHighlander
	.word	semk
	.word	seml
	.word	.LC0
	.word	.LC1
	.size	highlander_wait, .-highlander_wait
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
