	.file	"extr_lib_ffi.c_ffi_index_meta.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ffi_index_meta, @function
ffi_index_meta:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	ctype_typeid@PLT
	mov	rdi, rbp
	mov	edx, ebx
	mov	esi, eax
	mov	r14d, eax
	call	lj_ctype_meta@PLT
	mov	r15, QWORD PTR 8[r12]
	mov	rbp, rax
	test	rax, rax
	je	.L3
.L2:
	mov	rdi, rbp
	call	tvisfunc@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L7
	cmp	DWORD PTR MM_index[rip], ebx
	lea	rdx, 4[r15]
	mov	rsi, rbp
	mov	rdi, r12
	je	.L19
	call	lj_meta_tset@PLT
	test	rax, rax
	jne	.L20
.L9:
	mov	rdx, QWORD PTR [r12]
	mov	rsi, r15
	mov	rdi, r12
	call	copyTV@PLT
	mov	rax, QWORD PTR [r12]
	lea	rbp, -4[rax]
	sub	rbp, QWORD PTR LJ_FR2[rip]
	sar	rbp, 2
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	mov	rdi, 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
	jmp	lj_meta_tailcall@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	lj_meta_tget@PLT
	mov	r13, rax
	test	rax, rax
	je	.L9
	mov	rdi, rax
	call	tvisnil@PLT
	test	rax, rax
	je	.L21
.L3:
	xor	edx, edx
	mov	esi, r14d
	mov	rdi, r12
	call	lj_ctype_repr@PLT
	mov	edi, eax
	call	strdata@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 8[r12]
	lea	rdi, 4[rax]
	call	tvisstr@PLT
	test	rax, rax
	mov	rax, QWORD PTR 8[r12]
	lea	rdi, 4[rax]
	je	.L4
	call	strVdata@PLT
	mov	esi, DWORD PTR LJ_ERR_FFI_BADMEMBER[rip]
	mov	rdx, r13
	mov	rdi, r12
	mov	rcx, rax
	call	lj_err_callerv@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdx, 8[r15]
	mov	rsi, rax
	mov	rdi, r12
	call	copyTV@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L4:
	.cfi_restore_state
	call	tviscdata@PLT
	test	rax, rax
	mov	rax, QWORD PTR 8[r12]
	lea	rdi, 4[rax]
	jne	.L22
	call	lj_typename@PLT
	mov	rcx, rax
.L6:
	mov	esi, DWORD PTR LJ_ERR_FFI_BADIDXW[rip]
	mov	rdx, r13
	mov	rdi, r12
	call	lj_err_callerv@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	call	cdataV@PLT
	xor	edx, edx
	mov	rdi, r12
	mov	esi, DWORD PTR [rax]
	call	lj_ctype_repr@PLT
	mov	edi, eax
	call	strdata@PLT
	mov	rcx, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR [r12]
	mov	rdx, r13
	mov	rdi, r12
	mov	r13d, 1
	lea	rsi, -4[rax]
	call	copyTV@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ffi_index_meta, .-ffi_index_meta
	.comm	MM_index,4,4
	.comm	LJ_FR2,8,8
	.comm	LJ_ERR_FFI_BADMEMBER,4,4
	.comm	LJ_ERR_FFI_BADIDXW,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_lib_ffi.c_ffi_index_meta.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ffi_index_meta, %function
ffi_index_meta:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r0
	mov	r1, r2
	mov	r0, r4
	mov	r7, r3
	bl	ctype_typeid
	mov	r8, r0
	mov	r2, r7
	mov	r0, r4
	mov	r1, r8
	bl	lj_ctype_meta
	subs	r4, r0, #0
	ldr	r9, [r6, #4]
	beq	.L3
.L2:
	mov	r0, r4
	bl	tvisfunc
	subs	r5, r0, #0
	bne	.L7
	ldr	r3, .L23
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r6
	cmp	r3, r7
	add	r2, r9, #4
	beq	.L19
	bl	lj_meta_tset
	subs	r1, r0, #0
	bne	.L20
.L9:
	mov	r1, r9
	mov	r0, r6
	ldr	r2, [r6]
	bl	copyTV
	ldr	r3, .L23+4
	ldr	r4, [r6]
	ldr	r0, [r3]
	sub	r4, r4, #4
	sub	r4, r4, r0
	asr	r4, r4, #2
.L7:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	lj_meta_tailcall
.L19:
	bl	lj_meta_tget
	subs	r5, r0, #0
	beq	.L9
	bl	tvisnil
	cmp	r0, #0
	beq	.L21
.L3:
	mov	r2, #0
	mov	r1, r8
	mov	r0, r6
	bl	lj_ctype_repr
	bl	strdata
	ldr	r3, [r6, #4]
	mov	r10, r0
	add	r0, r3, #4
	bl	tvisstr
	subs	r5, r0, #0
	beq	.L4
	ldr	r0, [r6, #4]
	ldr	r3, .L23+8
	add	r0, r0, #4
	ldr	r5, [r3]
	bl	strVdata
	mov	r2, r10
	mov	r3, r0
	mov	r1, r5
	mov	r0, r6
	bl	lj_err_callerv
	b	.L2
.L20:
	mov	r0, r6
	add	r2, r9, #8
	bl	copyTV
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r0, [r6, #4]
	add	r0, r0, #4
	bl	tviscdata
	cmp	r0, #0
	ldr	r0, [r6, #4]
	add	r0, r0, #4
	bne	.L22
	bl	lj_typename
	mov	r3, r0
.L6:
	ldr	r1, .L23+12
	mov	r2, r10
	mov	r0, r6
	ldr	r1, [r1]
	bl	lj_err_callerv
	b	.L2
.L22:
	bl	cdataV
	mov	r2, r5
	ldr	r1, [r0]
	mov	r0, r6
	bl	lj_ctype_repr
	bl	strdata
	mov	r3, r0
	b	.L6
.L21:
	ldr	r1, [r6]
	mov	r2, r5
	mov	r0, r6
	sub	r1, r1, #4
	bl	copyTV
	mov	r5, #1
	b	.L1
.L24:
	.align	2
.L23:
	.word	MM_index
	.word	LJ_FR2
	.word	LJ_ERR_FFI_BADMEMBER
	.word	LJ_ERR_FFI_BADIDXW
	.size	ffi_index_meta, .-ffi_index_meta
	.comm	MM_index,4,4
	.comm	LJ_FR2,4,4
	.comm	LJ_ERR_FFI_BADMEMBER,4,4
	.comm	LJ_ERR_FFI_BADIDXW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
