	.file	"extr_scsi_lib.c_scsi_vpd_tpg_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scsi_vpd_tpg_id
	.type	scsi_vpd_tpg_id, @function
scsi_vpd_tpg_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR EAGAIN[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	neg	r12d
	call	rcu_read_lock@PLT
	mov	edi, DWORD PTR [rbx]
	call	rcu_dereference@PLT
	test	rax, rax
	je	.L18
	mov	rdx, QWORD PTR [rax]
	mov	r14, rax
	movsx	rax, DWORD PTR 8[rax]
	lea	rbx, 4[rdx]
	mov	rcx, rax
	add	rax, rdx
	cmp	rbx, rax
	jnb	.L4
	mov	ebp, -1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	al, 5
	jne	.L7
	lea	rdi, 6[rbx]
	call	get_unaligned_be16@PLT
	mov	rdx, QWORD PTR [r14]
	mov	ecx, DWORD PTR 8[r14]
	mov	r12d, eax
.L7:
	movzx	eax, BYTE PTR 3[rbx]
	lea	rbx, 4[rbx+rax]
	movsx	rax, ecx
	add	rax, rdx
	cmp	rbx, rax
	jnb	.L19
.L8:
	movzx	eax, BYTE PTR 1[rbx]
	and	eax, 15
	cmp	al, 4
	jne	.L20
	lea	rdi, 6[rbx]
	call	get_unaligned_be16@PLT
	mov	rdx, QWORD PTR [r14]
	mov	ecx, DWORD PTR 8[r14]
	mov	ebp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	eax, r12d
	not	eax
	shr	eax, 31
	cmp	ebp, -1
	setne	dl
	test	dl, al
	je	.L1
	test	r13, r13
	je	.L1
	mov	DWORD PTR 0[r13], ebp
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	rcu_read_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	xor	eax, eax
	call	rcu_read_unlock@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	scsi_vpd_tpg_id, .-scsi_vpd_tpg_id
	.comm	ENXIO,4,4
	.comm	EAGAIN,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_lib.c_scsi_vpd_tpg_id.c"
	.text
	.align	2
	.global	scsi_vpd_tpg_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	scsi_vpd_tpg_id, %function
scsi_vpd_tpg_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L18
	mov	r7, r1
	ldr	r5, [r3]
	bl	rcu_read_lock
	ldr	r0, [r4]
	bl	rcu_dereference
	subs	r8, r0, #0
	beq	.L15
	ldm	r8, {r1, ip}
	add	r4, r1, #4
	add	r3, r1, ip
	cmp	r4, r3
	rsb	r5, r5, #0
	bcs	.L4
	mvn	r6, #0
	b	.L8
.L17:
	cmp	r3, #5
	bne	.L7
	bl	get_unaligned_be16
	ldm	r8, {r1, ip}
	mov	r5, r0
.L7:
	ldrb	r2, [r4, #3]	@ zero_extendqisi2
	add	r3, r1, ip
	add	r2, r2, #4
	add	r4, r4, r2
	cmp	r4, r3
	bcs	.L16
.L8:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	add	r0, r4, #6
	and	r3, r3, #15
	cmp	r3, #4
	bne	.L17
	bl	get_unaligned_be16
	ldr	r1, [r8]
	mov	r6, r0
	ldr	ip, [r8, #4]
	b	.L7
.L16:
	bl	rcu_read_unlock
	mvn	r3, r5
	cmn	r6, #1
	lsr	r3, r3, #31
	moveq	r3, #0
	cmp	r7, #0
	moveq	r3, #0
	cmp	r3, #0
	strne	r6, [r7]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	rcu_read_unlock
	b	.L1
.L15:
	bl	rcu_read_unlock
	ldr	r3, .L18+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L19:
	.align	2
.L18:
	.word	EAGAIN
	.word	ENXIO
	.size	scsi_vpd_tpg_id, .-scsi_vpd_tpg_id
	.comm	ENXIO,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
