	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogSendLogical
_XLogSendLogical:                       ## @XLogSendLogical
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WalSndCaughtUp@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	movq	_logical_decoding_ctx@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	_logical_startptr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-40(%rbp), %rdx
	callq	_XLogReadRecord
	movq	%rax, %r14
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	-40(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	xorl	%eax, %eax
	callq	_GetFlushRecPtr
	movq	%rax, %rbx
	movq	(%r12), %rdi
	movq	(%rdi), %rsi
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	callq	_LogicalDecodingProcessRecord
	movq	(%r12), %rax
	movq	(%rax), %rsi
	movq	(%rsi), %rax
	movq	_sentPtr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	cmpq	%rbx, (%rsi)
	jge	LBB0_6
## %bb.5:
	cmpl	$0, (%r15)
	setne	%al
	testb	%al, %al
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movl	$1, (%r15)
	movb	$1, %al
	testb	%al, %al
	je	LBB0_10
LBB0_8:
	movq	_got_STOPPING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_got_SIGUSR2@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_10:
	movq	_MyWalSnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movq	_sentPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_SpinLockRelease
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WalSndCaughtUp,4,2             ## @WalSndCaughtUp
	.comm	_logical_decoding_ctx,8,3       ## @logical_decoding_ctx
	.comm	_logical_startptr,4,2           ## @logical_startptr
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_sentPtr,8,3                    ## @sentPtr
	.comm	_got_STOPPING,8,3               ## @got_STOPPING
	.comm	_got_SIGUSR2,4,2                ## @got_SIGUSR2
	.comm	_MyWalSnd,8,3                   ## @MyWalSnd
	.no_dead_strip	_XLogSendLogical
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogSendLogical
_XLogSendLogical:                       ; @XLogSendLogical
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x21, _WalSndCaughtUp@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WalSndCaughtUp@GOTPAGEOFF]
Lloh2:
	adrp	x23, _logical_decoding_ctx@GOTPAGE
Lloh3:
	ldr	x23, [x23, _logical_decoding_ctx@GOTPAGEOFF]
	str	wzr, [x21]
	ldr	x8, [x23]
	ldr	x0, [x8]
Lloh4:
	adrp	x20, _logical_startptr@GOTPAGE
Lloh5:
	ldr	x20, [x20, _logical_startptr@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_XLogReadRecord
	mov	x19, x0
Lloh6:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	bl	_GetFlushRecPtr
	mov	x20, x0
	ldr	x0, [x23]
	ldr	x1, [x0]
Lloh14:
	adrp	x22, _sentPtr@GOTPAGE
Lloh15:
	ldr	x22, [x22, _sentPtr@GOTPAGEOFF]
	cbz	x19, LBB0_4
; %bb.3:
	bl	_LogicalDecodingProcessRecord
	ldr	x8, [x23]
	ldr	x1, [x8]
	ldr	x8, [x1]
	str	x8, [x22]
LBB0_4:
	ldr	x8, [x1]
	cmp	x8, x20
	b.ge	LBB0_6
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w8, ne
	cbnz	w8, LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w8, #1
	str	w8, [x21]
	cbz	w8, LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _got_STOPPING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _got_STOPPING@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, _got_SIGUSR2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _got_SIGUSR2@GOTPAGEOFF]
	mov	w9, #1
Lloh21:
	str	w9, [x8]
LBB0_9:
Lloh22:
	adrp	x8, _MyWalSnd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MyWalSnd@GOTPAGEOFF]
Lloh24:
	ldr	x20, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x19
	bl	_SpinLockRelease
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WalSndCaughtUp,4,2             ; @WalSndCaughtUp
	.comm	_logical_decoding_ctx,8,3       ; @logical_decoding_ctx
	.comm	_logical_startptr,4,2           ; @logical_startptr
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_sentPtr,8,3                    ; @sentPtr
	.comm	_got_STOPPING,8,3               ; @got_STOPPING
	.comm	_got_SIGUSR2,4,2                ; @got_SIGUSR2
	.comm	_MyWalSnd,8,3                   ; @MyWalSnd
	.no_dead_strip	_XLogSendLogical
.subsections_via_symbols
