	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_freeallobjects            ## -- Begin function luaC_freeallobjects
	.p2align	4, 0x90
_luaC_freeallobjects:                   ## @luaC_freeallobjects
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_G
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_separatetobefnz
	leaq	24(%rbx), %r15
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_lua_assert
	movq	%r14, %rdi
	callq	_callallpendingfinalizers
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	callq	_lua_assert
	movq	_WHITEBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_KGC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sweepwholelist
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_sweepwholelist
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_sweepwholelist
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lua_assert                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WHITEBITS,4,2                  ## @WHITEBITS
	.comm	_KGC_NORMAL,4,2                 ## @KGC_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_freeallobjects            ; -- Begin function luaC_freeallobjects
	.p2align	2
_luaC_freeallobjects:                   ; @luaC_freeallobjects
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_G
	mov	x20, x0
	mov	w1, #1
	bl	_separatetobefnz
	mov	x21, x20
	ldr	x8, [x21, #24]!
	cmp	x8, #0
	cset	w0, eq
	bl	_lua_assert
	mov	x0, x19
	bl	_callallpendingfinalizers
	ldr	x8, [x20, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_lua_assert
Lloh0:
	adrp	x8, _WHITEBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WHITEBITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KGC_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KGC_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	mov	x0, x19
	mov	x1, x21
	bl	_sweepwholelist
	add	x1, x20, #16
	mov	x0, x19
	bl	_sweepwholelist
	add	x1, x20, #8
	mov	x0, x19
	bl	_sweepwholelist
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lua_assert
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WHITEBITS,4,2                  ; @WHITEBITS
	.comm	_KGC_NORMAL,4,2                 ; @KGC_NORMAL
.subsections_via_symbols
