	.file	"extr_tpm2-space.c_tpm2_map_to_vhandle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tpm2_map_to_vhandle, @function
tpm2_map_to_vhandle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	mov	rdi, QWORD PTR [rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	test	rdx, rdx
	je	.L11
.L4:
	add	rbx, 1
.L2:
	call	ARRAY_SIZE@PLT
	mov	r13d, ebx
	mov	rdi, QWORD PTR 0[rbp]
	cmp	eax, ebx
	jle	.L5
	lea	rax, [rdi+rbx*8]
	mov	rdx, QWORD PTR [rax]
	test	r12d, r12d
	jne	.L12
	cmp	r14, rdx
	jne	.L4
.L5:
	call	ARRAY_SIZE@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, r13d
	je	.L1
	mov	eax, 16777215
	sub	eax, r13d
	or	eax, DWORD PTR TPM2_HT_TRANSIENT[rip]
	cdqe
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	mov	QWORD PTR [rax], r14
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	tpm2_map_to_vhandle, .-tpm2_map_to_vhandle
	.comm	TPM2_HT_TRANSIENT,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_tpm2-space.c_tpm2_map_to_vhandle.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpm2_map_to_vhandle, %function
tpm2_map_to_vhandle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r6, r2
	mov	r4, #0
	ldr	r0, [r0]
	b	.L2
.L12:
	cmp	r3, #0
	beq	.L11
.L4:
	add	r4, r4, #1
.L2:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ldr	r0, [r5]
	ble	.L5
	cmp	r6, #0
	ldr	r3, [r0, r4, lsl #2]
	add	r2, r0, r4, lsl #2
	bne	.L12
	cmp	r7, r3
	bne	.L4
.L5:
	bl	ARRAY_SIZE
	cmp	r0, r4
	mvnne	r0, #-16777216
	ldrne	r3, .L13
	subne	r4, r0, r4
	ldrne	r0, [r3]
	orrne	r0, r4, r0
	moveq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	str	r7, [r2]
	b	.L5
.L14:
	.align	2
.L13:
	.word	TPM2_HT_TRANSIENT
	.size	tpm2_map_to_vhandle, .-tpm2_map_to_vhandle
	.comm	TPM2_HT_TRANSIENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
