	.file	"extr_claim.c_nsio_rw_bytes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"request out of range\n"
	.text
	.p2align 4
	.type	nsio_rw_bytes, @function
nsio_rw_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR [rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	call	to_nd_namespace_io@PLT
	mov	edi, ebx
	mov	esi, 512
	and	edi, 511
	mov	r13, rax
	add	rdi, r12
	call	ALIGN@PLT
	xor	edi, edi
	test	r12, r12
	sete	dil
	mov	r14d, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L2
.L7:
	xor	r14d, r14d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L2:
	.cfi_restore_state
	movsx	rax, ebx
	xor	edi, edi
	lea	rdx, [rax+r12]
	mov	QWORD PTR 16[rsp], rax
	movsx	rax, DWORD PTR 0[r13]
	cmp	rdx, rax
	seta	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L29
	mov	r9d, ebx
	mov	eax, DWORD PTR [rsp]
	lea	r8, 8[r13]
	mov	edx, r14d
	sar	r9d, 9
	cmp	DWORD PTR READ[rip], eax
	mov	esi, r9d
	je	.L30
	mov	rdi, r8
	mov	DWORD PTR 24[rsp], r9d
	xor	r14d, r14d
	mov	QWORD PTR [rsp], r8
	call	is_bad_pmem@PLT
	mov	edi, eax
	call	unlikely@PLT
	mov	r8, QWORD PTR [rsp]
	mov	r9d, DWORD PTR 24[rsp]
	test	rax, rax
	jne	.L31
.L8:
	add	ebx, DWORD PTR 4[r13]
	mov	rdx, r12
	mov	rsi, r15
	mov	edi, ebx
	call	memcpy_flushcache@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	to_nd_region@PLT
	xor	esi, esi
	mov	edi, eax
	call	nvdimm_flush@PLT
	test	eax, eax
	cmovne	r14d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, 512
	mov	QWORD PTR 24[rsp], r8
	mov	DWORD PTR [rsp], r9d
	call	IS_ALIGNED@PLT
	mov	r8, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L32
.L9:
	mov	r14d, DWORD PTR EIO[rip]
	neg	r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r8
	call	is_bad_pmem@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L27
	add	ebx, DWORD PTR 4[r13]
	mov	rdx, r12
	mov	rdi, r15
	mov	esi, ebx
	call	memcpy_mcsafe@PLT
	test	rax, rax
	je	.L7
.L27:
	mov	r14d, DWORD PTR EIO[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdx, .LC0[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	dev_WARN_ONCE@PLT
	mov	r14d, DWORD PTR EFAULT[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, 512
	mov	rdi, r12
	mov	QWORD PTR 16[rsp], r8
	call	IS_ALIGNED@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR 8[rsp]
	test	QWORD PTR NVDIMM_IO_ATOMIC[rip], rax
	mov	r8, QWORD PTR 16[rsp]
	jne	.L9
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r8
	call	might_sleep@PLT
	mov	esi, DWORD PTR 12[r13]
	mov	rdx, r12
	mov	rdi, rbp
	add	esi, ebx
	call	nvdimm_clear_poison@PLT
	mov	r9d, DWORD PTR [rsp]
	mov	r8, QWORD PTR 8[rsp]
	cmp	rax, r12
	jnb	.L10
	mov	r14d, DWORD PTR EIO[rip]
	neg	r14d
.L10:
	test	rax, rax
	jle	.L11
	lea	rdx, 511[rax]
	cmp	rdx, 1022
	ja	.L33
.L11:
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, r12
	add	edi, ebx
	call	arch_invalidate_pmem@PLT
	jmp	.L8
.L33:
	sar	rax, 9
	mov	esi, r9d
	mov	rdi, r8
	mov	rdx, rax
	call	badblocks_clear@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	nsio_rw_bytes, .-nsio_rw_bytes
	.comm	READ,4,4
	.comm	NVDIMM_IO_ATOMIC,8,8
	.comm	EIO,4,4
	.comm	EFAULT,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_claim.c_nsio_rw_bytes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"request out of range\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nsio_rw_bytes, %function
nsio_rw_bytes:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r3
	mov	r5, r1
	mov	r9, r2
	mov	r8, r0
	bl	to_nd_namespace_io
	mov	r6, r0
	lsl	r0, r5, #23
	lsr	r0, r0, #23
	mov	r1, #512
	add	r0, r0, r4
	bl	ALIGN
	mov	r7, r0
	clz	r0, r4
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L2
.L7:
	mov	r7, #0
.L1:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [r6]
	add	r0, r5, r4
	cmp	r0, r3
	movls	r0, #0
	movhi	r0, #1
	bl	unlikely
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L29
	ldr	r2, .L34
	ldr	r3, [sp, #48]
	ldr	r2, [r2]
	asr	r10, r5, #9
	add	fp, r6, #8
	cmp	r2, r3
	mov	r1, r10
	mov	r2, r7
	mov	r0, fp
	beq	.L30
	bl	is_bad_pmem
	bl	unlikely
	subs	r7, r0, #0
	bne	.L31
.L8:
	ldr	r0, [r6, #4]
	mov	r2, r4
	mov	r1, r9
	add	r0, r5, r0
	bl	memcpy_flushcache
	ldr	r0, [r8]
	bl	to_nd_region
	mov	r1, #0
	bl	nvdimm_flush
	cmp	r0, #0
	movne	r7, r0
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r1, #512
	mov	r0, r5
	bl	IS_ALIGNED
	cmp	r0, #0
	bne	.L32
.L9:
	ldr	r3, .L34+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L8
.L30:
	bl	is_bad_pmem
	bl	unlikely
	cmp	r0, #0
	bne	.L27
	ldr	r1, [r6, #4]
	mov	r2, r4
	mov	r0, r9
	add	r1, r5, r1
	bl	memcpy_mcsafe
	cmp	r0, #0
	beq	.L7
.L27:
	ldr	r3, .L34+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r0, r8
	mov	r1, #1
	ldr	r2, .L34+8
	bl	dev_WARN_ONCE
	ldr	r3, .L34+12
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L32:
	mov	r1, #512
	mov	r0, r4
	bl	IS_ALIGNED
	cmp	r0, #0
	beq	.L9
	ldr	r2, .L34+16
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L9
	bl	might_sleep
	ldr	r1, [r6, #12]
	mov	r2, r4
	mov	r0, r8
	add	r1, r5, r1
	bl	nvdimm_clear_poison
	cmp	r0, r4
	ldrcc	r2, .L34+4
	ldrcc	r3, [r2]
	rsbcc	r3, r3, #0
	strcc	r3, [sp, #4]
	cmp	r0, #0
	ble	.L11
	ldr	r1, .L34+20
	add	r2, r0, #508
	add	r2, r2, #3
	cmp	r2, r1
	bhi	.L33
.L11:
	ldr	r0, [r6, #4]
	mov	r1, r4
	add	r0, r5, r0
	ldr	r7, [sp, #4]
	bl	arch_invalidate_pmem
	b	.L8
.L33:
	asr	r2, r0, #9
	mov	r1, r10
	mov	r0, fp
	bl	badblocks_clear
	b	.L11
.L35:
	.align	2
.L34:
	.word	READ
	.word	EIO
	.word	.LC0
	.word	EFAULT
	.word	NVDIMM_IO_ATOMIC
	.word	1022
	.size	nsio_rw_bytes, .-nsio_rw_bytes
	.comm	READ,4,4
	.comm	NVDIMM_IO_ATOMIC,4,4
	.comm	EIO,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
