	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestXLogStreaming           ## -- Begin function RequestXLogStreaming
	.p2align	4, 0x90
_RequestXLogStreaming:                  ## @RequestXLogStreaming
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_WalRcv@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_wal_segment_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_XLogSegmentOffset
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_XLogSegmentOffset
	subq	%rax, %r13
LBB0_2:
	leaq	40(%r14), %r12
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	movq	(%r14), %rax
	movq	_WALRCV_STOPPED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	sete	%cl
	movq	_WALRCV_WAITING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	8(%r14), %rdi
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_MAXCONNINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	jmp	LBB0_5
LBB0_4:
	movb	$0, (%rdi)
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%r14), %rdi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	jmp	LBB0_8
LBB0_7:
	movb	$0, (%rdi)
LBB0_8:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	(%r14), %r15
	movq	(%rbx), %rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
## %bb.10:
	movq	_WALRCV_STARTING@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_WALRCV_RESTARTING@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%edx, 80(%r14)
	cmpq	$0, 24(%r14)
	je	LBB0_13
## %bb.12:
	cmpq	%rcx, 32(%r14)
	je	LBB0_14
LBB0_13:
	movq	%r13, 72(%r14)
	movq	%rcx, 32(%r14)
	movq	%r13, 64(%r14)
LBB0_14:
	movq	%r13, 24(%r14)
	movq	%rcx, 56(%r14)
	movq	48(%r14), %r14
	movq	%r12, %rdi
	callq	_SpinLockRelease
	cmpq	%rbx, %r15
	jne	LBB0_15
## %bb.17:
	movq	_PMSIGNAL_START_WALRECEIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendPostmasterSignal           ## TAILCALL
LBB0_15:
	testq	%r14, %r14
	je	LBB0_16
## %bb.18:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetLatch                       ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WalRcv,8,3                     ## @WalRcv
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_WALRCV_STOPPED,8,3             ## @WALRCV_STOPPED
	.comm	_WALRCV_WAITING,8,3             ## @WALRCV_WAITING
	.comm	_MAXCONNINFO,4,2                ## @MAXCONNINFO
	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
	.comm	_WALRCV_STARTING,8,3            ## @WALRCV_STARTING
	.comm	_WALRCV_RESTARTING,8,3          ## @WALRCV_RESTARTING
	.comm	_PMSIGNAL_START_WALRECEIVER,4,2 ## @PMSIGNAL_START_WALRECEIVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestXLogStreaming           ; -- Begin function RequestXLogStreaming
	.p2align	2
_RequestXLogStreaming:                  ; @RequestXLogStreaming
	.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	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WalRcv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WalRcv@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, #0
	bl	_time
	mov	x21, x0
Lloh3:
	adrp	x23, _wal_segment_size@GOTPAGE
Lloh4:
	ldr	x23, [x23, _wal_segment_size@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLogSegmentOffset
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLogSegmentOffset
	sub	x20, x20, x0
LBB0_2:
	add	x23, x25, #40
	mov	x0, x23
	bl	_SpinLockAcquire
	ldr	x8, [x25]
Lloh5:
	adrp	x26, _WALRCV_STOPPED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _WALRCV_STOPPED@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
Lloh7:
	adrp	x9, _WALRCV_WAITING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WALRCV_WAITING@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x25, #8]
	cbz	x24, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _MAXCONNINFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAXCONNINFO@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_strlcpy
	ldr	x0, [x25, #16]
	cbz	x22, LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _NAMEDATALEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_strlcpy
	b	LBB0_7
LBB0_5:
	strb	wzr, [x0]
	ldr	x0, [x25, #16]
	cbnz	x22, LBB0_4
LBB0_6:
	strb	wzr, [x0]
LBB0_7:
	ldr	x22, [x25]
	ldr	x24, [x26]
Lloh16:
	adrp	x8, _WALRCV_STARTING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WALRCV_STARTING@GOTPAGEOFF]
Lloh18:
	adrp	x9, _WALRCV_RESTARTING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WALRCV_RESTARTING@GOTPAGEOFF]
	cmp	x22, x24
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x25]
	str	w21, [x25, #80]
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x25, #32]
	cmp	x8, x19
	b.eq	LBB0_10
LBB0_9:
	str	x19, [x25, #32]
	stp	x20, x20, [x25, #64]
LBB0_10:
	str	x20, [x25, #24]
	str	x19, [x25, #56]
	ldr	x19, [x25, #48]
	mov	x0, x23
	bl	_SpinLockRelease
	cmp	x22, x24
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _PMSIGNAL_START_WALRECEIVER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PMSIGNAL_START_WALRECEIVER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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	_SendPostmasterSignal
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	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	_SetLatch
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WalRcv,8,3                     ; @WalRcv
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_WALRCV_STOPPED,8,3             ; @WALRCV_STOPPED
	.comm	_WALRCV_WAITING,8,3             ; @WALRCV_WAITING
	.comm	_MAXCONNINFO,4,2                ; @MAXCONNINFO
	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
	.comm	_WALRCV_STARTING,8,3            ; @WALRCV_STARTING
	.comm	_WALRCV_RESTARTING,8,3          ; @WALRCV_RESTARTING
	.comm	_PMSIGNAL_START_WALRECEIVER,4,2 ; @PMSIGNAL_START_WALRECEIVER
.subsections_via_symbols
