	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atomic
_atomic:                                ## @atomic
	.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
	callq	_remarkupvals
	movq	%rbx, %rdi
	callq	_propagateall
	movq	56(%rbx), %rax
	movq	%rax, 72(%rbx)
	movq	$0, 56(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_markobject
	movq	%rbx, %rdi
	callq	_markmt
	movq	%rbx, %rdi
	callq	_propagateall
	movq	64(%rbx), %rax
	movq	%rax, 72(%rbx)
	movq	$0, 64(%rbx)
	movq	%rbx, %rdi
	callq	_propagateall
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_luaC_separateudata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_marktmu
	movq	%rbx, %rdi
	callq	_propagateall
	movq	%rax, %r15
	movq	56(%rbx), %rdi
	callq	_cleartable
	movq	%rbx, %rdi
	callq	_otherwhite
	movl	%eax, %edi
	callq	_cast_byte
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	leaq	24(%rbx), %rax
	movq	%rax, 32(%rbx)
	movl	$2, (%rbx)
	movq	8(%rbx), %rax
	addq	%r14, %r15
	subq	%r15, %rax
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atomic
_atomic:                                ; @atomic
	.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	x20, x0
	bl	_G
	mov	x19, x0
	bl	_remarkupvals
	mov	x0, x19
	bl	_propagateall
	ldr	x8, [x19, #56]
	str	x8, [x19, #72]
	str	xzr, [x19, #56]
	mov	x0, x19
	mov	x1, x20
	bl	_markobject
	mov	x0, x19
	bl	_markmt
	mov	x0, x19
	bl	_propagateall
	ldr	x8, [x19, #64]
	stp	xzr, x8, [x19, #64]
	mov	x0, x19
	bl	_propagateall
	mov	x0, x20
	mov	w1, #0
	bl	_luaC_separateudata
	mov	x20, x0
	mov	x0, x19
	bl	_marktmu
	mov	x0, x19
	bl	_propagateall
	mov	x21, x0
	ldr	x0, [x19, #56]
	bl	_cleartable
	mov	x0, x19
	bl	_otherwhite
	bl	_cast_byte
	str	w0, [x19, #48]
	add	x8, x19, #24
	stp	x8, xzr, [x19, #32]
	mov	w8, #2
	str	w8, [x19]
	ldr	x8, [x19, #8]
	add	x9, x21, x20
	sub	x8, x8, x9
	str	x8, [x19, #16]
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_atomic
.subsections_via_symbols
