	.file	"extr_dasd_devmap.c_dasd_ro_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dasd_ro_store, @function
dasd_ro_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, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_ccwdev@PLT
	xor	esi, esi
	lea	rdx, 4[rsp]
	mov	rdi, r12
	mov	rbp, rax
	call	kstrtouint@PLT
	test	rax, rax
	jne	.L2
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, 1
	jbe	.L3
.L2:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	mov	esi, DWORD PTR DASD_FEATURE_READONLY[rip]
	mov	rdi, rbp
	call	dasd_set_feature@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	mov	r12d, ebx
	call	dasd_device_from_cdev@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	get_ccwdev_lock@PLT
	xor	esi, esi
	mov	edi, eax
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	eax, 1
	test	edx, edx
	je	.L14
.L5:
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L15
.L8:
	mov	rdi, rbp
	call	get_ccwdev_lock@PLT
	xor	esi, esi
	mov	edi, eax
	call	spin_unlock_irqrestore@PLT
.L7:
	mov	rdi, r13
	call	dasd_put_device@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR DASD_FLAG_OFFLINE[rip]
	lea	rsi, 8[r13]
	call	test_bit@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, QWORD PTR 0[r13]
	call	atomic_inc@PLT
	mov	rdi, rbp
	call	get_ccwdev_lock@PLT
	xor	esi, esi
	mov	edi, eax
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR 4[rax]
	call	set_disk_ro@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	atomic_dec@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR DASD_FLAG_DEVICE_RO[rip]
	lea	rsi, 8[r13]
	call	test_bit@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dasd_ro_store, .-dasd_ro_store
	.comm	EINVAL,4,4
	.comm	DASD_FLAG_OFFLINE,4,4
	.comm	DASD_FLAG_DEVICE_RO,4,4
	.comm	DASD_FEATURE_READONLY,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_dasd_devmap.c_dasd_ro_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	dasd_ro_store, %function
dasd_ro_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L19
	sub	sp, sp, #12
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_ccwdev
	mov	r2, sp
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	bl	kstrtouint
	cmp	r0, #0
	bne	.L2
	ldr	r2, [sp]
	cmp	r2, #1
	bls	.L3
.L2:
	ldr	r3, .L19+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, .L19+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	dasd_set_feature
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	dasd_device_from_cdev
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	mov	r4, r6
	bne	.L1
	mov	r0, r5
	bl	get_ccwdev_lock
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [sp]
	cmp	r3, #0
	movne	r0, #1
	beq	.L17
.L5:
	ldr	r3, [r7]
	str	r0, [sp]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
.L8:
	mov	r0, r5
	bl	get_ccwdev_lock
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L7:
	mov	r0, r7
	bl	dasd_put_device
	b	.L1
.L18:
	ldr	r3, .L19+12
	add	r1, r7, #4
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L8
	ldr	r0, [r7]
	bl	atomic_inc
	mov	r0, r5
	bl	get_ccwdev_lock
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, [r7]
	ldr	r1, [sp]
	ldr	r0, [r3, #4]
	bl	set_disk_ro
	ldr	r0, [r7]
	bl	atomic_dec
	b	.L7
.L17:
	ldr	r3, .L19+16
	add	r1, r7, #4
	ldr	r0, [r3]
	bl	test_bit
	subs	r0, r0, #0
	movne	r0, #1
	b	.L5
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	EINVAL
	.word	DASD_FEATURE_READONLY
	.word	DASD_FLAG_OFFLINE
	.word	DASD_FLAG_DEVICE_RO
	.size	dasd_ro_store, .-dasd_ro_store
	.comm	EINVAL,4,4
	.comm	DASD_FLAG_OFFLINE,4,4
	.comm	DASD_FLAG_DEVICE_RO,4,4
	.comm	DASD_FEATURE_READONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
