	.file	"extr_qla_target.c_qlt_update_vp_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Save vha in host_map %p %06x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unable to insert s_id into host_map: %06x\n"
	.align 8
.LC2:
	.string	"replace existing vha in host_map %p %06x\n"
	.align 8
.LC3:
	.string	"clear vha in host_map %p %06x\n"
	.text
	.p2align 4
	.globl	qlt_update_vp_map
	.type	qlt_update_vp_map, @function
qlt_update_vp_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	QLA_TGT_MODE_ENABLED@PLT
	test	eax, eax
	je	.L1
	mov	ebp, DWORD PTR 8[r12]
	cmp	ebx, 130
	je	.L4
	jg	.L5
	cmp	ebx, 128
	je	.L6
	cmp	ebx, 129
	jne	.L1
	mov	rdi, QWORD PTR 16[r12]
	mov	esi, ebp
	call	btree_lookup32@PLT
	mov	r9d, ebp
	mov	r8, r12
	test	rax, rax
	je	.L20
	mov	edi, DWORD PTR ql_dbg_tgt_mgt[rip]
	mov	rsi, r12
	mov	edx, 61465
	lea	rcx, .LC2[rip]
	call	ql_dbg@PLT
	mov	rdi, QWORD PTR 16[r12]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, r12
	mov	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	btree_update32@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	ebx, 131
	jne	.L1
	mov	edi, DWORD PTR ql_dbg_tgt_mgt[rip]
	mov	rsi, r12
	mov	r9d, ebp
	mov	r8, r12
	lea	rcx, .LC3[rip]
	mov	edx, 61466
	call	ql_dbg@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	esi, ebp
	call	btree_lookup32@PLT
	test	rax, rax
	je	.L11
	mov	rdi, QWORD PTR 16[r12]
	mov	esi, ebp
	call	btree_remove32@PLT
.L11:
	mov	DWORD PTR 8[r12], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r12]
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax+rdx*8], r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r12]
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax+rdx*8], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_dbg_tgt_mgt[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 61464
	mov	rsi, r12
	call	ql_dbg@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	rdx, r12
	mov	esi, ebp
	mov	ecx, DWORD PTR GFP_ATOMIC[rip]
	call	btree_insert32@PLT
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR ql_log_info[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	r8d, ebp
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	lea	rcx, .LC1[rip]
	mov	edx, 53310
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ql_log@PLT
	.cfi_endproc
.LFE0:
	.size	qlt_update_vp_map, .-qlt_update_vp_map
	.comm	ql_log_info,4,4
	.comm	ql_dbg_tgt_mgt,4,4
	.comm	GFP_ATOMIC,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_qla_target.c_qlt_update_vp_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Save vha in host_map %p %06x\012\000"
	.align	2
.LC1:
	.ascii	"Unable to insert s_id into host_map: %06x\012\000"
	.align	2
.LC2:
	.ascii	"replace existing vha in host_map %p %06x\012\000"
	.align	2
.LC3:
	.ascii	"clear vha in host_map %p %06x\012\000"
	.text
	.align	2
	.global	qlt_update_vp_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlt_update_vp_map, %function
qlt_update_vp_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #12
	mov	r5, r0
	mov	r4, r1
	bl	QLA_TGT_MODE_ENABLED
	cmp	r0, #0
	beq	.L1
	sub	r1, r4, #128
	ldr	r4, [r5, #4]
	cmp	r1, #3
	ldrls	pc, [pc, r1, asl #2]
	b	.L1
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	ldr	r3, .L21
	str	r4, [sp, #4]
	str	r5, [sp]
	mov	r1, r5
	ldr	r0, [r3]
	ldr	r2, .L21+4
	ldr	r3, .L21+8
	bl	ql_dbg
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	btree_lookup32
	cmp	r0, #0
	beq	.L11
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	btree_remove32
.L11:
	mov	r3, #0
	str	r3, [r5, #4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r3, [r5, #8]
	ldr	r2, [r5]
	ldr	r3, [r3, #4]
	str	r5, [r3, r2, lsl #2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	btree_lookup32
	ldr	r3, .L21
	str	r4, [sp, #4]
	str	r5, [sp]
	cmp	r0, #0
	ldr	r0, [r3]
	beq	.L20
	mov	r1, r5
	ldr	r3, .L21+12
	ldr	r2, .L21+16
	bl	ql_dbg
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r5, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	btree_update32
.L6:
	mov	r1, #0
	ldr	r3, [r5, #8]
	ldr	r2, [r5]
	ldr	r3, [r3, #4]
	str	r1, [r3, r2, lsl #2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L20:
	mov	r1, r5
	ldr	r3, .L21+20
	ldr	r2, .L21+24
	bl	ql_dbg
	ldr	r3, .L21+28
	mov	r2, r5
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r0, [r5, #8]
	bl	btree_insert32
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L21+32
	str	r4, [sp]
	mov	r1, r5
	ldr	r0, [r3]
	ldr	r2, .L21+36
	ldr	r3, .L21+40
	bl	ql_log
	b	.L1
.L22:
	.align	2
.L21:
	.word	ql_dbg_tgt_mgt
	.word	61466
	.word	.LC3
	.word	.LC2
	.word	61465
	.word	.LC0
	.word	61464
	.word	GFP_ATOMIC
	.word	ql_log_info
	.word	53310
	.word	.LC1
	.size	qlt_update_vp_map, .-qlt_update_vp_map
	.comm	ql_log_info,4,4
	.comm	ql_dbg_tgt_mgt,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
