	.file	"extr_metadata_sync.c_UpdateDistNodeBoolAttr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not find valid entry for node \"%s:%d\""
	.text
	.p2align 4
	.type	UpdateDistNodeBoolAttr, @function
UpdateDistNodeBoolAttr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r11d, esi
	mov	r10, rdi
	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	DWORD PTR -72[rbp], ecx
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR Natts_pg_dist_node[rip]
	mov	rbx, rax
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rcx, rax
	mov	rdi, rsp
	mov	rdx, rax
	mov	r15, rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rdi, rcx
	mov	rcx, rdi
	cmp	rsp, rcx
	je	.L6
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L26
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L27
.L7:
	mov	rdx, rax
	mov	rdi, rsp
	and	rax, -4096
	mov	r14, rsp
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L9
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L9:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L10
	or	QWORD PTR -8[rsp+rdx], 0
.L10:
	mov	r13d, DWORD PTR RowExclusiveLock[rip]
	xor	eax, eax
	mov	DWORD PTR -96[rbp], r11d
	mov	r12, rsp
	mov	QWORD PTR -88[rbp], r10
	call	DistNodeRelationId@PLT
	mov	esi, r13d
	mov	edi, eax
	call	heap_open@PLT
	mov	rdi, rax
	mov	r13, rax
	call	RelationGetDescr@PLT
	mov	r10, QWORD PTR -88[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rdi, r10
	mov	QWORD PTR -112[rbp], r10
	call	CStringGetTextDatum@PLT
	lea	r9, -64[rbp]
	mov	ecx, DWORD PTR F_TEXTEQ[rip]
	mov	edx, DWORD PTR BTEqualStrategyNumber[rip]
	mov	esi, DWORD PTR Anum_pg_dist_node_nodename[rip]
	mov	rdi, r9
	mov	r8d, eax
	mov	QWORD PTR -88[rbp], r9
	call	ScanKeyInit@PLT
	mov	r11d, DWORD PTR -96[rbp]
	mov	edi, r11d
	mov	DWORD PTR -100[rbp], r11d
	call	Int32GetDatum@PLT
	mov	ecx, DWORD PTR F_INT4EQ[rip]
	mov	edx, DWORD PTR BTEqualStrategyNumber[rip]
	lea	rdi, -60[rbp]
	mov	esi, DWORD PTR Anum_pg_dist_node_nodeport[rip]
	mov	r8d, eax
	call	ScanKeyInit@PLT
	mov	r9, QWORD PTR -88[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR InvalidOid[rip]
	mov	r8d, 2
	mov	rdi, r13
	call	systable_beginscan@PLT
	mov	rdi, rax
	mov	QWORD PTR -88[rbp], rax
	call	systable_getnext@PLT
	mov	rdi, rax
	mov	QWORD PTR -96[rbp], rax
	call	HeapTupleIsValid@PLT
	mov	r11d, DWORD PTR -100[rbp]
	mov	r10, QWORD PTR -112[rbp]
	test	eax, eax
	jne	.L11
	mov	rsi, r10
	lea	rdi, .LC0[rip]
	mov	edx, r11d
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
.L11:
	lea	edx, 0[0+rbx*4]
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	ebx, DWORD PTR -68[rbp]
	mov	edi, DWORD PTR -72[rbp]
	call	BoolGetDatum@PLT
	sub	ebx, 1
	mov	rsi, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR -96[rbp]
	mov	r8, r12
	mov	rcx, r14
	movsx	rbx, ebx
	mov	rdx, r15
	mov	DWORD PTR [r15+rbx*4], eax
	mov	DWORD PTR [r14+rbx*4], 0
	mov	DWORD PTR [r12+rbx*4], 1
	call	heap_modify_tuple@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	rdx, rax
	call	CatalogTupleUpdate@PLT
	xor	eax, eax
	call	DistNodeRelationId@PLT
	mov	edi, eax
	call	CitusInvalidateRelcacheByRelid@PLT
	xor	eax, eax
	call	CommandCounterIncrement@PLT
	mov	rdi, QWORD PTR -88[rbp]
	call	systable_endscan@PLT
	mov	esi, DWORD PTR NoLock[rip]
	mov	rdi, r13
	call	heap_close@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	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
.L25:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UpdateDistNodeBoolAttr, .-UpdateDistNodeBoolAttr
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,4,4
	.comm	Natts_pg_dist_node,4,4
	.comm	InvalidOid,4,4
	.comm	F_TEXTEQ,4,4
	.comm	F_INT4EQ,4,4
	.comm	ERROR,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_dist_node_nodeport,4,4
	.comm	Anum_pg_dist_node_nodename,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_metadata_sync.c_UpdateDistNodeBoolAttr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not find valid entry for node \"%s:%d\"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateDistNodeBoolAttr, %function
UpdateDistNodeBoolAttr:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldr	ip, .L8
	str	r1, [fp, #-56]
	ldr	r5, [ip]
	str	r3, [fp, #-68]
	lsl	r5, r5, #2
	add	r1, r5, #7
	bic	r1, r1, #7
	sub	sp, sp, r1
	ldr	r3, .L8+4
	add	r10, sp, #8
	sub	sp, sp, r1
	str	r2, [fp, #-64]
	str	r0, [fp, #-80]
	add	r9, sp, #8
	sub	sp, sp, r1
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	DistNodeRelationId
	ldr	r3, .L8+8
	ldr	r7, .L8+12
	ldr	r1, [r3]
	bl	heap_open
	mov	r4, r0
	bl	RelationGetDescr
	mov	r1, r0
	ldr	r2, .L8+16
	ldr	r3, .L8+20
	ldr	r8, [r2]
	ldr	r3, [r3]
	ldr	r2, [r7]
	mov	r0, r6
	str	r1, [fp, #-60]
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	bl	CStringGetTextDatum
	sub	r6, fp, #48
	mov	r1, r8
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	str	r0, [sp]
	mov	r0, r6
	bl	ScanKeyInit
	ldr	r3, .L8+24
	ldr	r2, .L8+28
	ldr	r3, [r3]
	ldr	r0, [fp, #-56]
	ldr	r8, [r7]
	str	r3, [fp, #-72]
	ldr	r7, [r2]
	bl	Int32GetDatum
	mov	r2, r8
	mov	r1, r7
	ldr	r3, [fp, #-72]
	str	r0, [sp]
	sub	r0, fp, #44
	bl	ScanKeyInit
	mov	r2, #2
	mov	r3, #0
	stm	sp, {r2, r6}
	ldr	r1, .L8+32
	mov	r2, r3
	ldr	r1, [r1]
	mov	r0, r4
	bl	systable_beginscan
	mov	r6, r0
	bl	systable_getnext
	mov	r8, r0
	bl	HeapTupleIsValid
	cmp	r0, #0
	add	r7, sp, #8
	beq	.L6
.L2:
	mov	r2, r5
	mov	r1, #0
	mov	r0, r7
	bl	memset
	ldr	r0, [fp, #-68]
	bl	BoolGetDatum
	mov	lr, #1
	mov	r3, #0
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-60]
	sub	ip, r2, #1
	str	r0, [r10, ip, lsl #2]
	str	r3, [r9, ip, lsl #2]
	str	lr, [r7, ip, lsl #2]
	mov	r3, r9
	mov	r2, r10
	mov	r0, r8
	str	r7, [sp]
	bl	heap_modify_tuple
	mov	r2, r0
	mov	r0, r4
	mov	r1, r2
	bl	CatalogTupleUpdate
	bl	DistNodeRelationId
	bl	CitusInvalidateRelcacheByRelid
	bl	CommandCounterIncrement
	mov	r0, r6
	bl	systable_endscan
	ldr	r3, .L8+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	heap_close
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, .L8+40
	ldr	r2, [fp, #-56]
	ldr	r3, [r3]
	ldr	r1, [fp, #-80]
	ldr	r0, .L8+44
	str	r3, [fp, #-56]
	bl	errmsg
	ldr	r3, [fp, #-56]
	mov	r1, r0
	mov	r0, r3
	bl	ereport
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	Natts_pg_dist_node
	.word	.LC1
	.word	RowExclusiveLock
	.word	BTEqualStrategyNumber
	.word	Anum_pg_dist_node_nodename
	.word	F_TEXTEQ
	.word	F_INT4EQ
	.word	Anum_pg_dist_node_nodeport
	.word	InvalidOid
	.word	NoLock
	.word	ERROR
	.word	.LC0
	.size	UpdateDistNodeBoolAttr, .-UpdateDistNodeBoolAttr
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,4,4
	.comm	Natts_pg_dist_node,4,4
	.comm	InvalidOid,4,4
	.comm	F_TEXTEQ,4,4
	.comm	F_INT4EQ,4,4
	.comm	ERROR,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_dist_node_nodeport,4,4
	.comm	Anum_pg_dist_node_nodename,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
