	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_get_viewdef_worker
_pg_get_viewdef_worker:                 ## @pg_get_viewdef_worker
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_initStringInfo
	xorl	%eax, %eax
	callq	_SPI_connect
	movq	_SPI_OK_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	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:
	movq	_plan_getviewrule@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_6
## %bb.3:
	movq	_OIDOID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NAMEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_query_getviewrule@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rdx
	movl	$2, %esi
	callq	_SPI_prepare
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_query_getviewrule@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_5:
	movq	%rbx, %rdi
	callq	_SPI_keepplan
	movq	%rbx, (%r13)
LBB0_6:
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, -56(%rbp)
	movq	_namein@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ViewSelectRuleName@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DirectFunctionCall1
	movl	%eax, -52(%rbp)
	movw	$8224, -58(%rbp)                ## imm = 0x2020
	movq	(%r13), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-58(%rbp), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_SPI_execute_plan
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_8:
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_make_viewdef
LBB0_10:
	xorl	%eax, %eax
	callq	_SPI_finish
	movq	_SPI_OK_FINISH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_12:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-72(%rbp), %rax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_OK_CONNECT,8,3             ## @SPI_OK_CONNECT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_connect failed"

	.comm	_plan_getviewrule,8,3           ## @plan_getviewrule
	.comm	_OIDOID,4,2                     ## @OIDOID
	.comm	_NAMEOID,4,2                    ## @NAMEOID
	.comm	_query_getviewrule,4,2          ## @query_getviewrule
L_.str.1:                               ## @.str.1
	.asciz	"SPI_prepare failed for \"%s\""

	.comm	_namein,4,2                     ## @namein
	.comm	_ViewSelectRuleName,4,2         ## @ViewSelectRuleName
	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
L_.str.2:                               ## @.str.2
	.asciz	"failed to get pg_rewrite tuple for view %u"

	.comm	_SPI_processed,4,2              ## @SPI_processed
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	_SPI_OK_FINISH,8,3              ## @SPI_OK_FINISH
L_.str.3:                               ## @.str.3
	.asciz	"SPI_finish failed"

	.no_dead_strip	_pg_get_viewdef_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_get_viewdef_worker
_pg_get_viewdef_worker:                 ; @pg_get_viewdef_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x0, sp, #8
	bl	_initStringInfo
	bl	_SPI_connect
Lloh3:
	adrp	x8, _SPI_OK_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_OK_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _ERROR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh10:
	adrp	x24, _plan_getviewrule@GOTPAGE
Lloh11:
	ldr	x24, [x24, _plan_getviewrule@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _OIDOID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OIDOID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _NAMEOID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NAMEOID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh18:
	adrp	x25, _query_getviewrule@GOTPAGE
Lloh19:
	ldr	x25, [x25, _query_getviewrule@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x2, sp, #32
	mov	w1, #2
	bl	_SPI_prepare
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x23]
	ldr	w8, [x25]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_5:
	mov	x0, x22
	bl	_SPI_keepplan
	str	x22, [x24]
LBB0_6:
	mov	x0, x21
	bl	_ObjectIdGetDatum
	str	w0, [sp, #32]
Lloh22:
	adrp	x8, _namein@GOTPAGE
Lloh23:
	ldr	x8, [x8, _namein@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
Lloh25:
	adrp	x8, _ViewSelectRuleName@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ViewSelectRuleName@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_DirectFunctionCall1
	str	w0, [sp, #36]
	mov	w8, #8224
	strh	w8, [sp, #30]
	ldr	x0, [x24]
	add	x1, sp, #32
	add	x2, sp, #30
	mov	w3, #1
	mov	w4, #0
	bl	_SPI_execute_plan
Lloh28:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x23]
	str	x21, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_8:
Lloh33:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
Lloh36:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	w1, [x9]
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x3, x20
	mov	x4, x19
	bl	_make_viewdef
LBB0_10:
	bl	_SPI_finish
Lloh39:
	adrp	x8, _SPI_OK_FINISH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SPI_OK_FINISH@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x23]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_12:
	ldp	x8, x9, [sp, #8]
	cmp	x8, #0
	csel	x0, xzr, x9, eq
	ldr	x8, [sp, #40]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_OK_CONNECT,8,3             ; @SPI_OK_CONNECT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_connect failed"

	.comm	_plan_getviewrule,8,3           ; @plan_getviewrule
	.comm	_OIDOID,4,2                     ; @OIDOID
	.comm	_NAMEOID,4,2                    ; @NAMEOID
	.comm	_query_getviewrule,4,2          ; @query_getviewrule
l_.str.1:                               ; @.str.1
	.asciz	"SPI_prepare failed for \"%s\""

	.comm	_namein,4,2                     ; @namein
	.comm	_ViewSelectRuleName,4,2         ; @ViewSelectRuleName
	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
l_.str.2:                               ; @.str.2
	.asciz	"failed to get pg_rewrite tuple for view %u"

	.comm	_SPI_processed,4,2              ; @SPI_processed
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	_SPI_OK_FINISH,8,3              ; @SPI_OK_FINISH
l_.str.3:                               ; @.str.3
	.asciz	"SPI_finish failed"

	.no_dead_strip	_pg_get_viewdef_worker
.subsections_via_symbols
