	.file	"extr_dev.c_fuse_dev_do_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fuse_dev_do_write, @function
fuse_dev_do_write:
.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
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	rdx, 15
	ja	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L3:
	test	r12d, r12d
	je	.L13
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 28[rsp]
	mov	ecx, eax
	add	ecx, DWORD PTR ENOSYS[rip]
	je	.L33
	add	eax, DWORD PTR EAGAIN[rip]
	je	.L14
.L30:
	mov	rdi, r13
	mov	rsi, r14
	call	fuse_put_request@PLT
	mov	rdi, rbp
	call	fuse_copy_finish@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbp, rsi
	mov	r13, QWORD PTR 24[rdi]
	mov	r15, rdi
	lea	rsi, 16[rsp]
	mov	edx, 16
	mov	rdi, rbp
	call	fuse_copy_one@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	QWORD PTR 16[rsp], rbx
	jne	.L4
	mov	ecx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 28[rsp]
	test	ecx, ecx
	je	.L34
	add	esi, 999
	cmp	esi, 999
	ja	.L4
	mov	rdi, r15
	call	spin_lock@PLT
	cmp	QWORD PTR 8[r15], 0
	jne	.L6
.L29:
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	rdi, r15
	neg	r12d
	call	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	fuse_copy_finish@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR FUSE_INT_REQ_BIT[rip]
	mov	rdi, r15
	not	esi
	and	esi, DWORD PTR 24[rsp]
	call	request_find@PLT
	mov	r14, rax
	test	rax, rax
	je	.L29
	mov	r12d, DWORD PTR 24[rsp]
	and	r12d, DWORD PTR FUSE_INT_REQ_BIT[rip]
	jne	.L35
	lea	rax, 4[rax]
	mov	edi, DWORD PTR FR_SENT[rip]
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	clear_bit@PLT
	lea	rsi, 16[r15]
	mov	rdi, r14
	call	list_move@PLT
	movdqa	xmm0, XMMWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR FR_LOCKED[rip]
	movups	XMMWORD PTR 8[r14], xmm0
	call	set_bit@PLT
	mov	rdi, r15
	call	spin_unlock@PLT
	mov	rsi, QWORD PTR 24[r14]
	mov	QWORD PTR 8[rbp], r14
	mov	edx, DWORD PTR [rsi]
	test	edx, edx
	jne	.L15
	mov	QWORD PTR 0[rbp], 0
.L15:
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	je	.L16
	cmp	rbx, 16
	je	.L17
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L18:
	mov	rdi, rbp
	call	fuse_copy_finish@PLT
	mov	rdi, r15
	call	spin_lock@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR FR_LOCKED[rip]
	call	clear_bit@PLT
	cmp	QWORD PTR 8[r15], 0
	je	.L23
	test	r12d, r12d
	je	.L20
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	mov	DWORD PTR 20[r14], eax
.L20:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR FR_PRIVATE[rip]
	call	test_bit@PLT
	test	eax, eax
	je	.L36
.L21:
	mov	rdi, r15
	call	spin_unlock@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	fuse_request_end@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rdx, -16[rbx]
	mov	rcx, rbp
	mov	rdi, r13
	call	fuse_notify@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, rax
	call	__fuse_get_request@PLT
	mov	rdi, r15
	call	spin_unlock@PLT
	cmp	rbx, 16
	je	.L10
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L11:
	mov	rsi, r14
	mov	rdi, r13
	call	fuse_put_request@PLT
	jmp	.L4
.L17:
	mov	rdi, rbp
	call	fuse_copy_finish@PLT
	mov	rdi, r15
	call	spin_lock@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR FR_LOCKED[rip]
	call	clear_bit@PLT
	cmp	QWORD PTR 8[r15], 0
	jne	.L20
.L23:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdx, rbx
	mov	rdi, rbp
	call	copy_out_args@PLT
	mov	r12d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, r14
	call	list_del_init@PLT
	jmp	.L21
.L33:
	mov	DWORD PTR 0[r13], 1
	jmp	.L30
.L14:
	lea	rdi, 4[r13]
	mov	rsi, r14
	call	queue_interrupt@PLT
	mov	r12d, eax
	jmp	.L11
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fuse_dev_do_write, .-fuse_dev_do_write
	.comm	FUSE_INT_REQ_BIT,4,4
	.comm	FR_SENT,4,4
	.comm	FR_PRIVATE,4,4
	.comm	FR_LOCKED,4,4
	.comm	ENOSYS,4,4
	.comm	ENOENT,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,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_dev.c_fuse_dev_do_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fuse_dev_do_write, %function
fuse_dev_do_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L39
	sub	sp, sp, #20
	cmp	r2, #11
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bhi	.L2
	ldr	r3, .L39+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L3:
	cmp	r4, #0
	beq	.L13
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r2, .L39+8
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	cmn	r3, r2
	beq	.L35
	ldr	r2, .L39+12
	mov	r1, r10
	ldr	r2, [r2]
	cmn	r3, r2
	beq	.L14
	mov	r0, r9
	bl	fuse_put_request
	mov	r0, r6
	bl	fuse_copy_finish
.L13:
	mov	r4, r5
	b	.L1
.L2:
	mov	r6, r1
	mov	r8, sp
	mov	r7, r0
	mov	r1, r8
	mov	r2, #12
	mov	r0, r6
	ldr	r9, [r7, #12]
	bl	fuse_copy_one
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L39+4
	ldr	r2, [sp]
	ldr	r4, [r3]
	cmp	r2, r5
	rsb	r4, r4, #0
	bne	.L4
	ldr	r2, [sp, #4]
	ldr	r1, [sp, #8]
	cmp	r2, #0
	beq	.L36
	add	r1, r1, #996
	add	r1, r1, #3
	cmp	r1, #1000
	bcs	.L4
	mov	r0, r7
	bl	spin_lock
	ldr	r2, [r7, #4]
	cmp	r2, #0
	bne	.L6
.L32:
	ldr	r3, .L39+16
	mov	r0, r7
	ldr	r4, [r3]
	rsb	r4, r4, #0
	bl	spin_unlock
.L4:
	mov	r0, r6
	bl	fuse_copy_finish
	b	.L3
.L6:
	ldr	r4, .L39+20
	ldr	r2, [sp, #4]
	ldr	r1, [r4]
	mov	r0, r7
	bic	r1, r2, r1
	bl	request_find
	subs	r10, r0, #0
	beq	.L32
	ldr	r2, [r4]
	ldr	r4, [sp, #4]
	ands	r4, r4, r2
	bne	.L37
	ldr	r2, .L39+24
	add	fp, r10, #4
	ldr	r0, [r2]
	mov	r1, fp
	bl	clear_bit
	add	r1, r7, #8
	mov	r0, r10
	bl	list_move
	ldm	r8, {r0, r1, r2}
	ldr	r3, .L39+28
	add	ip, r10, #8
	stm	ip, {r0, r1, r2}
	mov	r1, fp
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r7
	bl	spin_unlock
	ldr	r1, [r10, #20]
	ldr	r3, .L39+4
	ldr	r2, [r1]
	str	r10, [r6, #4]
	cmp	r2, #0
	ldr	r2, [sp, #8]
	streq	r4, [r6]
	cmp	r2, #0
	beq	.L16
	cmp	r5, #12
	beq	.L17
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L18:
	mov	r0, r6
	bl	fuse_copy_finish
	mov	r0, r7
	bl	spin_lock
	ldr	r3, .L39+28
	mov	r1, fp
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L23
	cmp	r4, #0
	ldrne	r3, .L39+32
	ldrne	r3, [r3]
	rsbne	r3, r3, #0
	strne	r3, [r10, #16]
.L20:
	ldr	r3, .L39+36
	mov	r1, fp
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L38
.L21:
	mov	r0, r7
	bl	spin_unlock
	mov	r1, r10
	mov	r0, r9
	bl	fuse_request_end
	b	.L3
.L36:
	mov	r3, r6
	mov	r0, r9
	sub	r2, r5, #12
	bl	fuse_notify
	mov	r4, r0
	b	.L3
.L37:
	bl	__fuse_get_request
	mov	r0, r7
	bl	spin_unlock
	cmp	r5, #12
	beq	.L10
	ldr	r3, .L39+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L11:
	mov	r1, r10
	mov	r0, r9
	bl	fuse_put_request
	b	.L4
.L17:
	mov	r0, r6
	bl	fuse_copy_finish
	mov	r0, r7
	bl	spin_lock
	ldr	r3, .L39+28
	mov	r1, fp
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r3, [r7, #4]
	cmp	r3, #0
	bne	.L20
.L23:
	ldr	r3, .L39+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L20
.L16:
	mov	r2, r5
	mov	r0, r6
	bl	copy_out_args
	mov	r4, r0
	b	.L18
.L38:
	mov	r0, r10
	bl	list_del_init
	b	.L21
.L35:
	mov	r3, #1
	mov	r1, r10
	mov	r0, r9
	str	r3, [r9]
	bl	fuse_put_request
	mov	r0, r6
	bl	fuse_copy_finish
	b	.L13
.L14:
	add	r0, r9, #4
	bl	queue_interrupt
	mov	r4, r0
	b	.L11
.L34:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	EINVAL
	.word	ENOSYS
	.word	EAGAIN
	.word	ENOENT
	.word	FUSE_INT_REQ_BIT
	.word	FR_SENT
	.word	FR_LOCKED
	.word	EIO
	.word	FR_PRIVATE
	.size	fuse_dev_do_write, .-fuse_dev_do_write
	.comm	FUSE_INT_REQ_BIT,4,4
	.comm	FR_SENT,4,4
	.comm	FR_PRIVATE,4,4
	.comm	FR_LOCKED,4,4
	.comm	ENOSYS,4,4
	.comm	ENOENT,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
