	.file	"extr_dm.c_alloc_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unable to allocate device, out of memory."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"dm-%d"
.LC2:
	.string	"kdmflush"
	.text
	.p2align 4
	.type	alloc_dev, @function
alloc_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	DWORD PTR 12[rsp], edi
	mov	edi, 120
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L26
	mov	edi, DWORD PTR THIS_MODULE[rip]
	call	try_module_get@PLT
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR 12[rsp]
	cmp	edi, DWORD PTR DM_ANY_MINOR[rip]
	je	.L27
	call	specific_minor@PLT
.L6:
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR DM_TYPE_NONE[rip]
	lea	rdi, 112[r12]
	mov	DWORD PTR 116[r12], eax
	call	init_rwsem@PLT
	lea	rdi, 108[r12]
	call	mutex_init@PLT
	lea	rdi, 104[r12]
	call	mutex_init@PLT
	lea	rdi, 100[r12]
	call	spin_lock_init@PLT
	lea	rdi, 96[r12]
	call	rwlock_init@PLT
	lea	rdi, 92[r12]
	mov	esi, 1
	call	atomic_set@PLT
	lea	rdi, 88[r12]
	xor	esi, esi
	call	atomic_set@PLT
	lea	rdi, 84[r12]
	xor	esi, esi
	call	atomic_set@PLT
	xor	esi, esi
	lea	rdi, 80[r12]
	call	atomic_set@PLT
	lea	rdi, 76[r12]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 72[r12]
	call	spin_lock_init@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	blk_alloc_queue@PLT
	mov	QWORD PTR [r12], rax
	test	rax, rax
	je	.L8
	mov	rdi, r12
	call	dm_init_md_queue@PLT
	mov	edi, 1
	call	alloc_disk@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	je	.L9
	mov	rdi, QWORD PTR 64[r12]
	xor	esi, esi
	lea	rbx, dm_blk_dops[rip]
	call	atomic_set@PLT
	mov	rax, QWORD PTR 64[r12]
	xor	esi, esi
	lea	rdi, 4[rax]
	call	atomic_set@PLT
	lea	rdi, 60[r12]
	call	init_waitqueue_head@PLT
	mov	esi, DWORD PTR dm_wq_work[rip]
	lea	rdi, 56[r12]
	call	INIT_WORK@PLT
	lea	rdi, 52[r12]
	call	init_waitqueue_head@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rcx, QWORD PTR [r12]
	lea	rsi, .LC1[rip]
	mov	edx, DWORD PTR _major[rip]
	mov	QWORD PTR 16[rax], rcx
	mov	edi, DWORD PTR 4[rax]
	mov	DWORD PTR 32[rax], edx
	mov	edx, DWORD PTR 12[rsp]
	mov	QWORD PTR 24[rax], rbx
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR 8[rax], r12
	call	sprintf@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	add_disk@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR _major[rip]
	call	MKDEV@PLT
	mov	edi, DWORD PTR 48[r12]
	mov	esi, eax
	call	format_dev_t@PLT
	lea	rdi, .LC2[rip]
	call	create_singlethread_workqueue@PLT
	mov	DWORD PTR 16[r12], eax
	test	eax, eax
	je	.L10
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	call	bdget_disk@PLT
	mov	QWORD PTR 40[r12], rax
	test	rax, rax
	je	.L28
	lea	rdi, 24[r12]
	call	bio_init@PLT
	mov	rax, QWORD PTR 40[r12]
	lea	rdi, _minor_lock[rip]
	mov	QWORD PTR 32[r12], rax
	mov	eax, DWORD PTR WRITE_FLUSH[rip]
	mov	DWORD PTR 24[r12], eax
	call	spin_lock@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r12
	lea	rdi, _minor_idr[rip]
	call	idr_replace@PLT
	lea	rdi, _minor_lock[rip]
	mov	rbx, rax
	call	spin_unlock@PLT
	xor	edi, edi
	cmp	QWORD PTR MINOR_ALLOCED[rip], rbx
	setne	dil
	call	BUG_ON@PLT
	add	rsp, 24
	.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
.L28:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[r12]
	call	destroy_workqueue@PLT
.L10:
	mov	rdi, QWORD PTR 8[r12]
	call	del_gendisk@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	put_disk@PLT
.L9:
	mov	rdi, QWORD PTR [r12]
	call	blk_cleanup_queue@PLT
.L8:
	mov	edi, DWORD PTR 12[rsp]
	call	free_minor@PLT
.L7:
	mov	edi, DWORD PTR THIS_MODULE[rip]
	call	module_put@PLT
.L4:
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
.L1:
	add	rsp, 24
	.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
.L27:
	.cfi_restore_state
	lea	rdi, 12[rsp]
	call	next_free_minor@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC0[rip]
	call	DMWARN@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	alloc_dev, .-alloc_dev
	.comm	dm_wq_work,4,4
	.comm	dm_blk_dops,4,4
	.comm	_minor_lock,4,4
	.comm	_minor_idr,4,4
	.comm	_major,4,4
	.comm	WRITE_FLUSH,4,4
	.comm	THIS_MODULE,4,4
	.comm	MINOR_ALLOCED,8,8
	.comm	GFP_KERNEL,4,4
	.comm	DM_TYPE_NONE,4,4
	.comm	DM_ANY_MINOR,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_alloc_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to allocate device, out of memory.\000"
	.align	2
.LC1:
	.ascii	"dm-%d\000"
	.align	2
.LC2:
	.ascii	"kdmflush\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_dev, %function
alloc_dev:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L29
	sub	sp, sp, #8
	str	r0, [sp, #4]
	ldr	r1, [r5]
	mov	r0, #92
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L26
	ldr	r6, .L29+4
	ldr	r0, [r6]
	bl	try_module_get
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L29+8
	ldr	r0, [sp, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L27
	bl	specific_minor
.L6:
	cmp	r0, #0
	blt	.L7
	ldr	r3, .L29+12
	add	r0, r4, #84
	ldr	r3, [r3]
	str	r3, [r4, #88]
	bl	init_rwsem
	add	r0, r4, #80
	bl	mutex_init
	add	r0, r4, #76
	bl	mutex_init
	add	r0, r4, #72
	bl	spin_lock_init
	add	r0, r4, #68
	bl	rwlock_init
	mov	r1, #1
	add	r0, r4, #64
	bl	atomic_set
	mov	r1, #0
	add	r0, r4, #60
	bl	atomic_set
	mov	r1, #0
	add	r0, r4, #56
	bl	atomic_set
	mov	r1, #0
	add	r0, r4, #52
	bl	atomic_set
	add	r0, r4, #48
	bl	INIT_LIST_HEAD
	add	r0, r4, #44
	bl	spin_lock_init
	ldr	r0, [r5]
	bl	blk_alloc_queue
	cmp	r0, #0
	str	r0, [r4]
	beq	.L8
	mov	r0, r4
	bl	dm_init_md_queue
	mov	r0, #1
	bl	alloc_disk
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L9
	mov	r1, #0
	ldr	r0, [r4, #40]
	bl	atomic_set
	ldr	r0, [r4, #40]
	mov	r1, #0
	add	r0, r0, #4
	bl	atomic_set
	add	r0, r4, #36
	bl	init_waitqueue_head
	ldr	r3, .L29+16
	ldr	r5, .L29+20
	ldr	r1, [r3]
	add	r0, r4, #32
	bl	INIT_WORK
	add	r0, r4, #28
	bl	init_waitqueue_head
	ldr	r3, [r4, #4]
	ldr	r2, [r5]
	ldr	r1, [r4]
	ldr	r0, .L29+24
	str	r2, [r3, #20]
	ldr	r2, [sp, #4]
	str	r0, [r3, #16]
	str	r1, [r3, #12]
	ldr	r0, [r3, #4]
	str	r4, [r3, #8]
	str	r2, [r3]
	ldr	r1, .L29+28
	bl	sprintf
	ldr	r0, [r4, #4]
	bl	add_disk
	ldr	r0, [r5]
	ldr	r1, [sp, #4]
	ldr	r5, [r4, #24]
	bl	MKDEV
	mov	r1, r0
	mov	r0, r5
	bl	format_dev_t
	ldr	r0, .L29+32
	bl	create_singlethread_workqueue
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L10
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	bdget_disk
	cmp	r0, #0
	str	r0, [r4, #20]
	beq	.L28
	add	r0, r4, #12
	bl	bio_init
	ldr	r3, .L29+36
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	ldr	r0, .L29+40
	bl	spin_lock
	mov	r1, r4
	ldr	r2, [sp, #4]
	ldr	r0, .L29+44
	bl	idr_replace
	mov	r5, r0
	ldr	r0, .L29+40
	bl	spin_unlock
	ldr	r3, .L29+48
	ldr	r0, [r3]
	subs	r0, r0, r5
	movne	r0, #1
	bl	BUG_ON
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L28:
	ldr	r0, [r4, #8]
	bl	destroy_workqueue
.L10:
	ldr	r0, [r4, #4]
	bl	del_gendisk
	ldr	r0, [r4, #4]
	bl	put_disk
.L9:
	ldr	r0, [r4]
	bl	blk_cleanup_queue
.L8:
	ldr	r0, [sp, #4]
	bl	free_minor
.L7:
	ldr	r0, [r6]
	bl	module_put
.L4:
	mov	r0, r4
	bl	kfree
	mov	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L27:
	add	r0, sp, #4
	bl	next_free_minor
	b	.L6
.L26:
	ldr	r0, .L29+52
	bl	DMWARN
	b	.L1
.L30:
	.align	2
.L29:
	.word	GFP_KERNEL
	.word	THIS_MODULE
	.word	DM_ANY_MINOR
	.word	DM_TYPE_NONE
	.word	dm_wq_work
	.word	_major
	.word	dm_blk_dops
	.word	.LC1
	.word	.LC2
	.word	WRITE_FLUSH
	.word	_minor_lock
	.word	_minor_idr
	.word	MINOR_ALLOCED
	.word	.LC0
	.size	alloc_dev, .-alloc_dev
	.comm	dm_wq_work,4,4
	.comm	dm_blk_dops,4,4
	.comm	_minor_lock,4,4
	.comm	_minor_idr,4,4
	.comm	_major,4,4
	.comm	WRITE_FLUSH,4,4
	.comm	THIS_MODULE,4,4
	.comm	MINOR_ALLOCED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DM_TYPE_NONE,4,4
	.comm	DM_ANY_MINOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
