	.file	"extr_walsender.c_XLogSendLogical.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.type	XLogSendLogical, @function
XLogSendLogical:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR logical_startptr[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR logical_decoding_ctx[rip]
	mov	rdx, rsp
	mov	DWORD PTR WalSndCaughtUp[rip], 0
	mov	rdi, QWORD PTR [rax]
	call	XLogReadRecord@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rbp, rax
	mov	eax, DWORD PTR InvalidXLogRecPtr[rip]
	mov	DWORD PTR logical_startptr[rip], eax
	test	rdx, rdx
	je	.L2
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	call	elog@PLT
.L2:
	xor	eax, eax
	call	GetFlushRecPtr@PLT
	mov	rbx, rax
	test	rbp, rbp
	je	.L15
	mov	rdi, QWORD PTR logical_decoding_ctx[rip]
	mov	rsi, QWORD PTR [rdi]
	call	LogicalDecodingProcessRecord@PLT
	mov	rax, QWORD PTR logical_decoding_ctx[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR sentPtr[rip], rdx
.L4:
	cmp	QWORD PTR [rax], rbx
	jl	.L5
	mov	DWORD PTR WalSndCaughtUp[rip], 1
.L6:
	cmp	QWORD PTR got_STOPPING[rip], 0
	jne	.L16
.L7:
	mov	rbx, QWORD PTR MyWalSnd[rip]
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	SpinLockAcquire@PLT
	mov	rax, QWORD PTR sentPtr[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	call	SpinLockRelease@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR WalSndCaughtUp[rip]
	test	eax, eax
	je	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	DWORD PTR got_SIGUSR2[rip], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR logical_decoding_ctx[rip]
	mov	rax, QWORD PTR [rax]
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	XLogSendLogical, .-XLogSendLogical
	.comm	sentPtr,8,8
	.comm	logical_startptr,4,4
	.comm	logical_decoding_ctx,8,8
	.comm	got_STOPPING,8,8
	.comm	got_SIGUSR2,4,4
	.comm	WalSndCaughtUp,4,4
	.comm	MyWalSnd,8,8
	.comm	InvalidXLogRecPtr,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_walsender.c_XLogSendLogical.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XLogSendLogical, %function
XLogSendLogical:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, .L20
	ldr	r7, .L20+4
	ldr	r2, [r5]
	sub	sp, sp, #12
	ldr	ip, .L20+8
	ldr	r6, .L20+12
	ldr	r0, [r2]
	ldr	r1, [r7]
	mov	r2, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r3, [r6]
	bl	XLogReadRecord
	ldr	r3, .L20+16
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, #0
	mov	r4, r0
	str	r3, [r7]
	beq	.L2
	ldr	r3, .L20+20
	ldr	r1, .L20+24
	ldr	r0, [r3]
	bl	elog
.L2:
	bl	GetFlushRecPtr
	cmp	r4, #0
	mov	r4, r0
	beq	.L18
	ldr	r0, [r5]
	ldr	r7, .L20+28
	ldr	r1, [r0]
	bl	LogicalDecodingProcessRecord
	ldr	r3, [r5]
	ldr	r3, [r3]
	ldr	r2, [r3]
	str	r2, [r7]
.L4:
	ldr	r3, [r3]
	cmp	r3, r4
	movge	r3, #1
	strge	r3, [r6]
	bge	.L6
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L6
.L7:
	ldr	r3, .L20+32
	ldr	r4, [r3]
	add	r5, r4, #4
	mov	r0, r5
	bl	SpinLockAcquire
	ldr	r3, [r7]
	mov	r0, r5
	str	r3, [r4]
	bl	SpinLockRelease
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r3, .L20+36
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r2, #1
	ldrne	r3, .L20+40
	strne	r2, [r3]
	b	.L7
.L18:
	ldr	r3, [r5]
	ldr	r7, .L20+28
	ldr	r3, [r3]
	b	.L4
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	logical_decoding_ctx
	.word	logical_startptr
	.word	.LC1
	.word	WalSndCaughtUp
	.word	InvalidXLogRecPtr
	.word	ERROR
	.word	.LC0
	.word	sentPtr
	.word	MyWalSnd
	.word	got_STOPPING
	.word	got_SIGUSR2
	.size	XLogSendLogical, .-XLogSendLogical
	.comm	sentPtr,4,4
	.comm	logical_startptr,4,4
	.comm	logical_decoding_ctx,4,4
	.comm	got_STOPPING,4,4
	.comm	got_SIGUSR2,4,4
	.comm	WalSndCaughtUp,4,4
	.comm	MyWalSnd,4,4
	.comm	InvalidXLogRecPtr,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
