	.file	"extr_nvme-scsi.c_nvme_trans_modesel_get_bd_len.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvme_trans_modesel_get_bd_len, @function
nvme_trans_modesel_get_bd_len:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L2
	mov	rsi, QWORD PTR MODE_SELECT_10_BD_OFFSET[rip]
	mov	eax, DWORD PTR [rdi+rsi*4]
	sal	eax, 8
	add	eax, DWORD PTR 4[rdi+rsi*4]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR MODE_SELECT_10_LLBAA_OFFSET[rip]
	mov	eax, DWORD PTR [rdi+rax*4]
	test	eax, eax
	je	.L3
	xor	eax, eax
	cmp	QWORD PTR MODE_SELECT_10_LLBAA_MASK[rip], 0
	setne	al
.L3:
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR MODE_SELECT_6_BD_OFFSET[rip]
	mov	eax, DWORD PTR [rdi+rax*4]
	mov	DWORD PTR [rdx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	nvme_trans_modesel_get_bd_len, .-nvme_trans_modesel_get_bd_len
	.comm	MODE_SELECT_6_BD_OFFSET,8,8
	.comm	MODE_SELECT_10_LLBAA_OFFSET,8,8
	.comm	MODE_SELECT_10_LLBAA_MASK,8,8
	.comm	MODE_SELECT_10_BD_OFFSET,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_nvme-scsi.c_nvme_trans_modesel_get_bd_len.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvme_trans_modesel_get_bd_len, %function
nvme_trans_modesel_get_bd_len:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	beq	.L2
	ldr	ip, .L13
	ldr	r1, .L13+4
	ldr	ip, [ip]
	str	lr, [sp, #-4]!
	ldr	lr, [r1]
	add	r1, r0, ip, lsl #2
	ldr	r1, [r1, #4]
	ldr	ip, [r0, ip, lsl #2]
	add	r1, r1, ip, lsl #8
	str	r1, [r2]
	ldr	r2, [r0, lr, lsl #2]
	cmp	r2, #0
	beq	.L3
	ldr	r2, .L13+8
	ldr	r2, [r2]
	subs	r2, r2, #0
	movne	r2, #1
.L3:
	str	r2, [r3]
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	ldr	r3, [r0, r3, lsl #2]
	str	r3, [r2]
	bx	lr
.L14:
	.align	2
.L13:
	.word	MODE_SELECT_10_BD_OFFSET
	.word	MODE_SELECT_10_LLBAA_OFFSET
	.word	MODE_SELECT_10_LLBAA_MASK
	.word	MODE_SELECT_6_BD_OFFSET
	.size	nvme_trans_modesel_get_bd_len, .-nvme_trans_modesel_get_bd_len
	.comm	MODE_SELECT_6_BD_OFFSET,4,4
	.comm	MODE_SELECT_10_LLBAA_OFFSET,4,4
	.comm	MODE_SELECT_10_LLBAA_MASK,4,4
	.comm	MODE_SELECT_10_BD_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
