	.file	"extr_scsi_dh_rdac.c_get_lun_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_lun_info, @function
get_lun_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	mov	rcx, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	mov	edx, 40
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	esi, 200
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	submit_inquiry@PLT
	cmp	DWORD PTR SCSI_DH_OK[rip], eax
	mov	r12d, eax
	je	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	DWORD PTR 8[rbx], 200
	jne	.L4
	mov	rax, QWORD PTR 16[rbx]
	cmp	BYTE PTR [rax], 101
	jne	.L4
	cmp	BYTE PTR 1[rax], 100
	jne	.L4
	cmp	BYTE PTR 2[rax], 105
	jne	.L4
	cmp	BYTE PTR 3[rax], 100
	jne	.L4
	mov	rax, QWORD PTR 40[rbx]
	movsx	rcx, DWORD PTR ARRAY_LABEL_LEN[rip]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR [rbx], eax
	cmp	ecx, 1
	jle	.L5
	mov	edx, 1
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR 24[rbx]
	movzx	ecx, BYTE PTR [rcx+rdx]
	add	rdx, 2
	mov	BYTE PTR 0[rbp+rax], cl
	movsx	rcx, DWORD PTR ARRAY_LABEL_LEN[rip]
	add	rax, 1
	lea	esi, -1[rcx]
	cmp	esi, eax
	jg	.L6
.L5:
	mov	BYTE PTR -1[rbp+rcx], 0
	mov	edx, DWORD PTR UNIQUE_ID_LEN[rip]
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 36[rbx]
	mov	rdi, r13
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR SCSI_DH_NOSYS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_lun_info, .-get_lun_info
	.comm	UNIQUE_ID_LEN,4,4
	.comm	SCSI_DH_OK,4,4
	.comm	SCSI_DH_NOSYS,4,4
	.comm	ARRAY_LABEL_LEN,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_scsi_dh_rdac.c_get_lun_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lun_info, %function
get_lun_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r2
	mov	r6, r3
	mov	r2, #24
	mov	r3, r1
	mov	r1, #200
	bl	submit_inquiry
	mov	r4, r0
	ldr	r0, .L11
	ldr	r0, [r0]
	cmp	r0, r4
	beq	.L10
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, [r5, #4]
	cmp	r3, #200
	bne	.L4
	ldr	r3, [r5, #8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #101
	bne	.L4
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #100
	bne	.L4
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	cmp	r2, #105
	bne	.L4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L4
	ldr	ip, .L11+4
	ldr	r3, [r5, #24]
	ldr	lr, [ip]
	ldr	r3, [r3, #28]
	cmp	lr, #1
	str	r3, [r5]
	ble	.L5
	mov	r1, #1
	sub	r2, r7, #1
.L6:
	ldr	r0, [r5, #12]
	add	r3, r2, #2
	ldrb	r0, [r0, r1]	@ zero_extendqisi2
	sub	r3, r3, r7
	strb	r0, [r2, #1]!
	ldr	lr, [ip]
	add	r1, r1, #2
	sub	r0, lr, #1
	cmp	r0, r3
	bgt	.L6
.L5:
	mov	r1, #0
	ldr	r3, .L11+8
	add	lr, r7, lr
	strb	r1, [lr, #-1]
	ldr	r2, [r3]
	mov	r0, r6
	bl	memset
	mov	r0, r6
	ldr	r2, [r5, #16]
	ldr	r1, [r5, #20]
	bl	memcpy
	b	.L1
.L4:
	ldr	r3, .L11+12
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	SCSI_DH_OK
	.word	ARRAY_LABEL_LEN
	.word	UNIQUE_ID_LEN
	.word	SCSI_DH_NOSYS
	.size	get_lun_info, .-get_lun_info
	.comm	UNIQUE_ID_LEN,4,4
	.comm	SCSI_DH_OK,4,4
	.comm	SCSI_DH_NOSYS,4,4
	.comm	ARRAY_LABEL_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
