	.file	"extr_multi_copy.c_CopyFromWorkerNode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"copy from worker nodes is only supported for append-partitioned tables"
	.text
	.p2align 4
	.type	CopyFromWorkerNode, @function
CopyFromWorkerNode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	MasterNodeAddress@PLT
	mov	edi, DWORD PTR FOR_DML[rip]
	mov	edx, DWORD PTR 8[rax]
	mov	rsi, QWORD PTR [rax]
	call	GetNodeConnection@PLT
	mov	rdi, rax
	mov	QWORD PTR masterConnection[rip], rax
	call	MarkRemoteTransactionCritical@PLT
	mov	rdi, QWORD PTR masterConnection[rip]
	call	ClaimConnectionExclusively@PLT
	mov	rdi, QWORD PTR masterConnection[rip]
	call	RemoteTransactionBeginIfNecessary@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR NoLock[rip]
	xor	edx, edx
	mov	rbx, QWORD PTR [rdi]
	mov	QWORD PTR [rdi], 0
	call	RangeVarGetRelid@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13d, eax
	mov	QWORD PTR [rdi], rbx
	call	MasterPartitionMethod@PLT
	cmp	BYTE PTR DISTRIBUTE_BY_APPEND[rip], al
	je	.L2
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
.L2:
	mov	rdi, rbp
	call	RemoveMasterOptions@PLT
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	call	CopyToNewShards@PLT
	mov	rdi, QWORD PTR masterConnection[rip]
	call	UnclaimConnection@PLT
	mov	QWORD PTR masterConnection[rip], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	CopyFromWorkerNode, .-CopyFromWorkerNode
	.comm	masterConnection,8,8
	.comm	NoLock,4,4
	.comm	InvalidOid,4,4
	.comm	FOR_DML,4,4
	.comm	ERROR,4,4
	.comm	DISTRIBUTE_BY_APPEND,1,1
	.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_multi_copy.c_CopyFromWorkerNode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"copy from worker nodes is only supported for append"
	.ascii	"-partitioned tables\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CopyFromWorkerNode, %function
CopyFromWorkerNode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	bl	MasterNodeAddress
	ldr	r3, .L5
	ldm	r0, {r1, r2}
	ldr	r0, [r3]
	bl	GetNodeConnection
	ldr	r5, .L5+4
	str	r0, [r5]
	bl	MarkRemoteTransactionCritical
	ldr	r0, [r5]
	bl	ClaimConnectionExclusively
	ldr	r0, [r5]
	bl	RemoteTransactionBeginIfNecessary
	mov	r2, #0
	ldr	r0, [r4]
	ldr	r3, .L5+8
	ldr	r8, [r0]
	ldr	r1, [r3]
	str	r2, [r0]
	bl	RangeVarGetRelid
	ldr	r3, [r4]
	mov	r7, r0
	str	r8, [r3]
	mov	r0, r3
	bl	MasterPartitionMethod
	ldr	r3, .L5+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L5+16
	ldr	r0, .L5+20
	ldr	r8, [r3]
	bl	errmsg
	mov	r1, r0
	mov	r0, r8
	bl	ereport
.L2:
	mov	r0, r4
	bl	RemoveMasterOptions
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	CopyToNewShards
	ldr	r0, [r5]
	bl	UnclaimConnection
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	FOR_DML
	.word	masterConnection
	.word	NoLock
	.word	DISTRIBUTE_BY_APPEND
	.word	ERROR
	.word	.LC0
	.size	CopyFromWorkerNode, .-CopyFromWorkerNode
	.comm	masterConnection,4,4
	.comm	NoLock,4,4
	.comm	InvalidOid,4,4
	.comm	FOR_DML,4,4
	.comm	ERROR,4,4
	.comm	DISTRIBUTE_BY_APPEND,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
