	.file	"extr_nvme-scsi.c_nvme_trans_fill_blk_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvme_trans_fill_blk_desc, @function
nvme_trans_fill_blk_desc:
.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, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r8, r8
	jne	.L2
	cmp	DWORD PTR MODE_PAGE_BLK_DES_LEN[rip], ecx
	jg	.L5
.L3:
	mov	r15, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 12[rsp]
	mov	esi, 16
	mov	rdi, QWORD PTR [r15]
	call	dma_alloc_coherent@PLT
	mov	r14, rax
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR [r12]
	mov	ecx, DWORD PTR 12[rsp]
	xor	edx, edx
	mov	rdi, r15
	call	nvme_identify@PLT
	mov	rdi, r13
	mov	esi, eax
	mov	r12d, eax
	call	nvme_trans_status_code@PLT
	test	eax, eax
	jne	.L10
	test	r12d, r12d
	jne	.L7
	mov	eax, DWORD PTR [r14]
	mov	rdx, QWORD PTR 8[r14]
	mov	r13d, 1
	mov	edi, DWORD PTR 4[r14]
	and	eax, 15
	mov	ecx, DWORD PTR [rdx+rax*4]
	sal	r13d, cl
	test	rbx, rbx
	jne	.L8
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	cpu_to_be32@PLT
	mov	edi, r13d
	and	edi, 16777215
	mov	DWORD PTR 16[rsp], eax
	call	cpu_to_be32@PLT
	lea	rsi, 16[rsp]
	mov	edx, 4
	mov	rdi, rbp
	mov	DWORD PTR 20[rsp], eax
	call	memcpy@PLT
	lea	rsi, 20[rsp]
	lea	rdi, 32[rbp]
	mov	edx, 4
	call	memcpy@PLT
.L7:
	mov	ecx, DWORD PTR 12[rsp]
	mov	rdi, QWORD PTR [r15]
	mov	rdx, r14
	mov	esi, 16
	call	dma_free_coherent@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	jle	.L3
	cmp	DWORD PTR MODE_PAGE_LLBAA_BLK_DES_LEN[rip], ecx
	jle	.L3
.L5:
	mov	r12d, DWORD PTR SNTI_INTERNAL_ERROR[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	cpu_to_be64@PLT
	mov	edi, r13d
	mov	DWORD PTR 16[rsp], eax
	call	cpu_to_be32@PLT
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	edx, 4
	mov	DWORD PTR 20[rsp], eax
	call	memcpy@PLT
	lea	rsi, 20[rsp]
	lea	rdi, 96[rbp]
	mov	edx, 4
	call	memcpy@PLT
	jmp	.L7
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nvme_trans_fill_blk_desc, .-nvme_trans_fill_blk_desc
	.comm	SNTI_TRANSLATION_SUCCESS,4,4
	.comm	SNTI_INTERNAL_ERROR,4,4
	.comm	MODE_PAGE_LLBAA_BLK_DES_LEN,4,4
	.comm	MODE_PAGE_BLK_DES_LEN,4,4
	.comm	GFP_KERNEL,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_nvme-scsi.c_nvme_trans_fill_blk_desc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvme_trans_fill_blk_desc, %function
nvme_trans_fill_blk_desc:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #16
	ldr	r8, [sp, #48]
	mov	r7, r2
	ldr	r2, .L15
	cmp	r8, #0
	mov	r4, r0
	mov	r6, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bne	.L2
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r2, r3
	bgt	.L5
.L3:
	ldr	r9, [r4, #4]
	ldr	r3, .L15+8
	mov	r2, sp
	mov	r1, #12
	ldr	r0, [r9]
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	subs	r5, r0, #0
	beq	.L13
	ldr	r1, [r4]
	mov	r2, #0
	ldr	r3, [sp]
	mov	r0, r9
	bl	nvme_identify
	mov	r10, r0
	mov	r0, r6
	mov	r1, r10
	bl	nvme_trans_status_code
	subs	r4, r0, #0
	bne	.L7
	cmp	r10, #0
	movne	r4, r10
	bne	.L7
	mov	r6, #1
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	and	r3, r3, #15
	ldr	r3, [r2, r3, lsl #2]
	cmp	r8, #0
	ldr	r0, [r5, #4]
	lsl	r6, r6, r3
	bne	.L8
	bl	le64_to_cpu
	bl	cpu_to_be32
	mov	r3, r0
	bic	r0, r6, #-16777216
	str	r3, [sp, #4]
	bl	cpu_to_be32
	mov	r2, #4
	mov	r3, r0
	add	r1, sp, r2
	mov	r0, r7
	str	r3, [sp, #8]
	bl	memcpy
	mov	r2, #4
	add	r0, r7, #16
	add	r1, sp, #8
	bl	memcpy
.L7:
	mov	r2, r5
	mov	r1, #12
	ldr	r0, [r9]
	ldr	r3, [sp]
	bl	dma_free_coherent
	b	.L1
.L2:
	ble	.L3
	ldr	r2, .L15+12
	ldr	r2, [r2]
	cmp	r2, r3
	ble	.L3
.L5:
	ldr	r3, .L15+16
	ldr	r4, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L15+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L8:
	bl	le64_to_cpu
	bl	cpu_to_be64
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #4]
	bl	cpu_to_be32
	mov	r2, #4
	mov	r3, r0
	add	r1, sp, r2
	mov	r0, r7
	str	r3, [sp, #8]
	bl	memcpy
	mov	r2, #4
	add	r0, r7, #48
	add	r1, sp, #8
	bl	memcpy
	b	.L7
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	MODE_PAGE_BLK_DES_LEN
	.word	GFP_KERNEL
	.word	MODE_PAGE_LLBAA_BLK_DES_LEN
	.word	SNTI_INTERNAL_ERROR
	.word	ENOMEM
	.size	nvme_trans_fill_blk_desc, .-nvme_trans_fill_blk_desc
	.comm	SNTI_TRANSLATION_SUCCESS,4,4
	.comm	SNTI_INTERNAL_ERROR,4,4
	.comm	MODE_PAGE_LLBAA_BLK_DES_LEN,4,4
	.comm	MODE_PAGE_BLK_DES_LEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
