	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogWalRcvFlush
_XLogWalRcvFlush:                       ## @XLogWalRcvFlush
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_LogstreamResult@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jge	LBB0_9
## %bb.1:
	movl	%edi, %r14d
	movq	_WalRcv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_recvFile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_recvSegNo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_issue_xlog_fsync
	movq	8(%r15), %rax
	movq	%rax, (%r15)
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.2:
	movq	%rax, 8(%rbx)
	movq	%rcx, (%rbx)
	movq	_ThisTimeLineID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_3:
	movq	%r12, %rdi
	callq	_SpinLockRelease
	xorl	%eax, %eax
	callq	_WakeupRecovery
	xorl	%eax, %eax
	callq	_AllowCascadeReplication
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_WalSndWakeup
LBB0_5:
	movq	_update_process_title@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	8(%r15), %r8
	movq	%r8, %rcx
	shrq	$32, %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$50, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_snprintf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_ps_display
LBB0_7:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_XLogWalRcvSendReply
	xorl	%edi, %edi
	callq	_XLogWalRcvSendHSFeedback
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LogstreamResult,16,3           ## @LogstreamResult
	.comm	_WalRcv,8,3                     ## @WalRcv
	.comm	_recvFile,4,2                   ## @recvFile
	.comm	_recvSegNo,4,2                  ## @recvSegNo
	.comm	_ThisTimeLineID,4,2             ## @ThisTimeLineID
	.comm	_update_process_title,8,3       ## @update_process_title
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"streaming %X/%X"

	.no_dead_strip	_XLogWalRcvFlush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogWalRcvFlush
_XLogWalRcvFlush:                       ; @XLogWalRcvFlush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _LogstreamResult@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LogstreamResult@GOTPAGEOFF]
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _WalRcv@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WalRcv@GOTPAGEOFF]
Lloh7:
	ldr	x22, [x8]
Lloh8:
	adrp	x8, _recvFile@GOTPAGE
Lloh9:
	ldr	x8, [x8, _recvFile@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _recvSegNo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _recvSegNo@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_issue_xlog_fsync
	ldr	x8, [x21, #8]
	str	x8, [x21]
	add	x20, x22, #16
	mov	x0, x20
	bl	_SpinLockAcquire
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	stp	x9, x8, [x22]
Lloh14:
	adrp	x8, _ThisTimeLineID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ThisTimeLineID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x22, #20]
LBB0_3:
	mov	x0, x20
	bl	_SpinLockRelease
	bl	_WakeupRecovery
	bl	_AllowCascadeReplication
	cbz	x0, LBB0_5
; %bb.4:
	bl	_WalSndWakeup
LBB0_5:
Lloh17:
	adrp	x8, _update_process_title@GOTPAGE
Lloh18:
	ldr	x8, [x8, _update_process_title@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldp	w4, w3, [x21, #8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #6
	mov	w1, #50
	bl	_snprintf
	add	x0, sp, #6
	mov	w1, #0
	bl	_set_ps_display
LBB0_7:
	cbnz	w19, LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w1, #0
	bl	_XLogWalRcvSendReply
	mov	w0, #0
	bl	_XLogWalRcvSendHSFeedback
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LogstreamResult,16,3           ; @LogstreamResult
	.comm	_WalRcv,8,3                     ; @WalRcv
	.comm	_recvFile,4,2                   ; @recvFile
	.comm	_recvSegNo,4,2                  ; @recvSegNo
	.comm	_ThisTimeLineID,4,2             ; @ThisTimeLineID
	.comm	_update_process_title,8,3       ; @update_process_title
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"streaming %X/%X"

	.no_dead_strip	_XLogWalRcvFlush
.subsections_via_symbols
