	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FlushDatabaseBuffers           ## -- Begin function FlushDatabaseBuffers
	.p2align	4, 0x90
_FlushDatabaseBuffers:                  ## @FlushDatabaseBuffers
	.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	%rdi, %r14
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ResourceOwnerEnlargeBuffers
	movq	_NBuffers@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.1:
	movq	_BM_DIRTY@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_UnlockBufHdr
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GetBufferDescriptor
	cmpq	%r14, (%rax)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ReservePrivateRefCountEntry
	movq	%r15, %rdi
	callq	_LockBufHdr
	cmpq	%r14, (%r15)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
	movq	_BM_VALID@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PinBuffer_Locked
	movq	%r15, %rdi
	callq	_BufferDescriptorGetContentLock
	movq	_LW_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_FlushBuffer
	movq	%r15, %rdi
	callq	_BufferDescriptorGetContentLock
	movl	%eax, %edi
	callq	_LWLockRelease
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_UnpinBuffer
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_NBuffers,4,2                   ## @NBuffers
	.comm	_BM_VALID,4,2                   ## @BM_VALID
	.comm	_BM_DIRTY,4,2                   ## @BM_DIRTY
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FlushDatabaseBuffers           ; -- Begin function FlushDatabaseBuffers
	.p2align	2
_FlushDatabaseBuffers:                  ; @FlushDatabaseBuffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ResourceOwnerEnlargeBuffers
Lloh3:
	adrp	x22, _NBuffers@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NBuffers@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w20, #0
Lloh5:
	adrp	x23, _BM_VALID@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BM_VALID@GOTPAGEOFF]
Lloh7:
	adrp	x24, _BM_DIRTY@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BM_DIRTY@GOTPAGEOFF]
Lloh9:
	adrp	x25, _LW_SHARED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _LW_SHARED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_UnlockBufHdr
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GetBufferDescriptor
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	bl	_ReservePrivateRefCountEntry
	mov	x0, x21
	bl	_LockBufHdr
	mov	x1, x0
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bics	wzr, w8, w1
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_PinBuffer_Locked
	mov	x0, x21
	bl	_BufferDescriptorGetContentLock
	ldr	w1, [x25]
	bl	_LWLockAcquire
	mov	x0, x21
	mov	x1, #0
	bl	_FlushBuffer
	mov	x0, x21
	bl	_BufferDescriptorGetContentLock
	bl	_LWLockRelease
	mov	x0, x21
	mov	w1, #1
	bl	_UnpinBuffer
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_NBuffers,4,2                   ; @NBuffers
	.comm	_BM_VALID,4,2                   ; @BM_VALID
	.comm	_BM_DIRTY,4,2                   ; @BM_DIRTY
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
.subsections_via_symbols
