	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_garbage_collector_nonreentrant
_key_garbage_collector_nonreentrant:    ## @key_garbage_collector_nonreentrant
	.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
	movq	_key_need_gc@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	_key_garbage_collector_nonreentrant.running(%rip), %rdi
	movl	$1, %esi
	callq	_xchg
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%r14)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%rbx, %rdi
	callq	_key_garbage_collector
	movq	$0, _key_garbage_collector_nonreentrant.running(%rip)
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movq	_key_gc_work@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_key_garbage_collector_nonreentrant.running,8,3 ## @key_garbage_collector_nonreentrant.running
	.comm	_key_need_gc,4,2                ## @key_need_gc
	.comm	_key_gc_work,4,2                ## @key_gc_work
	.no_dead_strip	_key_garbage_collector_nonreentrant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_garbage_collector_nonreentrant
_key_garbage_collector_nonreentrant:    ; @key_garbage_collector_nonreentrant
	.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
Lloh0:
	adrp	x20, _key_need_gc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _key_need_gc@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, _key_garbage_collector_nonreentrant.running@PAGE
Lloh3:
	add	x0, x0, _key_garbage_collector_nonreentrant.running@PAGEOFF
	mov	w1, #1
	bl	_xchg
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	wzr, [x20]
	bl	_smp_mb
	mov	x0, x19
	bl	_key_garbage_collector
	adrp	x8, _key_garbage_collector_nonreentrant.running@PAGE
	str	xzr, [x8, _key_garbage_collector_nonreentrant.running@PAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.4:
Lloh4:
	adrp	x0, _key_gc_work@GOTPAGE
Lloh5:
	ldr	x0, [x0, _key_gc_work@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_key_garbage_collector_nonreentrant.running,8,3 ; @key_garbage_collector_nonreentrant.running
	.comm	_key_need_gc,4,2                ; @key_need_gc
	.comm	_key_gc_work,4,2                ; @key_gc_work
	.no_dead_strip	_key_garbage_collector_nonreentrant
.subsections_via_symbols
