	.file	"extr_user.c_device_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	device_close, @function
device_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 4[r12]
	call	dlm_find_lockspace_local@PLT
	test	rax, rax
	je	.L7
	lea	r14, 4[rsp]
	mov	rbp, rax
	mov	r13, rsp
	mov	rdi, r14
	call	sigfillset@PLT
	mov	edi, DWORD PTR SIG_BLOCK[rip]
	mov	rdx, r13
	mov	rsi, r14
	call	sigprocmask@PLT
	mov	edi, DWORD PTR DLM_PROC_FLAGS_CLOSING[rip]
	mov	rsi, r12
	call	set_bit@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	dlm_clear_proc_locks@PLT
	mov	rdi, r12
	call	kfree@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, rbp
	call	dlm_put_lockspace@PLT
	mov	rdi, rbp
	call	dlm_put_lockspace@PLT
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	xor	edx, edx
	mov	rsi, r13
	call	sigprocmask@PLT
	xor	eax, eax
	call	recalc_sigpending@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	device_close, .-device_close
	.comm	SIG_SETMASK,4,4
	.comm	SIG_BLOCK,4,4
	.comm	ENOENT,4,4
	.comm	DLM_PROC_FLAGS_CLOSING,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_user.c_device_close.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	device_close, %function
device_close:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, [r1]
	ldr	r3, .L9
	sub	sp, sp, #20
	ldr	r0, [r7, #4]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	dlm_find_lockspace_local
	subs	r4, r0, #0
	beq	.L7
	mov	r5, #0
	add	r0, sp, #8
	bl	sigfillset
	ldr	r3, .L9+4
	add	r2, sp, #4
	ldr	r0, [r3]
	add	r1, sp, #8
	bl	sigprocmask
	ldr	r3, .L9+8
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	mov	r1, r7
	mov	r0, r4
	bl	dlm_clear_proc_locks
	mov	r0, r7
	bl	kfree
	mov	r0, r4
	str	r5, [r6]
	bl	dlm_put_lockspace
	mov	r0, r4
	bl	dlm_put_lockspace
	ldr	r3, .L9+12
	mov	r2, r5
	ldr	r0, [r3]
	add	r1, sp, #4
	bl	sigprocmask
	bl	recalc_sigpending
	mov	r0, r5
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	SIG_BLOCK
	.word	DLM_PROC_FLAGS_CLOSING
	.word	SIG_SETMASK
	.word	ENOENT
	.size	device_close, .-device_close
	.comm	SIG_SETMASK,4,4
	.comm	SIG_BLOCK,4,4
	.comm	ENOENT,4,4
	.comm	DLM_PROC_FLAGS_CLOSING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
