	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function traverseweakvalue
_traverseweakvalue:                     ## @traverseweakvalue
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_gnodelast
	movq	%rax, %r12
	xorl	%r13d, %r13d
	cmpq	$0, (%r14)
	setg	%r13b
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gnode
	cmpq	%r12, %rax
	jae	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_removeentry
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	cmpq	%r12, %rbx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_checkdeadkey
	movq	%rbx, %rdi
	callq	_gval
	movl	%eax, %edi
	callq	_ttisnil
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_gkey
	movl	%eax, %edi
	callq	_ttisnil
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_lua_assert
	movq	%rbx, %rdi
	callq	_gkey
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_markvalue
	testl	%r13d, %r13d
	movl	$1, %r13d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_gval
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_iscleared
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
	jmp	LBB0_6
LBB0_7:
	movq	(%r15), %rax
	movq	_GCSpropagate@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	addq	$12, %r15
	jmp	LBB0_11
LBB0_9:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.10:
	addq	$8, %r15
LBB0_11:
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_linkgclist                     ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCSpropagate,8,3               ## @GCSpropagate
	.no_dead_strip	_traverseweakvalue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function traverseweakvalue
_traverseweakvalue:                     ; @traverseweakvalue
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_gnodelast
	mov	x21, x0
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w23, gt
	mov	x0, x19
	mov	w1, #0
	bl	_gnode
	cmp	x0, x21
	b.hs	LBB0_8
; %bb.1:
	mov	x22, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_removeentry
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #4
	cmp	x22, x21
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_checkdeadkey
	mov	x0, x22
	bl	_gval
	bl	_ttisnil
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_gkey
	bl	_ttisnil
	cmp	x0, #0
	cset	w0, eq
	bl	_lua_assert
	mov	x0, x22
	bl	_gkey
	mov	x1, x0
	mov	x0, x20
	bl	_markvalue
	cbz	w23, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_gval
	mov	x1, x0
	mov	x0, x20
	bl	_iscleared
	cmp	x0, #0
	cset	w23, ne
	b	LBB0_3
LBB0_8:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _GCSpropagate@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GCSpropagate@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x8, x20, #12
	b	LBB0_12
LBB0_10:
	cbz	w23, LBB0_13
; %bb.11:
	add	x8, x20, #8
LBB0_12:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_linkgclist
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GCSpropagate,8,3               ; @GCSpropagate
	.no_dead_strip	_traverseweakvalue
.subsections_via_symbols
