	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestCheckpoint              ## -- Begin function RequestCheckpoint
	.p2align	4, 0x90
_RequestCheckpoint:                     ## @RequestCheckpoint
	.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
	movl	%edi, %r14d
	movq	_IsPostmasterEnvironment@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_CheckpointerShmem@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %r12d
	movq	_CHECKPOINT_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	orl	%eax, 8(%rdi)
	addq	$32, %rdi
	callq	_SpinLockRelease
	movq	_CHECKPOINT_WAIT@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_pg_usleep
	incl	%ebx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	cmpl	$599, %ebx                      ## imm = 0x257
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %eax
	jne	LBB0_2
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	cmpl	$599, %ebx                      ## imm = 0x257
	ja	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %eax
	jne	LBB0_2
	jmp	LBB0_16
LBB0_9:
	movq	_CHECKPOINT_IMMEDIATE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_CreateCheckPoint
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smgrcloseall                   ## TAILCALL
LBB0_10:
	testl	%r14d, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_13:
	testl	%r14d, %eax
	je	LBB0_16
## %bb.14:
	leaq	L_.str(%rip), %rsi
LBB0_15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str(%rip), %rsi
LBB0_17:
	movq	_LOG@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	callq	_elog
LBB0_19:
	testl	%r14d, (%r13)
	je	LBB0_27
## %bb.20:
	movq	(%r15), %rdi
	addq	$36, %rdi
	callq	_ConditionVariablePrepareToSleep
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	4(%rdi), %r14d
	addq	$32, %rdi
	callq	_SpinLockRelease
	cmpl	%r12d, %r14d
	jne	LBB0_23
## %bb.21:
	movq	_WAIT_EVENT_CHECKPOINT_START@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	$36, %rdi
	movl	(%rbx), %esi
	callq	_ConditionVariableSleep
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	4(%rdi), %r14d
	addq	$32, %rdi
	callq	_SpinLockRelease
	cmpl	%r12d, %r14d
	je	LBB0_22
LBB0_23:
	xorl	%eax, %eax
	callq	_ConditionVariableCancelSleep
	movq	(%r15), %rdi
	addq	$28, %rdi
	callq	_ConditionVariablePrepareToSleep
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	(%rdi), %r13d
	movl	24(%rdi), %r12d
	addq	$32, %rdi
	callq	_SpinLockRelease
	cmpl	%r14d, %r12d
	jge	LBB0_26
## %bb.24:
	movq	_WAIT_EVENT_CHECKPOINT_DONE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	$28, %rdi
	movl	(%r12), %esi
	callq	_ConditionVariableSleep
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movl	(%rdi), %r13d
	movl	24(%rdi), %ebx
	addq	$32, %rdi
	callq	_SpinLockRelease
	cmpl	%r14d, %ebx
	jl	LBB0_25
LBB0_26:
	xorl	%eax, %eax
	callq	_ConditionVariableCancelSleep
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_28
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IsPostmasterEnvironment,4,2    ## @IsPostmasterEnvironment
	.comm	_CHECKPOINT_IMMEDIATE,4,2       ## @CHECKPOINT_IMMEDIATE
	.comm	_CheckpointerShmem,8,3          ## @CheckpointerShmem
	.comm	_CHECKPOINT_REQUESTED,4,2       ## @CHECKPOINT_REQUESTED
	.comm	_CHECKPOINT_WAIT,4,2            ## @CHECKPOINT_WAIT
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not signal for checkpoint: checkpointer is not running"

	.comm	_SIGINT,4,2                     ## @SIGINT
L_.str.1:                               ## @.str.1
	.asciz	"could not signal for checkpoint: %m"

	.comm	_WAIT_EVENT_CHECKPOINT_START,4,2 ## @WAIT_EVENT_CHECKPOINT_START
	.comm	_WAIT_EVENT_CHECKPOINT_DONE,4,2 ## @WAIT_EVENT_CHECKPOINT_DONE
L_.str.2:                               ## @.str.2
	.asciz	"checkpoint request failed"

L_.str.3:                               ## @.str.3
	.asciz	"Consult recent messages in the server log for details."

	.comm	_MAX_SIGNAL_TRIES,4,2           ## @MAX_SIGNAL_TRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestCheckpoint              ; -- Begin function RequestCheckpoint
	.p2align	2
_RequestCheckpoint:                     ; @RequestCheckpoint
	.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, _IsPostmasterEnvironment@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IsPostmasterEnvironment@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
Lloh3:
	adrp	x21, _CheckpointerShmem@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CheckpointerShmem@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldp	w20, w22, [x8]
Lloh5:
	adrp	x9, _CHECKPOINT_REQUESTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHECKPOINT_REQUESTED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w19
	ldr	w10, [x8, #8]
	orr	w9, w9, w10
	str	w9, [x8, #8]
	add	x0, x8, #32
	bl	_SpinLockRelease
	mov	w24, #0
Lloh8:
	adrp	x23, _CHECKPOINT_WAIT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CHECKPOINT_WAIT@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SIGINT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SIGINT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_pg_usleep
	add	w24, w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	bl	_kill
	cbz	x0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	and	w8, w8, w19
	cmp	w24, #599
	b.hi	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_2
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	and	w8, w8, w19
	cmp	w24, #599
	b.hi	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_2
	b	LBB0_16
LBB0_9:
Lloh12:
	adrp	x8, _CHECKPOINT_IMMEDIATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHECKPOINT_IMMEDIATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w0, w8, w19
	bl	_CreateCheckPoint
	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	_smgrcloseall
LBB0_10:
	cbz	w8, LBB0_12
; %bb.11:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_13:
	cbz	w8, LBB0_16
; %bb.14:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_15:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
LBB0_17:
Lloh25:
	adrp	x8, _LOG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_elog
LBB0_19:
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_27
; %bb.20:
	ldr	x8, [x21]
	add	x0, x8, #36
	bl	_ConditionVariablePrepareToSleep
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	w19, [x8, #4]
	add	x0, x8, #32
	bl	_SpinLockRelease
	cmp	w19, w22
	b.ne	LBB0_23
; %bb.21:
Lloh27:
	adrp	x23, _WAIT_EVENT_CHECKPOINT_START@GOTPAGE
Lloh28:
	ldr	x23, [x23, _WAIT_EVENT_CHECKPOINT_START@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, #36
	ldr	w1, [x23]
	bl	_ConditionVariableSleep
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	w19, [x8, #4]
	add	x0, x8, #32
	bl	_SpinLockRelease
	cmp	w19, w22
	b.eq	LBB0_22
LBB0_23:
	bl	_ConditionVariableCancelSleep
	ldr	x8, [x21]
	add	x0, x8, #28
	bl	_ConditionVariablePrepareToSleep
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	w23, [x8, #24]
	ldr	w22, [x8]
	add	x0, x8, #32
	bl	_SpinLockRelease
	cmp	w23, w19
	b.ge	LBB0_26
; %bb.24:
Lloh29:
	adrp	x23, _WAIT_EVENT_CHECKPOINT_DONE@GOTPAGE
Lloh30:
	ldr	x23, [x23, _WAIT_EVENT_CHECKPOINT_DONE@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, #28
	ldr	w1, [x23]
	bl	_ConditionVariableSleep
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	w24, [x8, #24]
	ldr	w22, [x8]
	add	x0, x8, #32
	bl	_SpinLockRelease
	cmp	w24, w19
	b.lt	LBB0_25
LBB0_26:
	bl	_ConditionVariableCancelSleep
	cmp	w22, w20
	b.ne	LBB0_28
LBB0_27:
	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_28:
Lloh31:
	adrp	x8, _ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	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	_ereport
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IsPostmasterEnvironment,4,2    ; @IsPostmasterEnvironment
	.comm	_CHECKPOINT_IMMEDIATE,4,2       ; @CHECKPOINT_IMMEDIATE
	.comm	_CheckpointerShmem,8,3          ; @CheckpointerShmem
	.comm	_CHECKPOINT_REQUESTED,4,2       ; @CHECKPOINT_REQUESTED
	.comm	_CHECKPOINT_WAIT,4,2            ; @CHECKPOINT_WAIT
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not signal for checkpoint: checkpointer is not running"

	.comm	_SIGINT,4,2                     ; @SIGINT
l_.str.1:                               ; @.str.1
	.asciz	"could not signal for checkpoint: %m"

	.comm	_WAIT_EVENT_CHECKPOINT_START,4,2 ; @WAIT_EVENT_CHECKPOINT_START
	.comm	_WAIT_EVENT_CHECKPOINT_DONE,4,2 ; @WAIT_EVENT_CHECKPOINT_DONE
l_.str.2:                               ; @.str.2
	.asciz	"checkpoint request failed"

l_.str.3:                               ; @.str.3
	.asciz	"Consult recent messages in the server log for details."

	.comm	_MAX_SIGNAL_TRIES,4,2           ; @MAX_SIGNAL_TRIES
.subsections_via_symbols
