	.file	"553114.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"invalid pid specified"
.LC1:
	.string	"df:p:u"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -40[rbp], -1
	jmp	.L2
.L10:
	cmp	DWORD PTR -36[rbp], 117
	je	.L3
	cmp	DWORD PTR -36[rbp], 117
	jg	.L4
	cmp	DWORD PTR -36[rbp], 112
	je	.L5
	cmp	DWORD PTR -36[rbp], 112
	jg	.L4
	cmp	DWORD PTR -36[rbp], 100
	je	.L6
	cmp	DWORD PTR -36[rbp], 102
	je	.L7
	jmp	.L4
.L6:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L2
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L2
.L5:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -32[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L8
	cmp	QWORD PTR -16[rbp], 0
	jle	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	je	.L2
.L8:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L3:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L2
.L4:
	call	usage
.L2:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L10
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -64[rbp], rax
	cmp	DWORD PTR -52[rbp], 0
	je	.L11
	call	usage
.L11:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	call	usage
.L12:
	cmp	DWORD PTR -40[rbp], -1
	je	.L13
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	create_lock
	jmp	.L15
.L13:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_lock
.L15:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%ld\n"
.LC3:
	.string	"snprintf() failed"
.LC4:
	.string	"dirname() failed"
.LC5:
	.string	"%s/shlock%ld"
.LC6:
	.string	"snprintf failed"
	.align 8
.LC7:
	.string	"%s: trying lock file %s for process %ld\n"
	.align 8
.LC8:
	.string	"could not create tempory lock file"
	.align 8
.LC9:
	.string	"temporary lock file %s existed already"
	.align 8
.LC10:
	.string	"could not remove old temporary lock file %s"
	.align 8
.LC11:
	.string	"could not write PID to temporary lock file"
	.align 8
.LC12:
	.string	"could not remove temporary lock file %s"
.LC13:
	.string	"could not create lock file"
.LC14:
	.string	"%s: stale lock file removed\n"
	.align 8
.LC15:
	.string	"could not remove stale lock file"
	.align 8
.LC16:
	.string	"%s: lock successfully obtained\n"
	.text
	.type	create_lock, @function
create_lock:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -4168[rbp], rdi
	mov	DWORD PTR -4172[rbp], esi
	mov	DWORD PTR -4176[rbp], edx
	mov	DWORD PTR -4180[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -4172[rbp]
	movsx	rdx, eax
	lea	rax, -4144[rbp]
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -4160[rbp], eax
	cmp	DWORD PTR -4160[rbp], 15
	jg	.L18
	cmp	DWORD PTR -4160[rbp], -1
	jne	.L19
.L18:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L19:
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	dirname@PLT
	mov	QWORD PTR -4152[rbp], rax
	cmp	QWORD PTR -4152[rbp], 0
	jne	.L20
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L20:
	call	getpid@PLT
	movsx	rcx, eax
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4128[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -4160[rbp], eax
	cmp	DWORD PTR -4160[rbp], 4095
	jg	.L21
	cmp	DWORD PTR -4160[rbp], -1
	jne	.L22
.L21:
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L22:
	cmp	DWORD PTR -4180[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -4172[rbp]
	movsx	rbx, eax
	mov	eax, 0
	call	getprogname@PLT
	mov	esi, eax
	mov	rax, QWORD PTR -4168[rbp]
	mov	rcx, rbx
	mov	rdx, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L27:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L25
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L25:
	cmp	DWORD PTR -4180[rbp], 0
	je	.L26
	lea	rax, -4128[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	warnx@PLT
.L26:
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L24
	lea	rax, -4128[rbp]
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L24:
	lea	rax, -4128[rbp]
	mov	edx, 420
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4156[rbp], eax
	cmp	DWORD PTR -4156[rbp], -1
	je	.L27
	cmp	DWORD PTR -4176[rbp], 0
	je	.L28
	lea	rcx, -4172[rbp]
	mov	eax, DWORD PTR -4156[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	jne	.L29
.L28:
	cmp	DWORD PTR -4176[rbp], 0
	jne	.L30
	lea	rax, -4144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -4144[rbp]
	mov	eax, DWORD PTR -4156[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rbx, rax
	lea	rax, -4144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	cmp	rbx, rax
	je	.L30
.L29:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -4156[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L31
	lea	rax, -4128[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L31:
	mov	eax, 1
	jmp	.L43
.L30:
	mov	eax, DWORD PTR -4156[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L33
.L40:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L34
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L35
	lea	rax, -4128[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L35:
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L34:
	mov	edx, DWORD PTR -4180[rbp]
	mov	ecx, DWORD PTR -4176[rbp]
	mov	rax, QWORD PTR -4168[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_lock
	test	eax, eax
	jne	.L36
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L37
	lea	rax, -4128[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L37:
	mov	eax, 1
	jmp	.L43
.L36:
	mov	rax, QWORD PTR -4168[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	jne	.L38
	mov	eax, 0
	call	getprogname@PLT
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L33
.L38:
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L39
	lea	rax, -4128[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L39:
	lea	rsi, .LC15[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L33:
	mov	rdx, QWORD PTR -4168[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	link@PLT
	test	eax, eax
	jne	.L40
	cmp	DWORD PTR -4180[rbp], 0
	je	.L41
	mov	eax, 0
	call	getprogname@PLT
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	je	.L42
	lea	rax, -4128[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	warn@PLT
.L42:
	mov	eax, 0
.L43:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_lock, .-create_lock
	.section	.rodata
.LC17:
	.string	"could not open lock file"
.LC18:
	.string	"could not read lock file"
.LC19:
	.string	"found empty lock file"
.LC20:
	.string	"invalid lock file format"
	.text
	.type	check_lock, @function
check_lock:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	DWORD PTR -80[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L46
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L47
	mov	eax, 1
	jmp	.L69
.L47:
	lea	rsi, .LC17[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L46:
	cmp	DWORD PTR -76[rbp], 0
	je	.L49
	mov	edx, 4
	jmp	.L50
.L49:
	mov	edx, 16
.L50:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	QWORD PTR -48[rbp], 0
	jns	.L51
	cmp	DWORD PTR -80[rbp], 0
	je	.L52
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	warn@PLT
.L52:
	mov	eax, 1
	jmp	.L69
.L51:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L53
	cmp	DWORD PTR -80[rbp], 0
	je	.L54
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	warnx@PLT
.L54:
	mov	eax, 1
	jmp	.L69
.L53:
	cmp	DWORD PTR -76[rbp], 0
	je	.L55
	cmp	QWORD PTR -48[rbp], 4
	je	.L56
	cmp	DWORD PTR -80[rbp], 0
	je	.L57
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	warnx@PLT
.L57:
	mov	eax, 1
	jmp	.L69
.L56:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -64[rbp], eax
	jmp	.L58
.L55:
	cmp	QWORD PTR -48[rbp], 16
	jne	.L59
	cmp	DWORD PTR -80[rbp], 0
	je	.L60
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	warnx@PLT
.L60:
	mov	eax, 1
	jmp	.L69
.L59:
	mov	BYTE PTR -16[rbp], 0
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rcx, -56[rbp]
	lea	rax, -32[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L62
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L63
.L62:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L63
	cmp	QWORD PTR -40[rbp], 0
	jle	.L63
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	je	.L58
.L63:
	cmp	DWORD PTR -80[rbp], 0
	je	.L65
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	warnx@PLT
.L65:
	mov	eax, 1
	jmp	.L69
.L58:
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, 0
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jne	.L66
	mov	eax, 0
	jmp	.L69
.L66:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L67
	cmp	eax, 3
	jne	.L68
	mov	eax, 1
	jmp	.L69
.L67:
	mov	eax, 0
	jmp	.L69
.L68:
	mov	eax, 0
.L69:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_lock, .-check_lock
	.section	.rodata
	.align 8
.LC21:
	.string	"%s [-u] [-d] [-p pid] -f file\n"
	.text
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	getprogname@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.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	"553114.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"invalid pid specified\000"
	.align	2
.LC1:
	.ascii	"df:p:u\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L11:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #100
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
.L8:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L2
.L7:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L2
.L6:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	sub	r1, fp, #36
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L2
.L9:
	ldr	r1, .L18+8
	mov	r0, #1
	bl	errx
.L4:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L18+12
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L18+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, .L18+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L12
	bl	usage
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	bl	usage
.L13:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L14
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	create_lock
	mov	r3, r0
	b	.L16
.L14:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	check_lock
	mov	r3, r0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	optarg
	.word	.LC0
	.word	.LC1
	.word	optind
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%ld\012\000"
	.align	2
.LC4:
	.ascii	"snprintf() failed\000"
	.align	2
.LC5:
	.ascii	"dirname() failed\000"
	.align	2
.LC6:
	.ascii	"%s/shlock%ld\000"
	.align	2
.LC7:
	.ascii	"snprintf failed\000"
	.align	2
.LC8:
	.ascii	"%s: trying lock file %s for process %ld\012\000"
	.align	2
.LC9:
	.ascii	"could not create tempory lock file\000"
	.align	2
.LC10:
	.ascii	"temporary lock file %s existed already\000"
	.align	2
.LC11:
	.ascii	"could not remove old temporary lock file %s\000"
	.align	2
.LC12:
	.ascii	"could not write PID to temporary lock file\000"
	.align	2
.LC13:
	.ascii	"could not remove temporary lock file %s\000"
	.align	2
.LC14:
	.ascii	"could not create lock file\000"
	.align	2
.LC15:
	.ascii	"%s: stale lock file removed\012\000"
	.align	2
.LC16:
	.ascii	"could not remove stale lock file\000"
	.align	2
.LC17:
	.ascii	"%s: lock successfully obtained\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_lock, %function
create_lock:
	@ args = 0, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-36]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-40]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-44]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-48]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r2, .L48+4
	mov	r1, #16
	bl	snprintf
	str	r0, [r4, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #15
	bgt	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmn	r3, #1
	bne	.L22
.L21:
	ldr	r1, .L48+8
	mov	r0, #1
	bl	err
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	dirname
	str	r0, [r4, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L23
	ldr	r1, .L48+12
	mov	r0, #1
	bl	err
.L23:
	bl	getpid
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp]
	ldr	r3, [r2, #-28]
	ldr	r2, .L48+16
	mov	r1, #4096
	bl	snprintf
	str	r0, [r4, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #4096
	bge	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmn	r3, #1
	bne	.L25
.L24:
	ldr	r1, .L48+20
	mov	r0, #1
	bl	err
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	beq	.L27
	bl	getprogname
	mov	r1, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-36]
	ldr	r0, .L48+24
	bl	printf
	b	.L27
.L30:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L28
	ldr	r1, .L48+28
	mov	r0, #1
	bl	err
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L48+32
	bl	warnx
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L48+36
	mov	r0, #1
	bl	err
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #420
	mov	r1, #194
	mov	r0, r3
	bl	open
	str	r0, [r4, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmn	r3, #1
	beq	.L30
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L31
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [r0, #-24]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	bne	.L32
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-24]
	bl	write
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	beq	.L33
.L32:
	ldr	r0, .L48+40
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L48+44
	mov	r0, #1
	bl	err
.L34:
	mov	r3, #1
	b	.L46
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	close
	b	.L36
.L43:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L37
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L48+44
	mov	r0, #1
	bl	err
.L38:
	ldr	r1, .L48+48
	mov	r0, #1
	bl	err
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-48]
	ldr	r1, [r1, #-44]
	ldr	r0, [r3, #-36]
	bl	check_lock
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L48+44
	mov	r0, #1
	bl	err
.L40:
	mov	r3, #1
	b	.L46
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	bl	getprogname
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L48+52
	bl	printf
	b	.L36
.L41:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L48+44
	mov	r0, #1
	bl	err
.L42:
	ldr	r1, .L48+56
	mov	r0, #1
	bl	err
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-36]
	mov	r0, r3
	bl	link
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	beq	.L44
	bl	getprogname
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L48+60
	bl	printf
.L44:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L48+44
	bl	warn
.L45:
	mov	r3, #0
.L46:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC18
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	create_lock, .-create_lock
	.section	.rodata
	.align	2
.LC19:
	.ascii	"could not open lock file\000"
	.align	2
.LC20:
	.ascii	"could not read lock file\000"
	.align	2
.LC21:
	.ascii	"found empty lock file\000"
	.align	2
.LC22:
	.ascii	"invalid lock file format\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_lock, %function
check_lock:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L52
	mov	r3, #1
	b	.L74
.L52:
	ldr	r1, .L76+4
	mov	r0, #1
	bl	err
.L51:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L54
	mov	r2, #4
	b	.L55
.L54:
	mov	r2, #16
.L55:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L56
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L57
	ldr	r0, .L76+8
	bl	warn
.L57:
	mov	r3, #1
	b	.L74
.L56:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L59
	ldr	r0, .L76+12
	bl	warnx
.L59:
	mov	r3, #1
	b	.L74
.L58:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	beq	.L61
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L62
	ldr	r0, .L76+16
	bl	warnx
.L62:
	mov	r3, #1
	b	.L74
.L61:
	sub	r1, fp, #24
	sub	r3, fp, #44
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	b	.L63
.L60:
	ldr	r3, [fp, #-32]
	cmp	r3, #16
	bne	.L64
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L65
	ldr	r0, .L76+16
	bl	warnx
.L65:
	mov	r3, #1
	b	.L74
.L64:
	mov	r3, #0
	strb	r3, [fp, #-8]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r1, fp, #40
	sub	r3, fp, #24
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L68
.L67:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L68
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L63
.L68:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L76+16
	bl	warnx
.L70:
	mov	r3, #1
	b	.L74
.L63:
	ldr	r3, [fp, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	mov	r3, #0
	b	.L74
.L71:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L72
	cmp	r3, #3
	bne	.L73
	mov	r3, #1
	b	.L74
.L72:
	mov	r3, #0
	b	.L74
.L73:
	mov	r3, #0
.L74:
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC23
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	check_lock, .-check_lock
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%s [-u] [-d] [-p pid] -f file\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L79
	ldr	r4, [r3]
	bl	getprogname
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L79+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L80:
	.align	2
.L79:
	.word	stderr
	.word	.LC24
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
