	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckArchiveTimeout
_CheckArchiveTimeout:                   ## @CheckArchiveTimeout
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_XLogArchiveTimeout@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %r14
	movq	_last_xlog_switch_time@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%r14d, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, (%rbx)
	jg	LBB0_8
## %bb.3:
	leaq	-32(%rbp), %rdi
	callq	_GetLastSegSwitchData
	movq	(%r15), %rdi
	movq	%rax, %rsi
	callq	_Max
	movq	%rax, (%r15)
	movl	%r14d, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, (%rbx)
	jg	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	callq	_GetLastImportantRecPtr
	cmpq	-32(%rbp), %rax
	jle	LBB0_7
## %bb.5:
	movl	$1, %edi
	callq	_RequestXLogSwitch
	movq	_wal_segment_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_XLogSegmentOffset
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_7:
	movq	%r14, (%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLogArchiveTimeout,4,2         ## @XLogArchiveTimeout
	.comm	_last_xlog_switch_time,8,3      ## @last_xlog_switch_time
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write-ahead log switch forced (archive_timeout=%d)"

	.no_dead_strip	_CheckArchiveTimeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckArchiveTimeout
_CheckArchiveTimeout:                   ; @CheckArchiveTimeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _XLogArchiveTimeout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _XLogArchiveTimeout@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	bl	_RecoveryInProgress
	cbnz	x0, LBB0_8
; %bb.2:
	bl	_time
	mov	x19, x0
Lloh2:
	adrp	x21, _last_xlog_switch_time@GOTPAGE
Lloh3:
	ldr	x21, [x21, _last_xlog_switch_time@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x20]
	sub	w8, w19, w8
	cmp	w9, w8
	b.gt	LBB0_8
; %bb.3:
	add	x0, sp, #8
	bl	_GetLastSegSwitchData
	mov	x1, x0
	ldr	x0, [x21]
	bl	_Max
	str	x0, [x21]
	ldr	w8, [x20]
	sub	w9, w19, w0
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.4:
	bl	_GetLastImportantRecPtr
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.5:
	mov	w0, #1
	bl	_RequestXLogSwitch
Lloh4:
	adrp	x8, _wal_segment_size@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wal_segment_size@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_XLogSegmentOffset
	cbz	x0, LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_7:
	str	x19, [x21]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XLogArchiveTimeout,4,2         ; @XLogArchiveTimeout
	.comm	_last_xlog_switch_time,8,3      ; @last_xlog_switch_time
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write-ahead log switch forced (archive_timeout=%d)"

	.no_dead_strip	_CheckArchiveTimeout
.subsections_via_symbols
