	.file	"extr_comedi_fops.c_max_write_buffer_kb_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	max_write_buffer_kb_store, @function
max_write_buffer_kb_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	MINOR@PLT
	lea	rdx, 4[rsp]
	mov	esi, 10
	mov	rdi, rbp
	mov	r13d, eax
	call	kstrtouint@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR UINT_MAX[rip]
	mov	ecx, DWORD PTR 4[rsp]
	test	edx, edx
	lea	eax, 1023[rdx]
	cmovns	eax, edx
	sar	eax, 10
	cmp	eax, ecx
	jnb	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	sal	ecx, 10
	mov	edi, r13d
	mov	DWORD PTR 4[rsp], ecx
	call	comedi_dev_get_from_minor@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	test	rbp, rbp
	je	.L1
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	comedi_write_subdevice@PLT
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR SDF_CMD_WRITE[rip], edx
	je	.L5
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR [rax], edx
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	comedi_dev_put@PLT
.L6:
	mov	eax, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ebx, DWORD PTR EINVAL[rip]
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	comedi_dev_put@PLT
	test	ebx, ebx
	je	.L6
	mov	eax, ebx
	neg	eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	max_write_buffer_kb_store, .-max_write_buffer_kb_store
	.comm	UINT_MAX,4,4
	.comm	SDF_CMD_WRITE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,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_comedi_fops.c_max_write_buffer_kb_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max_write_buffer_kb_store, %function
max_write_buffer_kb_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	ldr	r3, .L24
	sub	sp, sp, #8
	ldr	r0, [r0]
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	MINOR
	mov	r3, r0
	mov	r2, sp
	mov	r0, r4
	mov	r1, #10
	mov	r4, r3
	bl	kstrtouint
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L24+4
	ldr	r1, [sp]
	ldr	r2, [r3]
	add	r3, r2, #1020
	cmp	r2, #0
	add	r3, r3, #3
	movlt	r2, r3
	cmp	r1, r2, asr #10
	bls	.L3
	ldr	r3, .L24+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	lsl	r1, r1, #10
	mov	r0, r4
	str	r1, [sp]
	bl	comedi_dev_get_from_minor
	subs	r6, r0, #0
	beq	.L23
	bl	mutex_lock
	mov	r1, r4
	mov	r0, r6
	bl	comedi_write_subdevice
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L24+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [sp]
	mov	r0, r6
	str	r2, [r3]
	bl	mutex_unlock
	mov	r0, r6
	bl	comedi_dev_put
.L6:
	mov	r0, r5
	b	.L1
.L5:
	ldr	r3, .L24+8
	mov	r0, r6
	ldr	r4, [r3]
	bl	mutex_unlock
	mov	r0, r6
	bl	comedi_dev_put
	cmp	r4, #0
	rsbne	r0, r4, #0
	bne	.L1
	b	.L6
.L23:
	ldr	r3, .L24+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	UINT_MAX
	.word	EINVAL
	.word	SDF_CMD_WRITE
	.word	ENODEV
	.size	max_write_buffer_kb_store, .-max_write_buffer_kb_store
	.comm	UINT_MAX,4,4
	.comm	SDF_CMD_WRITE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
