	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkLocalBufferDirty           ## -- Begin function MarkLocalBufferDirty
	.p2align	4, 0x90
_MarkLocalBufferDirty:                  ## @MarkLocalBufferDirty
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_BufferIsLocal
	movl	%eax, %edi
	callq	_Assert
	notl	%ebx
	movq	_LocalRefCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rbx,8)
	setg	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_GetLocalBufferDescriptor
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pg_atomic_read_u32
	movq	_BM_DIRTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_2
## %bb.1:
	movq	_pgBufferUsage@GOTPCREL(%rip), %rcx
	incl	(%rcx)
LBB0_2:
	orl	%eax, %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pg_atomic_unlocked_write_u32   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LocalRefCount,8,3              ## @LocalRefCount
	.comm	_BM_DIRTY,4,2                   ## @BM_DIRTY
	.comm	_pgBufferUsage,4,2              ## @pgBufferUsage
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkLocalBufferDirty           ; -- Begin function MarkLocalBufferDirty
	.p2align	2
_MarkLocalBufferDirty:                  ; @MarkLocalBufferDirty
	.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
	mov	x19, x0
	bl	_BufferIsLocal
	bl	_Assert
Lloh0:
	adrp	x8, _LocalRefCount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LocalRefCount@GOTPAGEOFF]
	mvn	w19, w19
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w19, sxtw #3]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x19
	bl	_GetLocalBufferDescriptor
	mov	x19, x0
	bl	_pg_atomic_read_u32
Lloh3:
	adrp	x8, _BM_DIRTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BM_DIRTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _pgBufferUsage@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pgBufferUsage@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
LBB0_2:
	orr	w1, w8, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pg_atomic_unlocked_write_u32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LocalRefCount,8,3              ; @LocalRefCount
	.comm	_BM_DIRTY,4,2                   ; @BM_DIRTY
	.comm	_pgBufferUsage,4,2              ; @pgBufferUsage
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
