	.file	"extr_mps_mapping.c__mapping_get_enc_idx_from_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_mapping_get_enc_idx_from_id, @function
_mapping_get_enc_idx_from_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR [rdi], 0
	je	.L2
	mov	rbp, rdi
	mov	r13d, esi
	mov	r14d, edx
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	add	r12, 1
	cmp	QWORD PTR 0[rbp], r12
	jbe	.L2
.L4:
	mov	rbx, r12
	mov	edi, r13d
	sal	rbx, 4
	add	rbx, QWORD PTR 8[rbp]
	mov	r15, QWORD PTR [rbx]
	call	le64toh@PLT
	cmp	r15, rax
	jne	.L6
	mov	ebx, DWORD PTR 8[rbx]
	test	ebx, ebx
	je	.L1
	mov	edi, r14d
	call	le32toh@PLT
	test	ebx, eax
	je	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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	r12, QWORD PTR MPS_ENCTABLE_BAD_IDX[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_mapping_get_enc_idx_from_id, .-_mapping_get_enc_idx_from_id
	.comm	MPS_ENCTABLE_BAD_IDX,8,8
	.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_mps_mapping.c__mapping_get_enc_idx_from_id.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_mapping_get_enc_idx_from_id, %function
_mapping_get_enc_idx_from_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	beq	.L2
	mov	r5, r0
	mov	r7, r1
	mov	r8, r2
	mov	r4, #0
	b	.L4
.L6:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L2
.L4:
	ldr	r3, [r5, #4]
	mov	r0, r7
	ldr	r6, [r3, r4, lsl #3]
	add	r9, r3, r4, lsl #3
	bl	le64toh
	cmp	r6, r0
	bne	.L6
	ldr	r6, [r9, #4]
	cmp	r6, #0
	beq	.L1
	mov	r0, r8
	bl	le32toh
	tst	r6, r0
	beq	.L6
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L16
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	MPS_ENCTABLE_BAD_IDX
	.size	_mapping_get_enc_idx_from_id, .-_mapping_get_enc_idx_from_id
	.comm	MPS_ENCTABLE_BAD_IDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
