	.file	"extr_minilua.c_lua_setmetatable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lua_setmetatable, @function
lua_setmetatable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	mov	esi, 1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	api_checknelems@PLT
	mov	esi, ebp
	mov	rdi, rbx
	call	index2adr@PLT
	mov	rdi, rbx
	mov	rsi, rax
	mov	rbp, rax
	call	api_checkvalidindex@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rdi, -4[rax]
	call	ttisnil@PLT
	test	rax, rax
	je	.L17
	mov	rdi, rbp
	call	ttype@PLT
	cmp	rax, 5
	je	.L9
	xor	r12d, r12d
	cmp	rax, 7
	je	.L18
.L5:
	mov	rdi, rbx
	call	G@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	call	ttype@PLT
	mov	QWORD PTR 0[r13+rax*8], r12
.L7:
	sub	QWORD PTR [rbx], 4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbp
	call	uvalue@PLT
	mov	QWORD PTR [rax], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR [rbx]
	lea	rdi, -4[rax]
	call	ttistable@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	luai_apicheck@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rdi, -4[rax]
	call	hvalue@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	ttype@PLT
	cmp	rax, 5
	jne	.L19
	mov	rdi, rbp
	call	hvalue@PLT
	mov	QWORD PTR [rax], r12
	test	r12, r12
	je	.L7
	mov	rdi, rbp
	call	hvalue@PLT
	mov	rdx, r12
	mov	rdi, rbx
	mov	rsi, rax
	call	luaC_objbarriert@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	rax, 7
	jne	.L5
	mov	rdi, rbp
	call	uvalue@PLT
	mov	QWORD PTR [rax], r12
	test	r12, r12
	je	.L7
	mov	rdi, rbp
	call	rawuvalue@PLT
	mov	rdx, r12
	mov	rdi, rbx
	mov	esi, eax
	call	luaC_objbarrier@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	hvalue@PLT
	mov	QWORD PTR [rax], 0
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	lua_setmetatable, .-lua_setmetatable
	.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_minilua.c_lua_setmetatable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lua_setmetatable, %function
lua_setmetatable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r1, #1
	bl	api_checknelems
	mov	r1, r5
	mov	r0, r4
	bl	index2adr
	mov	r5, r0
	mov	r0, r4
	mov	r1, r5
	bl	api_checkvalidindex
	ldr	r0, [r4]
	sub	r0, r0, #4
	bl	ttisnil
	cmp	r0, #0
	beq	.L17
	mov	r0, r5
	bl	ttype
	cmp	r0, #5
	beq	.L9
	cmp	r0, #7
	movne	r6, #0
	beq	.L18
.L5:
	mov	r0, r4
	bl	G
	mov	r3, r0
	mov	r0, r5
	ldr	r5, [r3]
	bl	ttype
	str	r6, [r5, r0, lsl #2]
.L7:
	ldr	r3, [r4]
	mov	r0, #1
	sub	r3, r3, #4
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L18:
	mov	r0, r5
	bl	uvalue
	mov	r3, #0
	str	r3, [r0]
	b	.L7
.L17:
	ldr	r0, [r4]
	sub	r0, r0, #4
	bl	ttistable
	mov	r1, r0
	mov	r0, r4
	bl	luai_apicheck
	ldr	r0, [r4]
	sub	r0, r0, #4
	bl	hvalue
	mov	r6, r0
	mov	r0, r5
	bl	ttype
	cmp	r0, #5
	bne	.L19
	mov	r0, r5
	bl	hvalue
	cmp	r6, #0
	str	r6, [r0]
	beq	.L7
	mov	r0, r5
	bl	hvalue
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	luaC_objbarriert
	b	.L7
.L19:
	cmp	r0, #7
	bne	.L5
	mov	r0, r5
	bl	uvalue
	cmp	r6, #0
	str	r6, [r0]
	beq	.L7
	mov	r0, r5
	bl	rawuvalue
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	luaC_objbarrier
	b	.L7
.L9:
	mov	r0, r5
	bl	hvalue
	mov	r3, #0
	str	r3, [r0]
	b	.L7
	.size	lua_setmetatable, .-lua_setmetatable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
