	.file	"9513774.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nError: Lock Failed:"
.LC1:
	.string	"\nInvalid lock mode: %d\n"
	.text
	.globl	lockdss_
	.type	lockdss_, @function
lockdss_:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek64@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L2
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L5
	cmp	eax, 2
	je	.L6
	cmp	eax, 2
	jg	.L5
	test	eax, eax
	je	.L7
	cmp	eax, 1
	je	.L8
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	edi, eax
	call	lockf64@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	edi, eax
	call	lockf64@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	edi, eax
	call	lockf64@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L4:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, 3
	mov	edi, eax
	call	lockf64@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L1
.L10:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lockdss_, .-lockdss_
	.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	"9513774.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Error: Lock Failed:\000"
	.align	2
.LC1:
	.ascii	"\012Invalid lock mode: %d\012\000"
	.text
	.align	2
	.global	lockdss_
	.syntax unified
	.arm
	.fpu softvfp
	.type	lockdss_, %function
lockdss_:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3]
	mov	r3, #0
	str	r3, [sp]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r1
	bl	lseek64
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #4]
	mvn	r2, #0
	str	r2, [r3]
	b	.L1
.L2:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L9:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r1, #0
	bl	lockf64
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	b	.L1
.L8:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r1, #1
	bl	lockf64
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L12
	bl	puts
	b	.L11
.L7:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r1, #2
	bl	lockf64
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	b	.L1
.L5:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r1, #3
	bl	lockf64
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	b	.L1
.L4:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, [fp, #4]
	mvn	r2, #0
	str	r2, [r3]
	b	.L1
.L11:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.size	lockdss_, .-lockdss_
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
