	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postgresPlanForeignModify
_postgresPlanForeignModify:             ## @postgresPlanForeignModify
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rax
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	(%rsi), %r15d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movq	%rax, %rsi
	callq	_planner_rt_fetch
	movq	%rax, %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, -64(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_initStringInfo
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %rdi
	cmpl	$129, %r15d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, -88(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movl	%r15d, %ecx
	cmpl	$128, %r15d
	jne	LBB0_14
## %bb.2:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_9
LBB0_4:
	callq	_RelationGetDescr
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.5:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r15), %ebx
	jge	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	leal	1(%rsi), %ebx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TupleDescAttr
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lappend_int
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_bms_union
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$-1, %esi
	callq	_bms_next_member
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	movl	%eax, %r13d
	movq	_InvalidAttrNumber@GOTPCREL(%rip), %r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lappend_int
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_bms_next_member
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r13d, %ebx
	cmpl	(%r12), %ebx
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_13
LBB0_14:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	24(%rbx), %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r15
	testq	%rdi, %rdi
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_16
## %bb.15:
	movl	%r12d, %esi
	callq	_list_nth
	movq	%rax, %r15
LBB0_16:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	movl	%r12d, %esi
	callq	_list_nth
	movq	%rax, %r13
LBB0_18:
	movq	8(%rbx), %rdx
	movq	_ONCONFLICT_NOTHING@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	(%rax), %rdx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_21
## %bb.19:
	movq	_ONCONFLICT_NONE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %rdx
	je	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_21:
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	cmpl	$128, %edx
	je	LBB0_25
## %bb.22:
	cmpl	$130, %edx
	je	LBB0_26
## %bb.23:
	cmpl	$129, %edx
	jne	LBB0_27
## %bb.24:
	subq	$8, %rsp
	leaq	-64(%rbp), %rax
	leaq	-48(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%r14, %r8
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r13
	pushq	%r15
	callq	_deparseInsertSql
	addq	$32, %rsp
	jmp	LBB0_28
LBB0_25:
	leaq	-64(%rbp), %rax
	leaq	-48(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	pushq	%rax
	pushq	%r13
	callq	_deparseUpdateSql
	addq	$16, %rsp
	jmp	LBB0_28
LBB0_26:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %r9
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_deparseDeleteSql
	jmp	LBB0_28
LBB0_27:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_28:
	movq	_NIL@GOTPCREL(%rip), %r15
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_table_close
	movl	-48(%rbp), %edi
	callq	_makeString
	movl	%eax, %ebx
	movq	-64(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_makeInteger
	movq	-64(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_list_make4
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_InvalidAttrNumber,4,2          ## @InvalidAttrNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"system-column update is not supported"

	.comm	_ONCONFLICT_NOTHING,8,3         ## @ONCONFLICT_NOTHING
	.comm	_ONCONFLICT_NONE,8,3            ## @ONCONFLICT_NONE
L_.str.1:                               ## @.str.1
	.asciz	"unexpected ON CONFLICT specification: %d"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected operation: %d"

	.no_dead_strip	_postgresPlanForeignModify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postgresPlanForeignModify
_postgresPlanForeignModify:             ; @postgresPlanForeignModify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #36]                   ; 4-byte Folded Spill
	mov	x24, x1
	mov	x1, x0
	ldr	w25, [x24]
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x2
	bl	_planner_rt_fetch
	mov	x19, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	str	x22, [sp, #48]
	add	x0, sp, #56
	bl	_initStringInfo
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _NoLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_table_open
	cmp	w25, #129
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	b.eq	LBB0_4
; %bb.1:
	mov	x23, x22
	cmp	w25, #128
	b.ne	LBB0_14
; %bb.2:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_4:
	bl	_RelationGetDescr
	ldr	w8, [x0]
	mov	x23, x22
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x26, x0
	mov	w1, #0
	mov	x23, x22
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	mov	x1, x27
	cmp	w27, w8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w27, w1, #1
	mov	x0, x26
	bl	_TupleDescAttr
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x27
	bl	_lappend_int
	mov	x23, x0
	b	LBB0_6
LBB0_9:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldp	w1, w0, [x8]
	bl	_bms_union
	mov	x26, x0
	mov	w1, #-1
	bl	_bms_next_member
	mov	x23, x22
	tbnz	w0, #31, LBB0_14
; %bb.10:
	mov	x27, x0
Lloh6:
	adrp	x21, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
Lloh8:
	adrp	x19, _InvalidAttrNumber@GOTPAGE
Lloh9:
	ldr	x19, [x19, _InvalidAttrNumber@GOTPAGEOFF]
Lloh10:
	adrp	x28, l_.str@PAGE
Lloh11:
	add	x28, x28, l_.str@PAGEOFF
	mov	x23, x22
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_lappend_int
	mov	x23, x0
	mov	x0, x26
	mov	x1, x27
	bl	_bms_next_member
	mov	x27, x0
	tbnz	w0, #31, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w20, w8, w27
	cmp	w20, w9
	b.gt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_elog
	b	LBB0_11
LBB0_14:
	ldr	x0, [x24, #24]
	mov	x26, x22
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_16
; %bb.15:
	mov	x1, x19
	bl	_list_nth
	mov	x26, x0
LBB0_16:
	ldr	x0, [x24, #16]
	cbz	x0, LBB0_18
; %bb.17:
	mov	x1, x19
	bl	_list_nth
	mov	x22, x0
LBB0_18:
	ldr	x8, [x24, #8]
Lloh15:
	adrp	x9, _ONCONFLICT_NOTHING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ONCONFLICT_NOTHING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_23
; %bb.19:
	mov	w5, #1
	cmp	w25, #128
	b.eq	LBB0_26
LBB0_20:
	cmp	w25, #130
	b.eq	LBB0_27
; %bb.21:
	cmp	w25, #129
	b.ne	LBB0_28
; %bb.22:
	add	x8, sp, #48
	str	x8, [sp]
	add	x0, sp, #56
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x19
	mov	x4, x23
	mov	x6, x26
	mov	x7, x22
	bl	_deparseInsertSql
	b	LBB0_29
LBB0_23:
Lloh18:
	adrp	x9, _ONCONFLICT_NONE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ONCONFLICT_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.24:
Lloh21:
	adrp	x9, _ERROR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_25:
	mov	w5, #0
	cmp	w25, #128
	b.ne	LBB0_20
LBB0_26:
	add	x0, sp, #56
	add	x7, sp, #48
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x19
	mov	x4, x23
	mov	x5, x26
	mov	x6, x22
	bl	_deparseUpdateSql
	b	LBB0_29
LBB0_27:
	add	x0, sp, #56
	add	x5, sp, #48
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x19
	mov	x4, x22
	bl	_deparseDeleteSql
	b	LBB0_29
LBB0_28:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x25, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_29:
Lloh31:
	adrp	x20, _NIL@GOTPAGE
Lloh32:
	ldr	x20, [x20, _NIL@GOTPAGEOFF]
Lloh33:
	adrp	x8, _NoLock@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	ldr	w0, [sp, #56]
	bl	_makeString
	mov	x19, x0
	ldr	x8, [sp, #48]
Lloh36:
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_makeInteger
	mov	x2, x0
	ldr	x3, [sp, #48]
	mov	x0, x19
	mov	x1, x23
	bl	_list_make4
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_InvalidAttrNumber,4,2          ; @InvalidAttrNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"system-column update is not supported"

	.comm	_ONCONFLICT_NOTHING,8,3         ; @ONCONFLICT_NOTHING
	.comm	_ONCONFLICT_NONE,8,3            ; @ONCONFLICT_NONE
l_.str.1:                               ; @.str.1
	.asciz	"unexpected ON CONFLICT specification: %d"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected operation: %d"

	.no_dead_strip	_postgresPlanForeignModify
.subsections_via_symbols
