	.file	"extr_pg_subscription.c_UpdateSubscriptionRelState.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	UpdateSubscriptionRelState
	.type	UpdateSubscriptionRelState, @function
UpdateSubscriptionRelState:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, rcx
	mov	r10d, edi
	mov	r11d, esi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -68[rbp], edx
	mov	rdi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR Natts_pg_subscription_rel[rip]
	mov	rbx, rax
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rdi, rcx
	mov	rcx, rdi
	cmp	rsp, rcx
	je	.L3
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L26
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L27
.L4:
	mov	rcx, rax
	mov	rsi, rsp
	mov	rdx, rax
	mov	r15, rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L6
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L28
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L29
.L7:
	mov	rdx, rax
	mov	rsi, rsp
	and	rax, -4096
	mov	r13, rsp
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L9
.L30:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L30
.L9:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L10
	or	QWORD PTR -8[rsp+rdx], 0
.L10:
	mov	ecx, DWORD PTR AccessShareLock[rip]
	xor	edx, edx
	mov	esi, r10d
	mov	QWORD PTR -104[rbp], r8
	mov	edi, DWORD PTR SubscriptionRelationId[rip]
	mov	DWORD PTR -92[rbp], r11d
	mov	r12, rsp
	mov	DWORD PTR -80[rbp], r10d
	call	LockSharedObject@PLT
	mov	esi, DWORD PTR RowExclusiveLock[rip]
	mov	edi, DWORD PTR SubscriptionRelRelationId[rip]
	call	table_open@PLT
	mov	r10d, DWORD PTR -80[rbp]
	mov	r14d, eax
	mov	edi, r10d
	mov	DWORD PTR -72[rbp], r10d
	call	ObjectIdGetDatum@PLT
	mov	r11d, DWORD PTR -92[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	edi, r11d
	mov	DWORD PTR -80[rbp], r11d
	call	ObjectIdGetDatum@PLT
	mov	edx, DWORD PTR -88[rbp]
	mov	edi, DWORD PTR SUBSCRIPTIONRELMAP[rip]
	mov	esi, eax
	call	SearchSysCacheCopy2@PLT
	mov	rdi, rax
	mov	QWORD PTR -88[rbp], rax
	call	HeapTupleIsValid@PLT
	mov	r11d, DWORD PTR -80[rbp]
	mov	r10d, DWORD PTR -72[rbp]
	test	eax, eax
	mov	r8, QWORD PTR -104[rbp]
	jne	.L11
	mov	edi, DWORD PTR ERROR[rip]
	mov	ecx, r10d
	mov	edx, r11d
	mov	QWORD PTR -80[rbp], r8
	lea	rsi, .LC0[rip]
	call	elog@PLT
	mov	r8, QWORD PTR -80[rbp]
.L11:
	sal	ebx, 2
	xor	esi, esi
	mov	rdi, r13
	mov	QWORD PTR -80[rbp], r8
	mov	edx, ebx
	call	memset@PLT
	mov	edx, ebx
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	mov	edx, ebx
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR Anum_pg_subscription_rel_srsubstate[rip]
	movsx	edi, BYTE PTR -68[rbp]
	lea	ecx, -1[rax]
	movsx	rbx, ecx
	mov	DWORD PTR [r12+rbx*4], 1
	call	CharGetDatum@PLT
	mov	r8, QWORD PTR -80[rbp]
	cmp	QWORD PTR InvalidXLogRecPtr[rip], r8
	mov	DWORD PTR 0[r13+rbx*4], eax
	mov	eax, DWORD PTR Anum_pg_subscription_rel_srsublsn[rip]
	lea	ebx, -1[rax]
	movsx	rbx, ebx
	mov	DWORD PTR [r12+rbx*4], 1
	je	.L12
	mov	rdi, r8
	call	LSNGetDatum@PLT
	mov	DWORD PTR 0[r13+rbx*4], eax
.L13:
	mov	edi, r14d
	call	RelationGetDescr@PLT
	mov	rdi, QWORD PTR -88[rbp]
	mov	r8, r12
	mov	rcx, r15
	mov	esi, eax
	mov	rdx, r13
	call	heap_modify_tuple@PLT
	mov	edi, r14d
	mov	rsi, rax
	mov	rdx, rax
	call	CatalogTupleUpdate@PLT
	mov	esi, DWORD PTR NoLock[rip]
	mov	edi, r14d
	call	table_close@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L29:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR [r15+rbx*4], 1
	jmp	.L13
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UpdateSubscriptionRelState, .-UpdateSubscriptionRelState
	.comm	SubscriptionRelationId,4,4
	.comm	SubscriptionRelRelationId,4,4
	.comm	SUBSCRIPTIONRELMAP,4,4
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,4,4
	.comm	Natts_pg_subscription_rel,4,4
	.comm	InvalidXLogRecPtr,8,8
	.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_UpdateSubscriptionRelState.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	UpdateSubscriptionRelState
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateSubscriptionRelState, %function
UpdateSubscriptionRelState:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	ip, r3
	mov	lr, r2
	mov	r6, r0
	ldr	r3, .L10
	ldr	r0, .L10+4
	ldr	r4, [r3]
	ldr	r2, .L10+8
	lsl	r4, r4, #2
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	str	ip, [fp, #-56]
	add	r10, sp, #8
	ldr	ip, .L10+12
	sub	sp, sp, r3
	str	lr, [fp, #-52]
	mov	r9, r1
	add	r8, sp, #8
	mov	r1, r6
	sub	sp, sp, r3
	ldr	r3, [r0]
	ldr	r0, [r2]
	mov	r2, #0
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	bl	LockSharedObject
	ldr	r2, .L10+16
	ldr	r3, .L10+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	table_open
	ldr	r3, .L10+24
	mov	r5, r0
	mov	r0, r9
	ldr	r7, [r3]
	bl	ObjectIdGetDatum
	mov	r1, r0
	mov	r0, r6
	str	r1, [fp, #-48]
	bl	ObjectIdGetDatum
	ldr	r1, [fp, #-48]
	mov	r2, r0
	mov	r0, r7
	bl	SearchSysCacheCopy2
	str	r0, [fp, #-48]
	bl	HeapTupleIsValid
	cmp	r0, #0
	add	r7, sp, #8
	beq	.L8
.L2:
	mov	r6, #1
	mov	r2, r4
	mov	r1, #0
	mov	r0, r8
	bl	memset
	mov	r2, r4
	mov	r1, #0
	mov	r0, r10
	bl	memset
	mov	r2, r4
	mov	r1, #0
	mov	r0, r7
	bl	memset
	ldr	r3, .L10+28
	ldr	r0, [fp, #-52]
	ldr	r4, [r3]
	sub	r4, r4, #1
	str	r6, [r7, r4, lsl #2]
	bl	CharGetDatum
	ldr	r2, .L10+32
	ldr	r3, .L10+36
	ldr	r9, [r2]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	sub	r9, r9, #1
	cmp	r3, r2
	str	r0, [r8, r4, lsl #2]
	str	r6, [r7, r9, lsl #2]
	streq	r6, [r10, r9, lsl #2]
	beq	.L4
	mov	r0, r2
	bl	LSNGetDatum
	str	r0, [r8, r9, lsl #2]
.L4:
	mov	r0, r5
	bl	RelationGetDescr
	mov	r3, r10
	mov	r1, r0
	mov	r2, r8
	ldr	r0, [fp, #-48]
	str	r7, [sp]
	bl	heap_modify_tuple
	mov	r2, r0
	mov	r0, r5
	mov	r1, r2
	bl	CatalogTupleUpdate
	ldr	r3, .L10+40
	mov	r0, r5
	ldr	r1, [r3]
	bl	table_close
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r1, .L10+44
	mov	r3, r6
	mov	r2, r9
	ldr	r0, [r1]
	ldr	r1, .L10+48
	bl	elog
	b	.L2
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	Natts_pg_subscription_rel
	.word	AccessShareLock
	.word	SubscriptionRelationId
	.word	.LC1
	.word	RowExclusiveLock
	.word	SubscriptionRelRelationId
	.word	SUBSCRIPTIONRELMAP
	.word	Anum_pg_subscription_rel_srsubstate
	.word	Anum_pg_subscription_rel_srsublsn
	.word	InvalidXLogRecPtr
	.word	NoLock
	.word	ERROR
	.word	.LC0
	.size	UpdateSubscriptionRelState, .-UpdateSubscriptionRelState
	.comm	SubscriptionRelationId,4,4
	.comm	SubscriptionRelRelationId,4,4
	.comm	SUBSCRIPTIONRELMAP,4,4
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,4,4
	.comm	Natts_pg_subscription_rel,4,4
	.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
