	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_barrierf                  ## -- Begin function luaC_barrierf
	.p2align	4, 0x90
_luaC_barrierf:                         ## @luaC_barrierf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_G
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_isblack
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_iswhite
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_isdead
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_isdead
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_4:
	movl	%ebx, %edi
	callq	_lua_assert
	movq	(%r12), %rax
	movq	_GCSfinalize@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_GCSpause@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_lua_assert
	movq	%r15, %rdi
	callq	_ttype
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_lua_assert
	movq	(%r12), %rax
	movq	_GCSpropagate@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reallymarkobject               ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_makewhite                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GCSfinalize,8,3                ## @GCSfinalize
	.comm	_GCSpause,8,3                   ## @GCSpause
	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
	.comm	_GCSpropagate,8,3               ## @GCSpropagate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaC_barrierf                  ; -- Begin function luaC_barrierf
	.p2align	2
_luaC_barrierf:                         ; @luaC_barrierf
	.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, x2
	mov	x20, x1
	bl	_G
	mov	x21, x0
	mov	x0, x20
	bl	_isblack
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_iswhite
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_isdead
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_isdead
	cmp	w0, #0
	cset	w0, eq
LBB0_5:
	bl	_lua_assert
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _GCSfinalize@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GCSfinalize@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _GCSpause@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GCSpause@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_lua_assert
	mov	x0, x20
	bl	_ttype
Lloh6:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_lua_assert
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _GCSpropagate@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GCSpropagate@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x1, x19
	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	_reallymarkobject
LBB0_7:
	mov	x1, x20
	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	_makewhite
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GCSfinalize,8,3                ; @GCSfinalize
	.comm	_GCSpause,8,3                   ; @GCSpause
	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
	.comm	_GCSpropagate,8,3               ; @GCSpropagate
.subsections_via_symbols
