	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitXLOGAccess                 ## -- Begin function InitXLOGAccess
	.p2align	4, 0x90
_InitXLOGAccess:                        ## @InitXLOGAccess
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_XLogCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	movq	_ThisTimeLineID@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %r14d
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_IsBootstrapProcessingMode
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_2:
	callq	_Assert
	movq	_ControlFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_wal_segment_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_GetRedoRecPtr
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	setne	%r14b
LBB0_4:
	movq	_doPageWrites@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_InitXLogInsert                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_ThisTimeLineID,8,3             ## @ThisTimeLineID
	.comm	_ControlFile,8,3                ## @ControlFile
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_doPageWrites,4,2               ## @doPageWrites
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitXLOGAccess                 ; -- Begin function InitXLOGAccess
	.p2align	2
_InitXLOGAccess:                        ; @InitXLOGAccess
	.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
Lloh0:
	adrp	x8, _XLogCtl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLogCtl@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ThisTimeLineID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ThisTimeLineID@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	bl	_IsBootstrapProcessingMode
	cmp	x0, #0
	cset	w0, ne
LBB0_3:
	bl	_Assert
Lloh6:
	adrp	x8, _ControlFile@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ControlFile@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _wal_segment_size@GOTPAGE
Lloh10:
	ldr	x9, [x9, _wal_segment_size@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	bl	_GetRedoRecPtr
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w8, ne
LBB0_6:
Lloh12:
	adrp	x9, _doPageWrites@GOTPAGE
Lloh13:
	ldr	x9, [x9, _doPageWrites@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_InitXLogInsert
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_ThisTimeLineID,8,3             ; @ThisTimeLineID
	.comm	_ControlFile,8,3                ; @ControlFile
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_doPageWrites,4,2               ; @doPageWrites
.subsections_via_symbols
