	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ApplyRetrieveRule
_ApplyRetrieveRule:                     ## @ApplyRetrieveRule
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rsi), %rdi
	callq	_list_length
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	cmpq	$0, 8(%r13)
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	cmpl	%r15d, (%r12)
	jne	LBB0_10
## %bb.5:
	movq	8(%r12), %rdx
	movq	_CMD_INSERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_13
## %bb.6:
	movq	_CMD_UPDATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_8
## %bb.7:
	movq	_CMD_DELETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_8
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_10
LBB0_8:
	movq	16(%r12), %rsi
	movl	%r15d, %edi
	callq	_rt_fetch
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_copyObject
	movq	16(%r12), %rdi
	movq	%rax, %rsi
	callq	_lappend
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_list_length
	movl	%eax, (%r12)
	movq	$0, 56(%rbx)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	40(%r12), %rdi
	callq	_copyObject
	movq	%rax, 40(%r12)
	movl	(%r12), %edx
	movq	%rax, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_ChangeVarNodes
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_makeWholeRowVar
	movq	%rax, %r14
	movq	32(%r12), %rdi
	callq	_list_length
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_pstrdup
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_makeTargetEntry
	movq	32(%r12), %rdi
	movq	%rax, %rsi
	callq	_lappend
	movq	%rax, 32(%r12)
LBB0_10:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_parse_rowmark
	movq	%rax, %r14
	movq	(%r13), %rdi
	callq	_linitial
	movq	%rax, %rdi
	callq	_copyObject
	movq	%rax, %rbx
	xorl	%edx, %edx
	testq	%r14, %r14
	setne	%dl
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_AcquireRewriteLocks
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	24(%rbx), %rsi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_markQueryForLocking
LBB0_12:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fireRIRrules
	movq	%rax, %r14
	movq	16(%r12), %rsi
	movl	%r15d, %edi
	callq	_rt_fetch
	movq	%rax, %rbx
	movq	_RTE_SUBQUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	%r14, 96(%rbx)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_RelationIsSecurityView
	movl	%eax, 88(%rbx)
	movq	_InvalidOid@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movq	$0, 80(%rbx)
	movq	_PRS2_OLD_VARNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	callq	_rt_fetch
	movq	%rax, %r14
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_Assert
	movq	56(%rbx), %rax
	movq	%rax, 56(%r14)
	movq	48(%rbx), %rax
	movq	%rax, 48(%r14)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 32(%r14)
	movups	16(%rbx), %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 56(%rbx)
	movq	(%r15), %rax
	movq	%rax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movups	%xmm0, 16(%rbx)
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected just one rule action"

L_.str.1:                               ## @.str.1
	.asciz	"cannot handle qualified ON SELECT rule"

	.comm	_CMD_INSERT,8,3                 ## @CMD_INSERT
	.comm	_CMD_UPDATE,8,3                 ## @CMD_UPDATE
	.comm	_CMD_DELETE,8,3                 ## @CMD_DELETE
	.comm	_InvalidOid,8,3                 ## @InvalidOid
L_.str.2:                               ## @.str.2
	.asciz	"wholerow"

L_.str.3:                               ## @.str.3
	.asciz	"unrecognized commandType: %d"

	.comm	_RTE_SUBQUERY,4,2               ## @RTE_SUBQUERY
	.comm	_PRS2_OLD_VARNO,4,2             ## @PRS2_OLD_VARNO
	.no_dead_strip	_ApplyRetrieveRule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ApplyRetrieveRule
_ApplyRetrieveRule:                     ; @ApplyRetrieveRule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x0, [x1]
	bl	_list_length
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _CMD_INSERT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_INSERT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.6:
Lloh9:
	adrp	x9, _CMD_UPDATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_UPDATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _CMD_DELETE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CMD_DELETE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_rt_fetch
	mov	x24, x0
	bl	_copyObject
	mov	x1, x0
	ldr	x0, [x19, #16]
	bl	_lappend
	str	x0, [x19, #16]
	bl	_list_length
	str	w0, [x19]
	str	xzr, [x24, #56]
Lloh15:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	stp	xzr, x8, [x24, #40]
	stp	xzr, xzr, [x24, #24]
	ldr	x0, [x19, #40]
	bl	_copyObject
	str	x0, [x19, #40]
	ldr	w2, [x19]
	mov	x1, x21
	mov	w3, #0
	bl	_ChangeVarNodes
	mov	x0, x24
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_makeWholeRowVar
	mov	x24, x0
	ldr	x0, [x19, #32]
	bl	_list_length
	add	w25, w0, #1
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pstrdup
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	mov	w3, #1
	bl	_makeTargetEntry
	mov	x1, x0
	ldr	x0, [x19, #32]
	bl	_lappend
	str	x0, [x19, #32]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x24]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_get_parse_rowmark
	mov	x24, x0
	ldr	x0, [x23]
	bl	_linitial
	bl	_copyObject
	mov	x23, x0
	cmp	x24, #0
	cset	w2, ne
	mov	w1, #1
	bl	_AcquireRewriteLocks
	cbz	x24, LBB0_11
; %bb.10:
	ldr	x1, [x23, #24]
	ldp	w3, w2, [x24]
	mov	x0, x23
	mov	w4, #1
	bl	_markQueryForLocking
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	bl	_fireRIRrules
	mov	x22, x0
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_rt_fetch
	mov	x21, x0
Lloh22:
	adrp	x8, _RTE_SUBQUERY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTE_SUBQUERY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x0, #104]
	str	x22, [x0, #96]
	mov	x0, x20
	bl	_RelationIsSecurityView
	str	w0, [x21, #88]
Lloh25:
	adrp	x23, _InvalidOid@GOTPAGE
Lloh26:
	ldr	x23, [x23, _InvalidOid@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x21]
	str	wzr, [x21, #8]
	stp	xzr, xzr, [x21, #72]
	str	xzr, [x21, #64]
Lloh27:
	adrp	x8, _PRS2_OLD_VARNO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PRS2_OLD_VARNO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x1, [x22, #16]
	bl	_rt_fetch
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldp	x9, x8, [x21, #48]
	stp	x9, x8, [x22, #48]
	ldr	q0, [x21, #32]
	str	q0, [x22, #32]
	ldr	q0, [x21, #16]
	str	q0, [x22, #16]
	ldr	x8, [x23]
	stp	x8, xzr, [x21, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21, #16]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected just one rule action"

l_.str.1:                               ; @.str.1
	.asciz	"cannot handle qualified ON SELECT rule"

	.comm	_CMD_INSERT,8,3                 ; @CMD_INSERT
	.comm	_CMD_UPDATE,8,3                 ; @CMD_UPDATE
	.comm	_CMD_DELETE,8,3                 ; @CMD_DELETE
	.comm	_InvalidOid,8,3                 ; @InvalidOid
l_.str.2:                               ; @.str.2
	.asciz	"wholerow"

l_.str.3:                               ; @.str.3
	.asciz	"unrecognized commandType: %d"

	.comm	_RTE_SUBQUERY,4,2               ; @RTE_SUBQUERY
	.comm	_PRS2_OLD_VARNO,4,2             ; @PRS2_OLD_VARNO
	.no_dead_strip	_ApplyRetrieveRule
.subsections_via_symbols
