	.file	"extr_pg_regress.c_stop_postmaster.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/"
.LC1:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"\"%s%spg_ctl\" stop -D \"%s/data\" -s"
	.align 8
.LC3:
	.string	"\n%s: could not stop postmaster: exit code was %d\n"
	.text
	.p2align 4
	.type	stop_postmaster, @function
stop_postmaster:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR postmaster_running[rip]
	test	eax, eax
	jne	.L18
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR MAXPGPATH[rip]
	mov	rsi, rsp
	mov	rbx, rsp
	lea	r12d, [rax+rax]
	movsx	rax, r12d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L4
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L5:
	mov	edi, DWORD PTR stdout[rip]
	mov	r13, rsp
	call	fflush@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	fflush@PLT
	mov	rcx, QWORD PTR bindir[rip]
	mov	r9d, DWORD PTR temp_instance[rip]
	lea	r8, .LC0[rip]
	test	rcx, rcx
	jne	.L6
	lea	r8, .LC1[rip]
	mov	rcx, r8
.L6:
	mov	esi, r12d
	lea	rdx, .LC2[rip]
	mov	rdi, r13
	call	snprintf@PLT
	mov	rdi, r13
	call	system@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
.L7:
	mov	DWORD PTR postmaster_running[rip], 0
	mov	rsp, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r13, QWORD PTR progname[rip]
	lea	rdi, .LC3[rip]
	call	_@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, r12d
	mov	rsi, rax
	mov	rdx, r13
	call	fprintf@PLT
	mov	edi, 2
	call	_exit@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L5
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stop_postmaster, .-stop_postmaster
	.comm	temp_instance,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	progname,8,8
	.comm	postmaster_running,4,4
	.comm	bindir,8,8
	.comm	MAXPGPATH,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_regress.c_stop_postmaster.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	"\"%s%spg_ctl\" stop -D \"%s/data\" -s\000"
	.align	2
.LC3:
	.ascii	"\012%s: could not stop postmaster: exit code was %d"
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_postmaster, %function
stop_postmaster:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r3, .L18
	ldr	r4, .L18+4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L15
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L15:
	ldr	r3, .L18+8
	ldr	r2, .L18+12
	ldr	r5, [r3]
	ldr	r6, .L18+16
	lsl	r5, r5, #1
	add	r3, r5, #7
	bic	r3, r3, #7
	ldr	r0, [r2]
	mov	r7, sp
	sub	sp, sp, r3
	bl	fflush
	ldr	r0, [r6]
	bl	fflush
	ldr	r3, .L18+20
	ldr	r1, .L18+24
	ldr	r3, [r3]
	ldr	r0, [r1]
	cmp	r3, #0
	ldreq	r3, .L18+28
	ldrne	r2, .L18+32
	moveq	r2, r3
	add	r8, sp, #8
	mov	r1, r5
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r0, r8
	ldr	r2, .L18+36
	bl	snprintf
	mov	r0, r8
	bl	system
	subs	r5, r0, #0
	bne	.L17
.L4:
	mov	r3, #0
	str	r3, [r4]
	mov	sp, r7
	b	.L1
.L17:
	ldr	r0, .L18+40
	ldr	r6, [r6]
	bl	_
	ldr	r2, .L18+44
	mov	r1, r0
	mov	r3, r5
	mov	r0, r6
	ldr	r2, [r2]
	bl	fprintf
	mov	r0, #2
	bl	_exit
	b	.L4
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	postmaster_running
	.word	MAXPGPATH
	.word	stdout
	.word	stderr
	.word	bindir
	.word	temp_instance
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	progname
	.size	stop_postmaster, .-stop_postmaster
	.comm	temp_instance,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	progname,4,4
	.comm	postmaster_running,4,4
	.comm	bindir,4,4
	.comm	MAXPGPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
