	.file	"extr_pg_basebackup.c_LogStreamerMain.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not finish writing WAL files: %m"
	.text
	.p2align 4
	.type	LogStreamerMain, @function
LogStreamerMain:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 64
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	DWORD PTR in_log_streamer[rip], 1
	mov	rdi, rbp
	call	MemSet@PLT
	mov	eax, DWORD PTR 8[rbx]
	xor	edx, edx
	mov	edi, DWORD PTR 4[rbx]
	cmp	BYTE PTR format[rip], 112
	mov	DWORD PTR 52[rsp], eax
	mov	rax, QWORD PTR 12[rbx]
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR reached_end_position[rip]
	mov	DWORD PTR 48[rsp], eax
	mov	rax, QWORD PTR bgpipe[rip]
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR [rsp], 0
	mov	DWORD PTR 8[rsp], 1
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR standby_message_timeout[rip]
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR replication_slot[rip]
	mov	DWORD PTR 24[rsp], eax
	je	.L13
	mov	esi, DWORD PTR compresslevel[rip]
	call	CreateWalTarMethod@PLT
	mov	QWORD PTR 16[rsp], rax
.L3:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	r12d, 1
	call	ReceiveXlogStream@PLT
	test	eax, eax
	je	.L1
	mov	rdx, QWORD PTR 16[rsp]
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	test	eax, eax
	je	.L14
	mov	edi, DWORD PTR [rbx]
	call	PQfinish@PLT
	xor	eax, eax
	cmp	BYTE PTR format[rip], 112
	je	.L15
	call	FreeWalTarMethod@PLT
.L7:
	mov	rdi, QWORD PTR 16[rsp]
	xor	r12d, r12d
	call	pg_free@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pg_log_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	xor	esi, esi
	call	CreateWalDirectoryMethod@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	call	FreeWalDirectoryMethod@PLT
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	LogStreamerMain, .-LogStreamerMain
	.comm	standby_message_timeout,4,4
	.comm	replication_slot,4,4
	.comm	reached_end_position,4,4
	.comm	in_log_streamer,4,4
	.comm	format,1,1
	.comm	compresslevel,4,4
	.comm	bgpipe,8,8
	.comm	PGINVALID_SOCKET,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_pg_basebackup.c_LogStreamerMain.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not finish writing WAL files: %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LogStreamerMain, %function
LogStreamerMain:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #1
	mov	r4, r0
	sub	sp, sp, #56
	ldr	r3, .L16
	ldr	ip, .L16+4
	mov	r2, #48
	mov	r1, #0
	add	r0, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #52]
	mov	ip,#0
	str	r5, [r3]
	bl	MemSet
	mov	r2, #0
	ldr	r3, .L16+8
	ldr	r1, [r4, #16]
	ldr	r3, [r3]
	ldr	r0, .L16+12
	str	r1, [sp, #48]
	str	r3, [sp, #36]
	ldr	r1, [r4, #12]
	ldr	r3, [r4, #8]
	ldr	r0, [r0]
	ldr	r6, .L16+16
	str	r1, [sp, #44]
	str	r3, [sp, #40]
	ldr	r1, .L16+20
	ldr	r3, .L16+24
	ldr	ip, [r0]
	ldrb	r0, [r6]	@ zero_extendqisi2
	ldr	r1, [r1]
	ldr	r3, [r3]
	cmp	r0, #112
	str	r5, [sp, #12]
	str	ip, [sp, #32]
	str	r1, [sp, #28]
	str	r3, [sp, #20]
	str	r2, [sp, #4]
	str	r2, [sp, #8]
	str	r2, [sp, #24]
	beq	.L12
	ldr	r3, .L16+28
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	CreateWalTarMethod
	str	r0, [sp, #16]
.L3:
	ldr	r0, [r4]
	add	r1, sp, #4
	bl	ReceiveXlogStream
	cmp	r0, #0
	moveq	r0, #1
	beq	.L1
	ldr	r3, [sp, #16]
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	beq	.L13
	ldr	r0, [r4]
	bl	PQfinish
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #112
	beq	.L14
	bl	FreeWalTarMethod
.L7:
	ldr	r0, [sp, #16]
	bl	pg_free
	mov	r0, #0
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, .L16+32
	bl	pg_log_error
	mov	r0, #1
	b	.L1
.L12:
	mov	r1, r2
	ldr	r0, [r4, #4]
	bl	CreateWalDirectoryMethod
	str	r0, [sp, #16]
	b	.L3
.L14:
	bl	FreeWalDirectoryMethod
	b	.L7
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	in_log_streamer
	.word	.LC1
	.word	reached_end_position
	.word	bgpipe
	.word	format
	.word	standby_message_timeout
	.word	replication_slot
	.word	compresslevel
	.word	.LC0
	.size	LogStreamerMain, .-LogStreamerMain
	.comm	standby_message_timeout,4,4
	.comm	replication_slot,4,4
	.comm	reached_end_position,4,4
	.comm	in_log_streamer,4,4
	.comm	format,1,1
	.comm	compresslevel,4,4
	.comm	bgpipe,4,4
	.comm	PGINVALID_SOCKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
