	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateMinRecoveryPoint
_UpdateMinRecoveryPoint:                ## @UpdateMinRecoveryPoint
	.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	_updateMinRecoveryPoint@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_minRecoveryPoint@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%esi, %esi
	setne	%r12b
	jne	LBB0_3
## %bb.2:
	cmpl	%r14d, %edi
	jge	LBB0_6
LBB0_3:
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_InRecovery@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movl	$0, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ControlFileLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ControlFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%edi, (%r13)
	movq	8(%rax), %rax
	movq	_minRecoveryPointTLI@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$0, (%r15)
	jmp	LBB0_15
LBB0_9:
	cmpl	%r14d, (%r13)
	setl	%al
	orb	%al, %r12b
	cmpb	$1, %r12b
	jne	LBB0_15
## %bb.10:
	movq	_XLogCtl@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	(%rdi), %r15d
	movq	8(%rdi), %r12
	addq	$4, %rdi
	callq	_SpinLockRelease
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.11:
	cmpl	%r14d, %r15d
	jge	LBB0_13
## %bb.12:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	movl	%r15d, %r9d
	callq	_elog
LBB0_13:
	movq	_ControlFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_15
## %bb.14:
	movl	%r15d, (%rax)
	movq	%r12, 8(%rax)
	xorl	%eax, %eax
	callq	_UpdateControlFile
	movl	%r15d, (%r13)
	movq	_minRecoveryPointTLI@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movq	_ControlFileLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_updateMinRecoveryPoint,4,2     ## @updateMinRecoveryPoint
	.comm	_minRecoveryPoint,4,2           ## @minRecoveryPoint
	.comm	_InRecovery,8,3                 ## @InRecovery
	.comm	_ControlFileLock,4,2            ## @ControlFileLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ControlFile,8,3                ## @ControlFile
	.comm	_minRecoveryPointTLI,8,3        ## @minRecoveryPointTLI
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xlog min recovery request %X/%X is past current point %X/%X"

	.comm	_DEBUG2,4,2                     ## @DEBUG2
L_.str.1:                               ## @.str.1
	.asciz	"updated min recovery point to %X/%X on timeline %u"

	.no_dead_strip	_UpdateMinRecoveryPoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateMinRecoveryPoint
_UpdateMinRecoveryPoint:                ; @UpdateMinRecoveryPoint
	.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
Lloh0:
	adrp	x21, _updateMinRecoveryPoint@GOTPAGE
Lloh1:
	ldr	x21, [x21, _updateMinRecoveryPoint@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #0
	cset	w22, ne
Lloh2:
	adrp	x23, _minRecoveryPoint@GOTPAGE
Lloh3:
	ldr	x23, [x23, _minRecoveryPoint@GOTPAGEOFF]
	ldr	w0, [x23]
	cbnz	w1, LBB0_3
; %bb.2:
	cmp	w0, w19
	b.ge	LBB0_7
LBB0_3:
	bl	_XLogRecPtrIsInvalid
Lloh4:
	adrp	x8, _InRecovery@GOTPAGE
Lloh5:
	ldr	x8, [x8, _InRecovery@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x24, _ControlFileLock@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ControlFileLock@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh9:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh12:
	adrp	x26, _ControlFile@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ControlFile@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w0, [x8]
	str	w0, [x23]
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x25, _minRecoveryPointTLI@GOTPAGE
Lloh15:
	ldr	x25, [x25, _minRecoveryPointTLI@GOTPAGEOFF]
	str	x8, [x25]
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_8
; %bb.5:
	str	wzr, [x21]
	b	LBB0_14
LBB0_6:
	str	wzr, [x21]
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x23]
	cmp	w8, w19
	cset	w8, lt
	orr	w8, w22, w8
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.9:
Lloh16:
	adrp	x21, _XLogCtl@GOTPAGE
Lloh17:
	ldr	x21, [x21, _XLogCtl@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	w21, [x8]
	ldr	x22, [x8, #8]
	add	x0, x8, #4
	bl	_SpinLockRelease
	cbnz	w20, LBB0_12
; %bb.10:
	cmp	w21, w19
	b.ge	LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	x5, x21
	bl	_elog
LBB0_12:
	ldr	x8, [x26]
	ldr	w9, [x8]
	cmp	w9, w21
	b.ge	LBB0_14
; %bb.13:
	str	w21, [x8]
	str	x22, [x8, #8]
	bl	_UpdateControlFile
	str	w21, [x23]
	str	x22, [x25]
Lloh23:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_14:
	ldr	w0, [x24]
	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
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_updateMinRecoveryPoint,4,2     ; @updateMinRecoveryPoint
	.comm	_minRecoveryPoint,4,2           ; @minRecoveryPoint
	.comm	_InRecovery,8,3                 ; @InRecovery
	.comm	_ControlFileLock,4,2            ; @ControlFileLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ControlFile,8,3                ; @ControlFile
	.comm	_minRecoveryPointTLI,8,3        ; @minRecoveryPointTLI
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xlog min recovery request %X/%X is past current point %X/%X"

	.comm	_DEBUG2,4,2                     ; @DEBUG2
l_.str.1:                               ; @.str.1
	.asciz	"updated min recovery point to %X/%X on timeline %u"

	.no_dead_strip	_UpdateMinRecoveryPoint
.subsections_via_symbols
