	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postgresBeginDirectModify
_postgresBeginDirectModify:             ## @postgresBeginDirectModify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EXEC_FLAG_EXPLAIN_ONLY@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	24(%rdi), %r12
	movl	$88, %edi
	callq	_palloc0
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 32(%rbx)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_exec_rt_fetch
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rax, %r15
	cmpq	$0, 8(%r12)
	jne	LBB0_5
LBB0_4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_ExecOpenScanRelation
	movq	%rax, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rdi, 24(%r13)
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_GetForeignTable
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GetUserMapping
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_GetConnection
	movl	%eax, 80(%r13)
	cmpq	$0, 8(%r12)
	jne	LBB0_8
## %bb.7:
	movq	24(%r13), %rax
	movq	%rax, 72(%r13)
	movq	$0, 24(%r13)
LBB0_8:
	movl	$-1, (%r13)
	movl	16(%r12), %edi
	movq	_FdwDirectModifyPrivateUpdateSql@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_list_nth
	movq	%rax, %rdi
	callq	_strVal
	movl	%eax, 64(%r13)
	movl	16(%r12), %edi
	movq	_FdwDirectModifyPrivateHasReturning@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_list_nth
	movq	%rax, %rdi
	callq	_intVal
	movq	%rax, 32(%r13)
	movl	16(%r12), %edi
	movq	_FdwDirectModifyPrivateRetrievedAttrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_list_nth
	movq	%rax, 56(%r13)
	movl	16(%r12), %edi
	movq	_FdwDirectModifyPrivateSetProcessed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_list_nth
	movq	%rax, %rdi
	callq	_intVal
	movq	%rax, 48(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_ALLOCSET_SMALL_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, 40(%r13)
	cmpq	$0, 32(%r13)
	je	LBB0_14
## %bb.9:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.11:
	movq	24(%r13), %rdi
	callq	_RelationGetDescr
	movl	%eax, %edi
	jmp	LBB0_12
LBB0_10:
	movq	(%rbx), %rax
	movl	(%rax), %edi
LBB0_12:
	callq	_TupleDescGetAttInMetadata
	movl	%eax, 20(%r13)
	cmpq	$0, 8(%r12)
	jne	LBB0_14
## %bb.13:
	movl	4(%r12), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_init_returning_filter
LBB0_14:
	movl	(%r12), %edi
	callq	_list_length
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	jle	LBB0_15
## %bb.16:
	movl	(%r12), %esi
	leaq	16(%r13), %rcx
	leaq	12(%r13), %r8
	addq	$8, %r13
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r13, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prepare_query_params           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_FLAG_EXPLAIN_ONLY,4,2     ## @EXEC_FLAG_EXPLAIN_ONLY
	.comm	_FdwDirectModifyPrivateUpdateSql,4,2 ## @FdwDirectModifyPrivateUpdateSql
	.comm	_FdwDirectModifyPrivateHasReturning,4,2 ## @FdwDirectModifyPrivateHasReturning
	.comm	_FdwDirectModifyPrivateRetrievedAttrs,4,2 ## @FdwDirectModifyPrivateRetrievedAttrs
	.comm	_FdwDirectModifyPrivateSetProcessed,4,2 ## @FdwDirectModifyPrivateSetProcessed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postgres_fdw temporary data"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ## @ALLOCSET_SMALL_SIZES
	.no_dead_strip	_postgresBeginDirectModify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postgresBeginDirectModify
_postgresBeginDirectModify:             ; @postgresBeginDirectModify
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _EXEC_FLAG_EXPLAIN_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXEC_FLAG_EXPLAIN_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x23, x1
	mov	x19, x0
	ldp	x22, x25, [x0, #16]
	mov	w0, #88
	bl	_palloc0
	mov	x20, x0
	str	x0, [x19, #32]
	ldr	x8, [x22, #8]
	ldr	w21, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_exec_rt_fetch
	ldr	x24, [x0]
	cbz	x24, LBB0_5
; %bb.3:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x0, [x19, #8]
	b	LBB0_7
LBB0_5:
	bl	_GetUserId
	mov	x24, x0
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_4
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_ExecOpenScanRelation
LBB0_7:
	str	x0, [x20, #24]
	bl	_RelationGetRelid
	bl	_GetForeignTable
	ldr	w1, [x0]
	mov	x0, x24
	bl	_GetUserMapping
	mov	w1, #0
	bl	_GetConnection
	str	w0, [x20, #80]
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #24]
	str	x8, [x20, #72]
	str	xzr, [x20, #24]
LBB0_9:
	mov	w8, #-1
	str	w8, [x20]
	ldr	w0, [x25, #16]
Lloh3:
	adrp	x8, _FdwDirectModifyPrivateUpdateSql@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FdwDirectModifyPrivateUpdateSql@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_list_nth
	bl	_strVal
	str	w0, [x20, #64]
	ldr	w0, [x25, #16]
Lloh6:
	adrp	x8, _FdwDirectModifyPrivateHasReturning@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FdwDirectModifyPrivateHasReturning@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_list_nth
	bl	_intVal
	str	x0, [x20, #32]
	ldr	w0, [x25, #16]
Lloh9:
	adrp	x8, _FdwDirectModifyPrivateRetrievedAttrs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FdwDirectModifyPrivateRetrievedAttrs@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_list_nth
	str	x0, [x20, #56]
	ldr	w0, [x25, #16]
Lloh12:
	adrp	x8, _FdwDirectModifyPrivateSetProcessed@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FdwDirectModifyPrivateSetProcessed@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_list_nth
	bl	_intVal
	str	x0, [x20, #48]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _ALLOCSET_SMALL_SIZES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALLOCSET_SMALL_SIZES@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	str	w0, [x20, #40]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_15
; %bb.10:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x0, [x20, #24]
	bl	_RelationGetDescr
	b	LBB0_13
LBB0_12:
	ldr	x8, [x19]
	ldr	w0, [x8]
LBB0_13:
	bl	_TupleDescGetAttInMetadata
	str	w0, [x20, #20]
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	w1, [x25, #4]
	mov	x0, x20
	mov	x2, x21
	bl	_init_returning_filter
LBB0_15:
	ldr	w0, [x25]
	bl	_list_length
	str	w0, [x20, #4]
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.16:
	mov	x2, x0
	ldr	w1, [x25]
	add	x3, x20, #16
	add	x4, x20, #12
	add	x5, x20, #8
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_prepare_query_params
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_FLAG_EXPLAIN_ONLY,4,2     ; @EXEC_FLAG_EXPLAIN_ONLY
	.comm	_FdwDirectModifyPrivateUpdateSql,4,2 ; @FdwDirectModifyPrivateUpdateSql
	.comm	_FdwDirectModifyPrivateHasReturning,4,2 ; @FdwDirectModifyPrivateHasReturning
	.comm	_FdwDirectModifyPrivateRetrievedAttrs,4,2 ; @FdwDirectModifyPrivateRetrievedAttrs
	.comm	_FdwDirectModifyPrivateSetProcessed,4,2 ; @FdwDirectModifyPrivateSetProcessed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postgres_fdw temporary data"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ; @ALLOCSET_SMALL_SIZES
	.no_dead_strip	_postgresBeginDirectModify
.subsections_via_symbols
