	.file	"extr_lauxlib.c_typeerror.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"light userdata"
.LC1:
	.string	"__name"
.LC2:
	.string	"%s expected, got %s"
	.text
	.p2align 4
	.type	typeerror, @function
typeerror:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	lea	rdx, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	luaL_getmetafield@PLT
	cmp	rax, QWORD PTR LUA_TSTRING[rip]
	je	.L7
	mov	esi, r12d
	mov	rdi, rbp
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TLIGHTUSERDATA[rip]
	lea	rcx, .LC0[rip]
	jne	.L8
.L3:
	mov	rdx, r13
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	lua_pushfstring@PLT
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, rax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	luaL_argerror@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	luaL_typename@PLT
	mov	rcx, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, -1
	mov	rdi, rbp
	call	lua_tostring@PLT
	mov	rcx, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	typeerror, .-typeerror
	.comm	LUA_TSTRING,8,8
	.comm	LUA_TLIGHTUSERDATA,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_lauxlib.c_typeerror.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"light userdata\000"
	.align	2
.LC1:
	.ascii	"__name\000"
	.align	2
.LC2:
	.ascii	"%s expected, got %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	typeerror, %function
typeerror:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	ldr	r2, .L9
	mov	r4, r0
	mov	r5, r1
	bl	luaL_getmetafield
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L7
	mov	r1, r5
	mov	r0, r4
	bl	lua_type
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L8
	ldr	r3, .L9+12
.L3:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, .L9+16
	bl	lua_pushfstring
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	luaL_argerror
.L8:
	mov	r1, r5
	mov	r0, r4
	bl	luaL_typename
	mov	r3, r0
	b	.L3
.L7:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_tostring
	mov	r3, r0
	b	.L3
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	LUA_TSTRING
	.word	LUA_TLIGHTUSERDATA
	.word	.LC0
	.word	.LC2
	.size	typeerror, .-typeerror
	.comm	LUA_TSTRING,4,4
	.comm	LUA_TLIGHTUSERDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
