	.file	"extr_claim.c_nd_namespace_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"namespace already active\n"
.LC1:
	.string	"namespace"
.LC2:
	.string	""
.LC3:
	.string	"namespace already set to: %s\n"
.LC4:
	.string	"'%s' not found under %s\n"
.LC5:
	.string	"%s too small to host\n"
.LC6:
	.string	"%s already claimed\n"
	.text
	.p2align 4
	.globl	nd_namespace_store
	.type	nd_namespace_store, @function
nd_namespace_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR 8[rdi], 0
	jne	.L28
	mov	rdi, rdx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	r14, rsi
	mov	rsi, rcx
	mov	r12, rcx
	call	kstrndup@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L29
	mov	rdi, rax
	call	strim@PLT
	mov	edx, 9
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	strncmp@PLT
	test	rax, rax
	je	.L5
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	jne	.L30
.L5:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	rbx, QWORD PTR [r14]
	call	strcmp@PLT
	test	rax, rax
	je	.L31
	test	rbx, rbx
	je	.L8
	lea	rdi, 4[rbx]
	call	dev_name@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	mov	rdx, rax
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12, QWORD PTR EBUSY[rip]
	neg	r12
.L6:
	mov	rdi, rbp
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r12, QWORD PTR ENOMEM[rip]
	neg	r12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12, QWORD PTR EBUSY[rip]
	neg	r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 0[r13]
	mov	edx, DWORD PTR namespace_match[rip]
	mov	rsi, rbp
	call	device_find_child@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L32
	call	to_ndns@PLT
	mov	r15, rax
	mov	eax, DWORD PTR [rax]
	cmp	eax, 130
	je	.L10
	jg	.L11
	cmp	eax, 128
	je	.L12
	cmp	eax, 129
	jne	.L14
	lea	rbx, 4[r15]
.L15:
	mov	rdi, r15
	call	__nvdimm_namespace_capacity@PLT
	cmp	rax, QWORD PTR SZ_16M[rip]
	jl	.L33
	mov	rdi, r13
	call	is_nvdimm_bus_locked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, r13
	call	__nd_attach_ndns@PLT
	test	eax, eax
	je	.L34
.L16:
	mov	rdi, rbx
	call	put_device@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	mov	r12, QWORD PTR EINVAL[rip]
	neg	r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	sub	eax, 131
	cmp	eax, 1
	ja	.L14
	mov	rdi, r13
	lea	rbx, 4[r15]
	call	is_nd_btt@PLT
	test	eax, eax
	jne	.L15
.L26:
	mov	r12, QWORD PTR EBUSY[rip]
	neg	r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r14
	mov	rdi, r13
	call	nd_detach_and_reset@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdx, rbp
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12, QWORD PTR ENXIO[rip]
	neg	r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, QWORD PTR 0[r13]
	call	dev_name@PLT
	mov	rdx, rbp
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	mov	rcx, rax
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12, QWORD PTR ENODEV[rip]
	neg	r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12, QWORD PTR EBUSY[rip]
	lea	rbx, 4[r15]
	neg	r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r13
	lea	rbx, 4[r15]
	call	is_nd_pfn@PLT
	test	eax, eax
	jne	.L15
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	lea	rbx, 4[r15]
	call	is_nd_dax@PLT
	test	eax, eax
	jne	.L15
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, rbx
	call	dev_name@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	mov	rdx, rax
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	nd_namespace_store, .-nd_namespace_store
	.comm	namespace_match,4,4
	.comm	SZ_16M,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,8,8
	.comm	ENOMEM,8,8
	.comm	ENODEV,8,8
	.comm	EINVAL,8,8
	.comm	EBUSY,8,8
	.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_claim.c_nd_namespace_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"namespace already active\012\000"
	.align	2
.LC1:
	.ascii	"namespace\000"
	.align	2
.LC2:
	.ascii	"namespace already set to: %s\012\000"
	.align	2
.LC3:
	.ascii	"'%s' not found under %s\012\000"
	.align	2
.LC4:
	.ascii	"%s too small to host\012\000"
	.align	2
.LC5:
	.ascii	"%s already claimed\012\000"
	.text
	.align	2
	.global	nd_namespace_store
	.syntax unified
	.arm
	.fpu softvfp
	.type	nd_namespace_store, %function
nd_namespace_store:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	ip, #0
	bne	.L27
	mov	r4, r3
	ldr	r3, .L33
	mov	r7, r0
	mov	r8, r1
	mov	r0, r2
	mov	r1, r4
	ldr	r2, [r3]
	bl	kstrndup
	subs	r5, r0, #0
	beq	.L28
	bl	strim
	mov	r2, #9
	mov	r0, r5
	ldr	r1, .L33+4
	bl	strncmp
	cmp	r0, #0
	ldrb	r3, [r5]	@ zero_extendqisi2
	beq	.L5
	cmp	r3, #0
	bne	.L29
.L6:
	mov	r1, r8
	mov	r0, r7
	bl	nd_detach_and_reset
	b	.L7
.L28:
	ldr	r3, .L33+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	ldr	r1, .L33+12
	bl	dev_dbg
	ldr	r3, .L33+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	cmp	r3, #0
	ldr	r0, [r8]
	beq	.L6
	cmp	r0, #0
	beq	.L9
	add	r0, r0, #4
	bl	dev_name
	ldr	r1, .L33+20
	mov	r2, r0
	mov	r0, r7
	bl	dev_dbg
	ldr	r3, .L33+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L7:
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L33+24
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r7]
	bl	device_find_child
	cmp	r0, #0
	beq	.L30
	bl	to_ndns
	ldr	r3, [r0]
	mov	r9, r0
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
	.word	.L12
.L29:
	ldr	r3, .L33+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L12:
	mov	r0, r7
	bl	is_nd_btt
	cmp	r0, #0
	add	r6, r9, #4
	beq	.L25
.L17:
	mov	r0, r9
	bl	__nvdimm_namespace_capacity
	ldr	r3, .L33+32
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r7
	blt	.L31
	bl	is_nvdimm_bus_locked
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	mov	r2, r8
	mov	r1, r9
	mov	r0, r7
	bl	__nd_attach_ndns
	cmp	r0, #0
	beq	.L32
.L18:
	mov	r0, r6
	bl	put_device
	b	.L7
.L14:
	mov	r0, r7
	bl	is_nd_dax
	cmp	r0, #0
	add	r6, r9, #4
	bne	.L17
.L25:
	ldr	r3, .L33+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L18
.L15:
	add	r6, r0, #4
	b	.L17
.L16:
	mov	r0, r7
	bl	is_nd_pfn
	cmp	r0, #0
	add	r6, r9, #4
	bne	.L17
	b	.L25
.L30:
	ldr	r0, [r7]
	bl	dev_name
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L33+36
	mov	r0, r7
	bl	dev_dbg
	ldr	r3, .L33+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L31:
	mov	r2, r5
	ldr	r1, .L33+44
	bl	dev_dbg
	ldr	r3, .L33+48
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L18
.L32:
	mov	r0, r6
	bl	dev_name
	ldr	r1, .L33+52
	mov	r2, r0
	mov	r0, r7
	bl	dev_dbg
	b	.L25
.L11:
	ldr	r3, .L33+16
	add	r6, r0, #4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L18
.L34:
	.align	2
.L33:
	.word	GFP_KERNEL
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	EBUSY
	.word	.LC2
	.word	namespace_match
	.word	EINVAL
	.word	SZ_16M
	.word	.LC3
	.word	ENODEV
	.word	.LC4
	.word	ENXIO
	.word	.LC5
	.size	nd_namespace_store, .-nd_namespace_store
	.comm	namespace_match,4,4
	.comm	SZ_16M,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
