	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lua_close
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lua_close:                             ## @lua_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_G
	movq	(%rax), %rbx
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	_luaF_close
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaC_separateudata
	movq	$0, 40(%rbx)
	movq	_callallgcTM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	%rax, 16(%rbx)
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_luaD_rawrunprotected
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close_state                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_callallgcTM,4,2                ## @callallgcTM
	.no_dead_strip	_lua_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_close
_lua_close:                             ; @lua_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_G
	ldr	x19, [x0]
	ldr	w1, [x19, #48]
	mov	x0, x19
	bl	_luaF_close
	mov	x0, x19
	mov	w1, #1
	bl	_luaC_separateudata
	str	xzr, [x19, #40]
Lloh0:
	adrp	x20, _callallgcTM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _callallgcTM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	str	x8, [x19, #16]
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
	stp	xzr, xzr, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, #0
	bl	_luaD_rawrunprotected
	cbnz	x0, LBB0_1
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close_state
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_callallgcTM,4,2                ; @callallgcTM
	.no_dead_strip	_lua_close
.subsections_via_symbols
