	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenericXLogFinish              ## -- Begin function GenericXLogFinish
	.p2align	4, 0x90
_GenericXLogFinish:                     ## @GenericXLogFinish
	.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, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rdi)
	je	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r13), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_computeDelta
	movq	8(%r14,%r13), %rsi
	movq	8(%r12), %rdx
	movq	%r15, %rdi
	callq	_memcpy
	movq	(%r12), %rdx
	movq	8(%r12), %rdi
	subq	%rdi, %rdx
	addq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rax
	addq	%rax, %r15
	movq	8(%r14,%r13), %rsi
	addq	%rax, %rsi
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	movq	%r15, %rdi
	callq	_memcpy
	movl	4(%r14,%r13), %esi
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XLogRegisterBuffer
	movl	16(%r14,%r13), %edx
	movl	20(%r14,%r13), %esi
	movl	%ebx, %edi
	callq	_XLogRegisterBufData
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r13
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movl	4(%r14,%r13), %edi
	callq	_BufferIsInvalid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r14,%r13), %edi
	callq	_BufferGetPage
	movq	%rax, %r15
	movq	8(%r14,%r13), %r12
	movq	_GENERIC_XLOG_FULL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14,%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	(%r12), %rdx
	movq	8(%r12), %rdi
	subq	%rdi, %rdx
	addq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rax
	addq	%rax, %r15
	movq	8(%r14,%r13), %rsi
	addq	%rax, %rsi
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	movq	%r15, %rdi
	callq	_memcpy
	movl	4(%r14,%r13), %esi
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REGBUF_FORCE_IMAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XLogRegisterBuffer
	jmp	LBB0_7
LBB0_8:
	movq	_RM_GENERIC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_XLogInsert
	movl	%eax, %r14d
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.9:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movl	(%r12,%rbx), %edi
	callq	_BufferIsInvalid
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12,%rbx), %edi
	callq	_BufferGetPage
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	(%r12,%rbx), %edi
	callq	_MarkBufferDirty
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	jmp	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.15:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	movq	_BLCKSZ@GOTPCREL(%rip), %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movl	(%r13,%rbx), %edi
	callq	_BufferIsInvalid
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r13,%rbx), %edi
	callq	_BufferGetPage
	movq	4(%r13,%rbx), %rsi
	movq	(%r12), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%r13,%rbx), %edi
	callq	_MarkBufferDirty
	jmp	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ## @MAX_GENERIC_XLOG_PAGES
	.comm	_GENERIC_XLOG_FULL_IMAGE,4,2    ## @GENERIC_XLOG_FULL_IMAGE
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_REGBUF_FORCE_IMAGE,4,2         ## @REGBUF_FORCE_IMAGE
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_GENERIC_ID,4,2              ## @RM_GENERIC_ID
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenericXLogFinish              ; -- Begin function GenericXLogFinish
	.p2align	2
_GenericXLogFinish:                     ; @GenericXLogFinish
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_14
; %bb.1:
	bl	_XLogBeginInsert
	bl	_START_CRIT_SECTION
Lloh0:
	adrp	x24, _MAX_GENERIC_XLOG_PAGES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_GENERIC_XLOG_PAGES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x25, #0
	mov	x20, #0
Lloh2:
	adrp	x27, _BLCKSZ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BLCKSZ@GOTPAGEOFF]
Lloh4:
	adrp	x28, _REGBUF_STANDARD@GOTPAGE
Lloh5:
	ldr	x28, [x28, _REGBUF_STANDARD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_computeDelta
	ldr	x1, [x21, #8]
	ldr	x2, [x23, #8]
	mov	x0, x22
	bl	_memcpy
	ldp	x9, x8, [x23]
	add	x0, x8, x22
	sub	x2, x9, x8
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23]
	add	x0, x8, x22
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	ldr	x9, [x27]
	sub	x2, x9, x8
	bl	_memcpy
	ldr	w1, [x21, #4]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_XLogRegisterBuffer
	add	x8, x26, x25
	ldp	w2, w1, [x8, #16]
	mov	x0, x20
	bl	_XLogRegisterBufData
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x24]
	add	x25, x25, #24
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19]
	add	x21, x26, x25
	ldr	w0, [x21, #4]
	bl	_BufferIsInvalid
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, #4]
	bl	_BufferGetPage
	mov	x22, x0
	ldr	x23, [x21, #8]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _GENERIC_XLOG_FULL_IMAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GENERIC_XLOG_FULL_IMAGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x23, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldp	x9, x8, [x23]
	add	x0, x8, x22
	sub	x2, x9, x8
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23]
	add	x0, x8, x22
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	ldr	x9, [x27]
	sub	x2, x9, x8
	bl	_memcpy
	ldr	w1, [x21, #4]
Lloh9:
	adrp	x8, _REGBUF_FORCE_IMAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REGBUF_FORCE_IMAGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_XLogRegisterBuffer
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _RM_GENERIC_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RM_GENERIC_ID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_XLogInsert
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	mov	w22, #4
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x24]
	add	x22, x22, #24
	cmp	x21, x8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19]
	ldr	w0, [x23, x22]
	bl	_BufferIsInvalid
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x23, x22]
	bl	_BufferGetPage
	mov	x1, x20
	bl	_PageSetLSN
	ldr	w0, [x23, x22]
	bl	_MarkBufferDirty
	b	LBB0_10
LBB0_13:
	bl	_END_CRIT_SECTION
	b	LBB0_20
LBB0_14:
	bl	_START_CRIT_SECTION
Lloh15:
	adrp	x20, _MAX_GENERIC_XLOG_PAGES@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MAX_GENERIC_XLOG_PAGES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x21, #0
	mov	x22, #0
Lloh17:
	adrp	x23, _BLCKSZ@GOTPAGE
Lloh18:
	ldr	x23, [x23, _BLCKSZ@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #24
	cmp	x22, x8
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x24, x8, x21
	ldr	w0, [x24, #4]
	bl	_BufferIsInvalid
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x24, #4]
	bl	_BufferGetPage
	ldr	x1, [x24, #8]
	ldr	x2, [x23]
	bl	_memcpy
	ldr	w0, [x24, #4]
	bl	_MarkBufferDirty
	b	LBB0_16
LBB0_19:
	bl	_END_CRIT_SECTION
Lloh19:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
LBB0_20:
	mov	x0, x19
	bl	_pfree
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ; @MAX_GENERIC_XLOG_PAGES
	.comm	_GENERIC_XLOG_FULL_IMAGE,4,2    ; @GENERIC_XLOG_FULL_IMAGE
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_REGBUF_FORCE_IMAGE,4,2         ; @REGBUF_FORCE_IMAGE
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_GENERIC_ID,4,2              ; @RM_GENERIC_ID
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
.subsections_via_symbols
