	.file	"extr_hpsa.c_add_ext_target_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Maximum number of external target devices exceeded.  Check your hardware configuration."
	.text
	.p2align 4
	.type	add_ext_target_dev, @function
add_ext_target_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movzx	edi, BYTE PTR [rsi]
	mov	rsi, r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	test_bit@PLT
	test	rax, rax
	je	.L2
.L14:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	is_logical_dev_addr_mode@PLT
	test	eax, eax
	je	.L14
	mov	rsi, rbx
	mov	rdi, r13
	call	is_ext_target@PLT
	test	eax, eax
	je	.L14
	cmp	QWORD PTR 8[rbx], 0
	je	.L14
	mov	r12, rsp
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r12
	call	memset@PLT
	movzx	eax, BYTE PTR [rbx]
	mov	rdi, r12
	mov	BYTE PTR 3[rsp], al
	call	is_hba_lunid@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, r13
	call	is_scsi_rev_5@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR MAX_EXT_TARGETS[rip]
	cmp	DWORD PTR [r14], eax
	jge	.L17
	xor	ecx, ecx
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, r13
	call	hpsa_update_device_info@PLT
	test	rax, rax
	jne	.L14
	add	DWORD PTR [r14], 1
	movzx	edx, BYTE PTR [rbx]
	xor	ecx, ecx
	mov	rdi, r15
	mov	esi, DWORD PTR 16[rbx]
	call	hpsa_set_bus_target_lun@PLT
	movzx	edi, BYTE PTR [rbx]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	eax, 1
	jmp	.L1
.L17:
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_ext_target_dev, .-add_ext_target_dev
	.comm	MAX_EXT_TARGETS,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_hpsa.c_add_ext_target_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Maximum number of external target devices exceeded."
	.ascii	"  Check your hardware configuration.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_ext_target_dev, %function
add_ext_target_dev:
	@ args = 8, 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	r9, [sp, #48]
	mov	r5, r3
	ldr	r3, .L20
	mov	r4, r1
	mov	r7, r0
	ldrb	r0, [r1]	@ zero_extendqisi2
	mov	r1, r9
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r10, [sp, #52]
	bl	test_bit
	subs	r6, r0, #0
	beq	.L2
.L4:
	mov	r5, #0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r5
	bl	is_logical_dev_addr_mode
	cmp	r0, #0
	beq	.L4
	mov	r1, r4
	mov	r0, r7
	bl	is_ext_target
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
	ldrb	r3, [r4]	@ zero_extendqisi2
	add	r0, sp, #4
	str	r6, [sp, #4]
	str	r6, [sp, #8]
	strb	r3, [sp, #7]
	bl	is_hba_lunid
	cmp	r0, #0
	bne	.L4
	mov	r0, r7
	bl	is_scsi_rev_5
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L20+4
	ldr	r2, [r10]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L19
	mov	r0, r7
	mov	r3, r5
	mov	r2, r8
	add	r1, sp, #4
	bl	hpsa_update_device_info
	cmp	r0, #0
	bne	.L4
	ldr	r2, [r10]
	mov	r3, r5
	add	r2, r2, #1
	str	r2, [r10]
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldr	r1, [r4, #8]
	mov	r0, r8
	bl	hpsa_set_bus_target_lun
	mov	r1, r9
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	set_bit
	mov	r5, #1
	b	.L1
.L19:
	ldr	r0, [r7]
	ldr	r1, .L20+8
	bl	dev_warn
	b	.L1
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	MAX_EXT_TARGETS
	.word	.LC0
	.size	add_ext_target_dev, .-add_ext_target_dev
	.comm	MAX_EXT_TARGETS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
