	.file	"extr_postgres_fdw.c_postgresBeginDirectModify.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"postgres_fdw temporary data"
	.text
	.p2align 4
	.type	postgresBeginDirectModify, @function
postgresBeginDirectModify:
.LFB0:
	.cfi_startproc
	endbr64
	test	DWORD PTR EXEC_FLAG_EXPLAIN_ONLY[rip], esi
	je	.L19
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR 24[rdi]
	mov	edi, 88
	call	palloc0@PLT
	mov	QWORD PTR 32[rbp], rax
	mov	rbx, rax
	mov	rax, QWORD PTR 8[r14]
	mov	rsi, r14
	mov	r15d, DWORD PTR [rax]
	mov	edi, r15d
	call	exec_rt_fetch@PLT
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	je	.L20
	cmp	QWORD PTR 8[r12], 0
	je	.L21
.L5:
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR 24[rbx], rdi
.L6:
	mov	QWORD PTR 8[rsp], r8
	call	RelationGetRelid@PLT
	mov	edi, eax
	call	GetForeignTable@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR [rax]
	mov	rdi, r8
	call	GetUserMapping@PLT
	xor	esi, esi
	mov	rdi, rax
	call	GetConnection@PLT
	cmp	QWORD PTR 8[r12], 0
	mov	DWORD PTR 80[rbx], eax
	jne	.L7
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 72[rbx], rax
.L7:
	mov	DWORD PTR [rbx], -1
	mov	esi, DWORD PTR FdwDirectModifyPrivateUpdateSql[rip]
	mov	edi, DWORD PTR 16[r12]
	call	list_nth@PLT
	mov	rdi, rax
	call	strVal@PLT
	mov	esi, DWORD PTR FdwDirectModifyPrivateHasReturning[rip]
	mov	edi, DWORD PTR 16[r12]
	mov	DWORD PTR 64[rbx], eax
	call	list_nth@PLT
	mov	rdi, rax
	call	intVal@PLT
	mov	edi, DWORD PTR 16[r12]
	mov	esi, DWORD PTR FdwDirectModifyPrivateRetrievedAttrs[rip]
	mov	QWORD PTR 32[rbx], rax
	call	list_nth@PLT
	mov	esi, DWORD PTR FdwDirectModifyPrivateSetProcessed[rip]
	mov	edi, DWORD PTR 16[r12]
	mov	QWORD PTR 56[rbx], rax
	call	list_nth@PLT
	mov	rdi, rax
	call	intVal@PLT
	mov	edx, DWORD PTR ALLOCSET_SMALL_SIZES[rip]
	mov	edi, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 48[rbx], rax
	call	AllocSetContextCreate@PLT
	cmp	QWORD PTR 32[rbx], 0
	mov	DWORD PTR 40[rbx], eax
	je	.L9
	cmp	QWORD PTR 8[r12], 0
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
.L11:
	call	TupleDescGetAttInMetadata@PLT
	cmp	QWORD PTR 8[r12], 0
	mov	DWORD PTR 20[rbx], eax
	je	.L22
.L9:
	mov	edi, DWORD PTR [r12]
	call	list_length@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	edx, eax
	test	eax, eax
	jg	.L23
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR [r12]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rcx, 16[rbx]
	lea	r9, 8[rbx]
	lea	r8, 12[rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	prepare_query_params@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	eax, eax
	call	GetUserId@PLT
	cmp	QWORD PTR 8[r12], 0
	mov	r8, rax
	jne	.L5
.L21:
	mov	rdi, r14
	mov	edx, r13d
	mov	esi, r15d
	mov	QWORD PTR 8[rsp], r8
	call	ExecOpenScanRelation@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR 4[r12]
	mov	edx, r15d
	mov	rdi, rbx
	call	init_returning_filter@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 24[rbx]
	call	RelationGetDescr@PLT
	mov	edi, eax
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	postgresBeginDirectModify, .-postgresBeginDirectModify
	.comm	FdwDirectModifyPrivateUpdateSql,4,4
	.comm	FdwDirectModifyPrivateSetProcessed,4,4
	.comm	FdwDirectModifyPrivateRetrievedAttrs,4,4
	.comm	FdwDirectModifyPrivateHasReturning,4,4
	.comm	EXEC_FLAG_EXPLAIN_ONLY,4,4
	.comm	ALLOCSET_SMALL_SIZES,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_postgres_fdw.c_postgresBeginDirectModify.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"postgres_fdw temporary data\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	postgresBeginDirectModify, %function
postgresBeginDirectModify:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r3, [r3]
	tst	r1, r3
	bxne	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	sub	sp, sp, #8
	mov	r0, #56
	ldr	r8, [r5, #8]
	mov	r7, r1
	ldr	r6, [r5, #12]
	bl	palloc0
	ldr	r3, [r8, #4]
	mov	r4, r0
	ldr	r10, [r3]
	str	r0, [r5, #16]
	mov	r1, r8
	mov	r0, r10
	bl	exec_rt_fetch
	ldr	r9, [r0]
	cmp	r9, #0
	beq	.L19
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L20
.L5:
	ldr	r0, [r5, #4]
	str	r0, [r4, #24]
.L6:
	bl	RelationGetRelid
	bl	GetForeignTable
	mov	r3, r0
	mov	r0, r9
	ldr	r1, [r3]
	bl	GetUserMapping
	mov	r1, #0
	bl	GetConnection
	ldr	r3, [r6, #8]
	str	r0, [r4, #52]
	cmp	r3, #0
	ldreq	r2, [r4, #24]
	streq	r3, [r4, #24]
	streq	r2, [r4, #48]
	mvn	r2, #0
	ldr	r3, .L22+4
	str	r2, [r4]
	ldr	r1, [r3]
	ldr	r0, [r6, #12]
	bl	list_nth
	bl	strVal
	ldr	r3, .L22+8
	str	r0, [r4, #44]
	ldr	r1, [r3]
	ldr	r0, [r6, #12]
	bl	list_nth
	bl	intVal
	ldr	r3, .L22+12
	str	r0, [r4, #28]
	ldr	r1, [r3]
	ldr	r0, [r6, #12]
	bl	list_nth
	ldr	r3, .L22+16
	str	r0, [r4, #40]
	ldr	r1, [r3]
	ldr	r0, [r6, #12]
	bl	list_nth
	bl	intVal
	ldr	r3, .L22+20
	str	r0, [r4, #36]
	ldr	r2, [r3]
	ldr	r0, [r8]
	ldr	r1, .L22+24
	bl	AllocSetContextCreate
	ldr	r3, [r4, #28]
	str	r0, [r4, #32]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [r5]
	ldr	r0, [r3]
.L11:
	bl	TupleDescGetAttInMetadata
	ldr	r3, [r6, #8]
	str	r0, [r4, #20]
	cmp	r3, #0
	beq	.L21
.L9:
	ldr	r0, [r6]
	bl	list_length
	cmp	r0, #0
	str	r0, [r4, #4]
	ble	.L1
	add	r3, r4, #12
	add	ip, r4, #8
	mov	r2, r0
	ldr	r1, [r6]
	mov	r0, r5
	stm	sp, {r3, ip}
	add	r3, r4, #16
	bl	prepare_query_params
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	bl	GetUserId
	ldr	r3, [r6, #8]
	mov	r9, r0
	cmp	r3, #0
	bne	.L5
.L20:
	mov	r2, r7
	mov	r1, r10
	mov	r0, r8
	bl	ExecOpenScanRelation
	str	r0, [r4, #24]
	b	.L6
.L21:
	mov	r2, r10
	mov	r0, r4
	ldr	r1, [r6, #4]
	bl	init_returning_filter
	b	.L9
.L10:
	ldr	r0, [r4, #24]
	bl	RelationGetDescr
	b	.L11
.L23:
	.align	2
.L22:
	.word	EXEC_FLAG_EXPLAIN_ONLY
	.word	FdwDirectModifyPrivateUpdateSql
	.word	FdwDirectModifyPrivateHasReturning
	.word	FdwDirectModifyPrivateRetrievedAttrs
	.word	FdwDirectModifyPrivateSetProcessed
	.word	ALLOCSET_SMALL_SIZES
	.word	.LC0
	.size	postgresBeginDirectModify, .-postgresBeginDirectModify
	.comm	FdwDirectModifyPrivateUpdateSql,4,4
	.comm	FdwDirectModifyPrivateSetProcessed,4,4
	.comm	FdwDirectModifyPrivateRetrievedAttrs,4,4
	.comm	FdwDirectModifyPrivateHasReturning,4,4
	.comm	EXEC_FLAG_EXPLAIN_ONLY,4,4
	.comm	ALLOCSET_SMALL_SIZES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
