	.file	"extr_blk.c_nsblk_attach_disk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nsblk_attach_disk, @function
nsblk_attach_disk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nsblk_internal_lbasize@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, eax
	call	div_u64@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	nsblk_sector_size@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	mov	r12d, eax
	call	blk_alloc_queue@PLT
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR nd_blk_release_queue[rip]
	mov	rdx, rax
	mov	rdi, rbp
	mov	rbx, rax
	call	devm_add_action_or_reset@PLT
	test	rax, rax
	je	.L4
.L13:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR nd_blk_make_request[rip]
	mov	rdi, rbx
	call	blk_queue_make_request@PLT
	mov	esi, DWORD PTR UINT_MAX[rip]
	mov	rdi, rbx
	call	blk_queue_max_hw_sectors@PLT
	mov	rdi, rbp
	call	nsblk_sector_size@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	blk_queue_logical_block_size@PLT
	mov	edi, DWORD PTR QUEUE_FLAG_NONROT[rip]
	mov	rsi, rbx
	call	blk_queue_flag_set@PLT
	mov	QWORD PTR 32[rbx], rbp
	xor	edi, edi
	call	alloc_disk@PLT
	mov	r14, rax
	test	rax, rax
	je	.L13
	mov	QWORD PTR 24[rax], 0
	mov	esi, DWORD PTR [r14]
	mov	rdi, rbp
	lea	rax, nd_blk_fops[rip]
	mov	QWORD PTR 16[r14], rax
	mov	eax, DWORD PTR GENHD_FL_EXT_DEVT[rip]
	mov	QWORD PTR 8[r14], rbx
	mov	DWORD PTR 4[r14], eax
	call	nvdimm_namespace_disk_name@PLT
	mov	esi, DWORD PTR nd_blk_release_disk[rip]
	mov	rdx, r14
	mov	rdi, rbp
	call	devm_add_action_or_reset@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, rbp
	call	nsblk_meta_size@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	call	nsblk_meta_size@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	nd_integrity_init@PLT
	test	eax, eax
	jne	.L1
.L8:
	imul	r12d, r13d
	mov	ecx, DWORD PTR SECTOR_SHIFT[rip]
	mov	rdi, r14
	mov	esi, r12d
	sar	esi, cl
	call	set_capacity@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, rbp
	call	device_add_disk@PLT
	mov	rdi, r14
	call	revalidate_disk@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nsblk_attach_disk, .-nsblk_attach_disk
	.comm	nd_blk_release_queue,4,4
	.comm	nd_blk_release_disk,4,4
	.comm	nd_blk_make_request,4,4
	.comm	nd_blk_fops,4,4
	.comm	UINT_MAX,4,4
	.comm	SECTOR_SHIFT,4,4
	.comm	QUEUE_FLAG_NONROT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GENHD_FL_EXT_DEVT,4,4
	.comm	ENOMEM,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_blk.c_nsblk_attach_disk.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nsblk_attach_disk, %function
nsblk_attach_disk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0, #4]
	mov	r4, r0
	bl	nsblk_internal_lbasize
	mov	r1, r0
	mov	r0, r5
	bl	div_u64
	mov	r6, r0
	mov	r0, r4
	bl	nsblk_sector_size
	ldr	r3, .L16
	mov	r7, r0
	ldr	r0, [r3]
	bl	blk_alloc_queue
	subs	r5, r0, #0
	beq	.L13
	ldr	r3, .L16+4
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	devm_add_action_or_reset
	subs	r8, r0, #0
	beq	.L4
.L13:
	ldr	r3, .L16+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L16+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	blk_queue_make_request
	ldr	r3, .L16+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	blk_queue_max_hw_sectors
	mov	r0, r4
	bl	nsblk_sector_size
	mov	r1, r0
	mov	r0, r5
	bl	blk_queue_logical_block_size
	ldr	r3, .L16+20
	mov	r1, r5
	ldr	r0, [r3]
	bl	blk_queue_flag_set
	mov	r0, r8
	str	r4, [r5, #20]
	bl	alloc_disk
	subs	r9, r0, #0
	beq	.L13
	ldr	r2, .L16+24
	ldr	r3, .L16+28
	ldr	r2, [r2]
	ldr	r1, [r9]
	stmib	r9, {r2, r5}
	str	r3, [r9, #12]
	mov	r0, r4
	str	r8, [r9, #16]
	bl	nvdimm_namespace_disk_name
	ldr	r3, .L16+32
	mov	r2, r9
	mov	r0, r4
	ldr	r1, [r3]
	bl	devm_add_action_or_reset
	subs	r5, r0, #0
	bne	.L13
	mov	r0, r4
	bl	nsblk_meta_size
	cmp	r0, #0
	beq	.L8
	mov	r0, r4
	bl	nsblk_meta_size
	mov	r1, r0
	mov	r0, r9
	bl	nd_integrity_init
	cmp	r0, #0
	bne	.L15
.L8:
	mul	r1, r6, r7
	ldr	r3, .L16+36
	mov	r0, r9
	ldr	r3, [r3]
	asr	r1, r1, r3
	bl	set_capacity
	mov	r0, r4
	mov	r2, #0
	mov	r1, r9
	bl	device_add_disk
	mov	r0, r9
	bl	revalidate_disk
	b	.L1
.L15:
	mov	r5, r0
	b	.L1
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	nd_blk_release_queue
	.word	ENOMEM
	.word	nd_blk_make_request
	.word	UINT_MAX
	.word	QUEUE_FLAG_NONROT
	.word	GENHD_FL_EXT_DEVT
	.word	nd_blk_fops
	.word	nd_blk_release_disk
	.word	SECTOR_SHIFT
	.size	nsblk_attach_disk, .-nsblk_attach_disk
	.comm	nd_blk_release_queue,4,4
	.comm	nd_blk_release_disk,4,4
	.comm	nd_blk_make_request,4,4
	.comm	nd_blk_fops,4,4
	.comm	UINT_MAX,4,4
	.comm	SECTOR_SHIFT,4,4
	.comm	QUEUE_FLAG_NONROT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GENHD_FL_EXT_DEVT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
