	.file	"extr_dm.c_dm_get_md.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dm_get_md
	.type	dm_get_md, @function
dm_get_md:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	MINOR@PLT
	mov	edi, r12d
	xor	r12d, r12d
	mov	ebx, eax
	call	MAJOR@PLT
	cmp	rax, QWORD PTR _major[rip]
	jne	.L1
	mov	ecx, DWORD PTR MINORBITS[rip]
	mov	eax, 1
	sal	eax, cl
	cmp	eax, ebx
	jbe	.L1
	lea	rdi, _minor_lock[rip]
	call	spin_lock@PLT
	mov	esi, ebx
	lea	rdi, _minor_idr[rip]
	call	idr_find@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	cmp	QWORD PTR MINOR_ALLOCED[rip], rax
	je	.L5
	mov	rdi, rax
	call	dm_disk@PLT
	mov	edi, eax
	call	disk_devt@PLT
	mov	edi, eax
	call	MINOR@PLT
	cmp	eax, ebx
	je	.L10
.L5:
	xor	r12d, r12d
.L4:
	lea	rdi, _minor_lock[rip]
	call	spin_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR DMF_FREEING[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	call	dm_deleting_md@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	call	dm_get@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dm_get_md, .-dm_get_md
	.comm	_minor_lock,4,4
	.comm	_minor_idr,4,4
	.comm	_major,8,8
	.comm	MINOR_ALLOCED,8,8
	.comm	MINORBITS,4,4
	.comm	DMF_FREEING,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_dm.c_dm_get_md.c"
	.text
	.align	2
	.global	dm_get_md
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_get_md, %function
dm_get_md:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	MINOR
	mov	r5, r0
	mov	r0, r4
	bl	MAJOR
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L7
	mov	r2, #1
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r5, r2, lsl r3
	bcs	.L7
	ldr	r0, .L11+8
	bl	spin_lock
	mov	r1, r5
	ldr	r0, .L11+12
	bl	idr_find
	subs	r4, r0, #0
	beq	.L5
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L5
	bl	dm_disk
	bl	disk_devt
	bl	MINOR
	cmp	r0, r5
	beq	.L10
.L5:
	mov	r4, #0
.L4:
	ldr	r0, .L11+8
	bl	spin_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+20
	mov	r1, r4
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	dm_deleting_md
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	dm_get
	b	.L4
.L12:
	.align	2
.L11:
	.word	_major
	.word	MINORBITS
	.word	_minor_lock
	.word	_minor_idr
	.word	MINOR_ALLOCED
	.word	DMF_FREEING
	.size	dm_get_md, .-dm_get_md
	.comm	_minor_lock,4,4
	.comm	_minor_idr,4,4
	.comm	_major,4,4
	.comm	MINOR_ALLOCED,4,4
	.comm	MINORBITS,4,4
	.comm	DMF_FREEING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
