	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sql_insert
_get_sql_insert:                        ## @get_sql_insert
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	callq	_initStringInfo
	movq	%rbx, %rdi
	callq	_generate_relation_name
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_get_tuple_of_interest
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CARDINALITY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_appendStringInfo
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_quote_ident_cstr
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_appendStringInfoString
	movl	$1, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	testl	%r14d, %r14d
	leaq	-48(%rbp), %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$44, %esi
	callq	_appendStringInfoChar
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.10:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_appendStringInfoString
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %ebx
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	je	LBB0_23
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_TupleDescAttr
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	$44, %esi
	callq	_appendStringInfoChar
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_get_attnum_pk_pos
	testl	%eax, %eax
	js	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_pstrdup
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	leal	1(%r13), %edx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_SPI_getvalue
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_quote_literal_cstr
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_appendStringInfoString
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_21
LBB0_24:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
LBB0_23:
	leaq	-48(%rbp), %rdi
	movl	$41, %esi
	callq	_appendStringInfoChar
	movq	-48(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ## @ERRCODE_CARDINALITY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source row not found"

L_.str.1:                               ## @.str.1
	.asciz	"INSERT INTO %s("

L_.str.2:                               ## @.str.2
	.asciz	") VALUES("

L_.str.3:                               ## @.str.3
	.asciz	"NULL"

	.no_dead_strip	_get_sql_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sql_insert
_get_sql_insert:                        ; @get_sql_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	add	x0, sp, #8
	bl	_initStringInfo
	mov	x0, x25
	bl	_generate_relation_name
	mov	x24, x0
	ldr	x22, [x25]
	ldr	w27, [x22]
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_get_tuple_of_interest
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x24
	bl	_appendStringInfo
	cmp	w27, #1
	b.lt	LBB0_22
; %bb.3:
	mov	w26, #0
	mov	w24, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x25, #8]
	bl	_NameStr
	bl	_quote_ident_cstr
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	mov	w26, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	cmp	w27, w24
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_TupleDescAttr
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	cbz	w26, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	w1, #44
	bl	_appendStringInfoChar
	b	LBB0_4
LBB0_9:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
	cmp	w27, #1
	b.lt	LBB0_23
; %bb.10:
	mov	w26, #0
	mov	w24, #0
Lloh12:
	adrp	x25, l_.str.3@PAGE
Lloh13:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #8
	mov	x1, x25
	bl	_appendStringInfoString
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w24, w24, #1
	cmp	w27, w24
	b.eq	LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_TupleDescAttr
	ldr	x8, [x0]
	cbnz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	w26, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #8
	mov	w1, #44
	bl	_appendStringInfoChar
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_get_attnum_pk_pos
	tbnz	w0, #31, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19, w0, uxtw #3]
	cbz	x0, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_pstrdup
	mov	x26, x0
	cbnz	x0, LBB0_21
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w2, w24, #1
	mov	x0, x23
	mov	x1, x22
	bl	_SPI_getvalue
	mov	x26, x0
	cbz	x0, LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x26
	bl	_quote_literal_cstr
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	mov	x0, x26
	bl	_pfree
	b	LBB0_12
LBB0_22:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
LBB0_23:
	add	x0, sp, #8
	mov	w1, #41
	bl	_appendStringInfoChar
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ; @ERRCODE_CARDINALITY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source row not found"

l_.str.1:                               ; @.str.1
	.asciz	"INSERT INTO %s("

l_.str.2:                               ; @.str.2
	.asciz	") VALUES("

l_.str.3:                               ; @.str.3
	.asciz	"NULL"

	.no_dead_strip	_get_sql_insert
.subsections_via_symbols
