	.file	"extr_kern_lockf.c_lf_clearlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lf_clearlock, @function
lf_clearlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 32[rdi]
	mov	r15, QWORD PTR [rax]
	cmp	QWORD PTR NOLOCKF[rip], r15
	je	.L17
	mov	QWORD PTR 16[rsp], rax
	mov	rbp, rdi
	lea	r14, 8[rsp]
	lea	r13, 16[rsp]
	lea	r12, .L6[rip]
.L4:
	mov	edx, DWORD PTR SELF[rip]
	mov	r8, r14
	mov	rcx, r13
	mov	rsi, rbp
	mov	rdi, r15
	call	lf_findoverlap@PLT
	mov	ebx, eax
	cmp	eax, 129
	je	.L17
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, QWORD PTR 8[rsp]
	add	ebx, -128
	call	lf_wakelock@PLT
	cmp	ebx, 5
	ja	.L17
	movsx	rax, DWORD PTR [r12+rbx*4]
	add	rax, r12
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L17-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L17:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR M_LOCKF[rip]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rdx
	mov	rdi, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR 24[rdi]
	call	FREE@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, DWORD PTR 20[rbp]
	mov	rax, QWORD PTR 8[rsp]
	lea	edx, -1[rcx]
	mov	r15, QWORD PTR 24[rax]
	mov	DWORD PTR 16[rax], edx
	lea	rdx, 24[rax]
	mov	QWORD PTR 16[rsp], rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR M_LOCKF[rip]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rdx
	mov	rdi, QWORD PTR 8[rsp]
	call	FREE@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	add	eax, 1
	mov	DWORD PTR 20[rdx], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 20[rbp]
	cmp	DWORD PTR 20[rdi], eax
	jne	.L11
	mov	eax, DWORD PTR 16[rbp]
	add	eax, 1
	mov	DWORD PTR 20[rdi], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rbp
	call	lf_split@PLT
	test	eax, eax
	jne	.L21
	mov	rcx, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rdx], rcx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR ENOLCK[rip]
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lf_clearlock, .-lf_clearlock
	.comm	lockf_debug,4,4
	.comm	SELF,4,4
	.comm	NOLOCKF,8,8
	.comm	M_LOCKF,4,4
	.comm	LF_DBG_LOCKOP,4,4
	.comm	LF_BOOSTED,8,8
	.comm	F_UNLCK,8,8
	.comm	FALSE,4,4
	.comm	ENOLCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kern_lockf.c_lf_clearlock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lf_clearlock, %function
lf_clearlock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L21
	ldr	r3, [r0, #20]
	ldr	r2, [r2]
	ldr	r4, [r3]
	ldr	r1, .L21+4
	sub	sp, sp, #24
	cmp	r2, r4
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	beq	.L17
	mov	r5, r0
	ldr	r6, .L21+8
	ldr	r7, .L21+12
	ldr	r8, .L21+16
	str	r3, [sp, #16]
.L4:
	add	r3, sp, #12
	mov	r0, r4
	str	r3, [sp]
	mov	r1, r5
	ldr	r2, [r6]
	add	r3, sp, #16
	bl	lf_findoverlap
	cmp	r0, #129
	mov	r4, r0
	beq	.L17
	ldr	r1, [r7]
	ldr	r0, [sp, #12]
	sub	r4, r4, #128
	bl	lf_wakelock
	cmp	r4, #5
	ldrls	pc, [pc, r4, asl #2]
	b	.L17
.L6:
	.word	.L10
	.word	.L17
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L17:
	mov	r0, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	ldr	r2, [r2, #16]
	ldr	r1, [r8]
	str	r2, [r3]
	ldr	r0, [sp, #12]
	ldr	r4, [r0, #16]
	bl	FREE
	b	.L4
.L10:
	ldr	r3, [sp, #12]
	ldr	r2, [r5, #12]
	add	r1, r3, #16
	sub	r2, r2, #1
	ldr	r4, [r3, #16]
	str	r2, [r3, #8]
	str	r1, [sp, #16]
	b	.L4
.L9:
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	ldr	r1, [r3, #16]
	ldr	r3, .L21+16
	str	r1, [r2]
	ldr	r0, [sp, #12]
	ldr	r1, [r3]
	bl	FREE
	mov	r0, #0
	b	.L1
.L8:
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	add	r3, r3, #1
	mov	r0, #0
	str	r3, [r2, #12]
	b	.L1
.L7:
	ldr	r3, [sp, #12]
	ldr	r2, [r5, #12]
	ldr	r1, [r3, #12]
	cmp	r1, r2
	bne	.L11
	ldr	r2, [r5, #8]
	mov	r0, #0
	add	r2, r2, #1
	str	r2, [r3, #12]
	b	.L1
.L11:
	mov	r0, r3
	mov	r1, r5
	bl	lf_split
	cmp	r0, #0
	ldrne	r3, .L21+20
	ldreq	r2, [r5, #16]
	ldreq	r3, [sp, #12]
	ldrne	r0, [r3]
	streq	r2, [r3, #16]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	NOLOCKF
	.word	.LC0
	.word	SELF
	.word	FALSE
	.word	M_LOCKF
	.word	ENOLCK
	.size	lf_clearlock, .-lf_clearlock
	.comm	lockf_debug,4,4
	.comm	SELF,4,4
	.comm	NOLOCKF,4,4
	.comm	M_LOCKF,4,4
	.comm	LF_DBG_LOCKOP,4,4
	.comm	LF_BOOSTED,4,4
	.comm	F_UNLCK,4,4
	.comm	FALSE,4,4
	.comm	ENOLCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
