	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleartable
_cleartable:                            ## @cleartable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	_VALUEWEAKBIT@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	callq	_gco2h
	movq	%rax, %r14
	movl	(%rax), %r15d
	movl	24(%rax), %edi
	movl	(%r12), %esi
	callq	_testbit
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r14), %edi
	movq	_KEYWEAKBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_testbit
	testq	%rax, %rax
	setne	%cl
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %edi
	callq	_lua_assert
	movl	24(%r14), %edi
	movl	(%r12), %esi
	callq	_testbit
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	leaq	-4(,%rax,4), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	addq	$-4, %r13
	decl	%r15d
	je	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iscleared
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	callq	_setnilvalue
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_sizenode
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	decl	%ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	callq	_gval
	movq	%rax, %rdi
	callq	_setnilvalue
	movq	%r15, %rdi
	callq	_removeentry
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	addl	$-1, %ebx
	jae	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gnode
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_gval
	movq	%rax, %rdi
	callq	_ttisnil
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	callq	_key2tval
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_iscleared
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	callq	_gval
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_iscleared
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VALUEWEAKBIT,4,2               ## @VALUEWEAKBIT
	.comm	_KEYWEAKBIT,4,2                 ## @KEYWEAKBIT
	.no_dead_strip	_cleartable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleartable
_cleartable:                            ; @cleartable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x22, _VALUEWEAKBIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VALUEWEAKBIT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _KEYWEAKBIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KEYWEAKBIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	bl	_gco2h
	mov	x19, x0
	ldr	w21, [x0]
	ldr	w0, [x0, #24]
	ldr	w1, [x22]
	bl	_testbit
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x23]
	bl	_testbit
	cmp	x0, #0
	cset	w0, ne
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_lua_assert
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
	bl	_testbit
	cmp	x0, #0
	ccmp	w21, #0, #4, ne
	b.ne	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_sizenode
	cbz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w20, w0, #1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	bl	_gval
	bl	_setnilvalue
	mov	x0, x21
	bl	_removeentry
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	sub	w20, w20, #1
	cmn	w20, #1
	b.eq	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	bl	_gnode
	mov	x21, x0
	bl	_gval
	bl	_ttisnil
	cbnz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	bl	_key2tval
	mov	w1, #1
	bl	_iscleared
	cbnz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	bl	_gval
	mov	w1, #0
	bl	_iscleared
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w21
	lsl	x8, x8, #2
	sub	x24, x8, #4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	sub	x24, x24, #4
	subs	w21, w21, #1
	b.eq	LBB0_7
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	add	x20, x8, x24
	mov	x0, x20
	mov	w1, #0
	bl	_iscleared
	cbz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x20
	bl	_setnilvalue
	b	LBB0_15
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VALUEWEAKBIT,4,2               ; @VALUEWEAKBIT
	.comm	_KEYWEAKBIT,4,2                 ; @KEYWEAKBIT
	.no_dead_strip	_cleartable
.subsections_via_symbols
