	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refresh_matview_datafill
_refresh_matview_datafill:              ## @refresh_matview_datafill
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_copyObject
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_AcquireRewriteLocks
	movq	%rbx, %rdi
	callq	_QueryRewrite
	movq	%rax, %rbx
	movq	%rax, %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
	callq	_elog
LBB0_2:
	movq	%rbx, %rdi
	callq	_linitial
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pg_plan_query
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetActiveSnapshot
	movl	%eax, %edi
	callq	_PushCopiedSnapshot
	xorl	%eax, %eax
	callq	_UpdateActiveSnapshotCommandId
	xorl	%eax, %eax
	callq	_GetActiveSnapshot
	movq	_InvalidSnapshot@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r14, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_CreateQueryDesc
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ExecutorStart
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_ExecutorRun
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_ExecutorFinish
	movq	%rbx, %rdi
	callq	_ExecutorEnd
	movq	%rbx, %rdi
	callq	_FreeQueryDesc
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"unexpected rewrite result for REFRESH MATERIALIZED VIEW"

	.comm	_InvalidSnapshot,4,2            ## @InvalidSnapshot
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.no_dead_strip	_refresh_matview_datafill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refresh_matview_datafill
_refresh_matview_datafill:              ; @refresh_matview_datafill
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_copyObject
	mov	x21, x0
	mov	w1, #1
	mov	w2, #0
	bl	_AcquireRewriteLocks
	mov	x0, x21
	bl	_QueryRewrite
	mov	x21, x0
	bl	_list_length
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, x21
	bl	_linitial
	mov	x21, x0
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_pg_plan_query
	mov	x21, x0
	bl	_GetActiveSnapshot
	bl	_PushCopiedSnapshot
	bl	_UpdateActiveSnapshotCommandId
	bl	_GetActiveSnapshot
	mov	x2, x0
Lloh5:
	adrp	x8, _InvalidSnapshot@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidSnapshot@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	mov	x5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_CreateQueryDesc
	mov	x19, x0
	mov	w1, #0
	bl	_ExecutorStart
Lloh8:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	bl	_ExecutorRun
	ldr	x8, [x19]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_ExecutorFinish
	mov	x0, x19
	bl	_ExecutorEnd
	mov	x0, x19
	bl	_FreeQueryDesc
	bl	_PopActiveSnapshot
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected rewrite result for REFRESH MATERIALIZED VIEW"

	.comm	_InvalidSnapshot,4,2            ; @InvalidSnapshot
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.no_dead_strip	_refresh_matview_datafill
.subsections_via_symbols
