	.file	"extr_pg_subscription.c_GetSubscriptionRelState.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"subscription table %u in subscription %u does not exist"
	.text
	.p2align 4
	.globl	GetSubscriptionRelState
	.type	GetSubscriptionRelState, @function
GetSubscriptionRelState:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, DWORD PTR SubscriptionRelRelationId[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	table_open@PLT
	mov	edi, r13d
	mov	r14d, eax
	call	ObjectIdGetDatum@PLT
	mov	edi, r12d
	mov	ebp, eax
	call	ObjectIdGetDatum@PLT
	mov	edi, DWORD PTR SUBSCRIPTIONRELMAP[rip]
	mov	edx, ebp
	mov	esi, eax
	call	SearchSysCache2@PLT
	mov	edi, eax
	mov	ebp, eax
	call	HeapTupleIsValid@PLT
	test	eax, eax
	jne	.L2
	test	r15d, r15d
	jne	.L10
	mov	edi, DWORD PTR ERROR[rip]
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	elog@PLT
.L2:
	mov	edx, DWORD PTR Anum_pg_subscription_rel_srsubstate[rip]
	mov	edi, DWORD PTR SUBSCRIPTIONRELMAP[rip]
	lea	r13, 4[rsp]
	mov	esi, ebp
	mov	rcx, r13
	call	SysCacheGetAttr@PLT
	xor	edi, edi
	mov	r12d, eax
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	edi, r12d
	call	DatumGetChar@PLT
	mov	edx, DWORD PTR Anum_pg_subscription_rel_srsublsn[rip]
	mov	rcx, r13
	mov	esi, ebp
	mov	edi, DWORD PTR SUBSCRIPTIONRELMAP[rip]
	mov	r12d, eax
	call	SysCacheGetAttr@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L5
	mov	eax, DWORD PTR InvalidXLogRecPtr[rip]
	mov	DWORD PTR [rbx], eax
.L6:
	mov	edi, ebp
	call	ReleaseSysCache@PLT
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, r14d
	call	table_close@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, r14d
	call	table_close@PLT
	mov	eax, DWORD PTR InvalidXLogRecPtr[rip]
	mov	DWORD PTR [rbx], eax
	movzx	r12d, BYTE PTR SUBREL_STATE_UNKNOWN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, eax
	call	DatumGetLSN@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L6
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GetSubscriptionRelState, .-GetSubscriptionRelState
	.comm	SubscriptionRelRelationId,4,4
	.comm	SUBSCRIPTIONRELMAP,4,4
	.comm	SUBREL_STATE_UNKNOWN,1,1
	.comm	InvalidXLogRecPtr,4,4
	.comm	ERROR,4,4
	.comm	Anum_pg_subscription_rel_srsubstate,4,4
	.comm	Anum_pg_subscription_rel_srsublsn,4,4
	.comm	AccessShareLock,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_subscription.c_GetSubscriptionRelState.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"subscription table %u in subscription %u does not e"
	.ascii	"xist\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetSubscriptionRelState
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetSubscriptionRelState, %function
GetSubscriptionRelState:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	fp, .L12
	ldr	r0, .L12+4
	sub	sp, sp, #20
	mov	r8, r2
	ldr	r2, .L12+8
	str	r3, [sp, #4]
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [fp]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bl	table_open
	ldr	r10, .L12+12
	mov	r7, r0
	mov	r0, r5
	ldr	r9, [r10]
	bl	ObjectIdGetDatum
	mov	r4, r0
	mov	r0, r6
	bl	ObjectIdGetDatum
	mov	r1, r4
	mov	r2, r0
	mov	r0, r9
	bl	SearchSysCache2
	mov	r4, r0
	bl	HeapTupleIsValid
	cmp	r0, #0
	bne	.L2
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L10
	ldr	r1, .L12+16
	mov	r3, r6
	ldr	r0, [r1]
	mov	r2, r5
	ldr	r1, .L12+20
	bl	elog
.L2:
	ldr	r3, .L12+24
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [r10]
	add	r3, sp, #8
	bl	SysCacheGetAttr
	ldr	r3, [sp, #8]
	mov	r5, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r5
	bl	DatumGetChar
	ldr	r2, .L12+28
	add	r3, sp, #8
	mov	r5, r0
	mov	r1, r4
	ldr	r0, [r10]
	ldr	r2, [r2]
	bl	SysCacheGetAttr
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L12+32
	ldr	r3, [r3]
	str	r3, [r8]
.L6:
	mov	r0, r4
	bl	ReleaseSysCache
	mov	r0, r7
	ldr	r1, [fp]
	bl	table_close
.L4:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r0, r7
	ldr	r1, [fp]
	bl	table_close
	ldr	r2, .L12+32
	ldr	r3, .L12+36
	ldr	r2, [r2]
	str	r2, [r8]
	ldrb	r5, [r3]	@ zero_extendqisi2
	b	.L4
.L5:
	bl	DatumGetLSN
	str	r0, [r8]
	b	.L6
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	AccessShareLock
	.word	SubscriptionRelRelationId
	.word	.LC1
	.word	SUBSCRIPTIONRELMAP
	.word	ERROR
	.word	.LC0
	.word	Anum_pg_subscription_rel_srsubstate
	.word	Anum_pg_subscription_rel_srsublsn
	.word	InvalidXLogRecPtr
	.word	SUBREL_STATE_UNKNOWN
	.size	GetSubscriptionRelState, .-GetSubscriptionRelState
	.comm	SubscriptionRelRelationId,4,4
	.comm	SUBSCRIPTIONRELMAP,4,4
	.comm	SUBREL_STATE_UNKNOWN,1,1
	.comm	InvalidXLogRecPtr,4,4
	.comm	ERROR,4,4
	.comm	Anum_pg_subscription_rel_srsubstate,4,4
	.comm	Anum_pg_subscription_rel_srsublsn,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
