	.file	"extr_nvmecontrol.c_read_namespace_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"identify request failed"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"identify request returned error"
	.text
	.p2align 4
	.globl	read_namespace_data
	.type	read_namespace_data, @function
read_namespace_data:
.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
	mov	r13d, esi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	mov	edx, 48
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR NVME_OPC_IDENTIFY[rip]
	mov	edi, r13d
	mov	DWORD PTR 40[rsp], eax
	call	htole32@PLT
	xor	edi, edi
	mov	QWORD PTR 32[rsp], rax
	call	htole32@PLT
	mov	rdx, r14
	mov	edi, r12d
	mov	QWORD PTR 16[rsp], rbp
	mov	esi, DWORD PTR NVME_PASSTHROUGH_CMD[rip]
	mov	QWORD PTR 24[rsp], rax
	movabs	rax, 4294967300
	mov	QWORD PTR [rsp], rax
	call	ioctl@PLT
	test	rax, rax
	js	.L10
.L2:
	mov	rdi, rbp
	call	nvme_namespace_data_swapbytes@PLT
	lea	rdi, 8[rsp]
	call	nvme_completion_is_error@PLT
	test	rax, rax
	jne	.L11
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 72
	.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
.L11:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	errx@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_namespace_data, .-read_namespace_data
	.comm	NVME_PASSTHROUGH_CMD,4,4
	.comm	NVME_OPC_IDENTIFY,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_nvmecontrol.c_read_namespace_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"identify request failed\000"
	.align	2
.LC1:
	.ascii	"identify request returned error\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_namespace_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_namespace_data, %function
read_namespace_data:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	ldr	r3, .L13
	mov	r5, r2
	ldr	r3, [r3]
	ldr	r2, .L13+4
	sub	sp, sp, #32
	mov	r6, r0
	mov	r0, r1
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp, #24]
	str	r4, [sp]
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	str	r4, [sp, #20]
	bl	htole32
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #20]
	bl	htole32
	mov	r4, #1
	mov	ip, r0
	mov	r3, #4
	ldr	r1, .L13+8
	mov	r2, sp
	mov	r0, r6
	ldr	r1, [r1]
	stm	sp, {r3, r4}
	str	r5, [sp, #12]
	str	ip, [sp, #16]
	bl	ioctl
	cmp	r0, #0
	blt	.L10
.L2:
	mov	r0, r5
	bl	nvme_namespace_data_swapbytes
	add	r0, sp, #8
	bl	nvme_completion_is_error
	cmp	r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r1, .L13+12
	mov	r0, #1
	bl	errx
	b	.L1
.L10:
	mov	r0, r4
	ldr	r1, .L13+16
	bl	err
	b	.L2
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	NVME_OPC_IDENTIFY
	.word	.LC2
	.word	NVME_PASSTHROUGH_CMD
	.word	.LC1
	.word	.LC0
	.size	read_namespace_data, .-read_namespace_data
	.comm	NVME_PASSTHROUGH_CMD,4,4
	.comm	NVME_OPC_IDENTIFY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
