	.file	"extr_origin.c_replorigin_check_prerequisites.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"only superusers can query or manipulate replication origins"
	.align 8
.LC1:
	.string	"cannot query or manipulate replication origin when max_replication_slots = 0"
	.align 8
.LC2:
	.string	"cannot manipulate replication origins during recovery"
	.text
	.p2align 4
	.type	replorigin_check_prerequisites, @function
replorigin_check_prerequisites:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	superuser@PLT
	test	eax, eax
	je	.L15
.L2:
	test	ebp, ebp
	je	.L3
	cmp	QWORD PTR max_replication_slots[rip], 0
	je	.L16
.L3:
	test	ebx, ebx
	je	.L17
.L1:
	add	rsp, 8
	.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
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR ERRCODE_INSUFFICIENT_PRIVILEGE[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	xor	eax, eax
	call	RecoveryInProgress@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR ERRCODE_READ_ONLY_SQL_TRANSACTION[rip]
	call	errcode@PLT
	lea	rdi, .LC2[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ereport@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE[rip]
	call	errcode@PLT
	lea	rdi, .LC1[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	replorigin_check_prerequisites, .-replorigin_check_prerequisites
	.comm	max_replication_slots,8,8
	.comm	ERROR,4,4
	.comm	ERRCODE_READ_ONLY_SQL_TRANSACTION,4,4
	.comm	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,4
	.comm	ERRCODE_INSUFFICIENT_PRIVILEGE,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_origin.c_replorigin_check_prerequisites.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"only superusers can query or manipulate replication"
	.ascii	" origins\000"
	.align	2
.LC1:
	.ascii	"cannot query or manipulate replication origin when "
	.ascii	"max_replication_slots = 0\000"
	.align	2
.LC2:
	.ascii	"cannot manipulate replication origins during recove"
	.ascii	"ry\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	replorigin_check_prerequisites, %function
replorigin_check_prerequisites:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	superuser
	cmp	r0, #0
	beq	.L15
.L2:
	cmp	r5, #0
	beq	.L3
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
.L3:
	cmp	r4, #0
	popne	{r4, r5, r6, pc}
.L17:
	bl	RecoveryInProgress
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	ldr	r0, .L18+12
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ereport
.L15:
	ldr	r2, .L18+16
	ldr	r3, .L18+8
	ldr	r0, [r2]
	ldr	r6, [r3]
	bl	errcode
	ldr	r0, .L18+20
	bl	errmsg
	mov	r1, r0
	mov	r0, r6
	bl	ereport
	b	.L2
.L16:
	ldr	r2, .L18+24
	ldr	r3, .L18+8
	ldr	r0, [r2]
	ldr	r5, [r3]
	bl	errcode
	ldr	r0, .L18+28
	bl	errmsg
	mov	r1, r0
	mov	r0, r5
	bl	ereport
	cmp	r4, #0
	popne	{r4, r5, r6, pc}
	b	.L17
.L19:
	.align	2
.L18:
	.word	max_replication_slots
	.word	ERRCODE_READ_ONLY_SQL_TRANSACTION
	.word	ERROR
	.word	.LC2
	.word	ERRCODE_INSUFFICIENT_PRIVILEGE
	.word	.LC0
	.word	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.word	.LC1
	.size	replorigin_check_prerequisites, .-replorigin_check_prerequisites
	.comm	max_replication_slots,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_READ_ONLY_SQL_TRANSACTION,4,4
	.comm	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,4
	.comm	ERRCODE_INSUFFICIENT_PRIVILEGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
