	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_viewdef
_make_viewdef:                          ## @make_viewdef
	.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	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rsi
	movl	%edx, %edi
	callq	_SPI_fnumber
	leaq	-48(%rbp), %r13
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_SPI_getbinval
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetChar
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_SPI_fnumber
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_SPI_getbinval
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetObjectId
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_SPI_fnumber
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_SPI_getbinval
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetBool
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	callq	_SPI_fnumber
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_SPI_getvalue
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	callq	_SPI_fnumber
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_SPI_getvalue
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_stringToNode
	movq	%rax, %r15
LBB0_2:
	movq	%r15, %rdi
	callq	_list_length
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	_linitial
	cmpb	$49, -41(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	movq	_CMD_SELECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_AccessShareLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_table_open
	movl	%eax, %r13d
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r13d, %edi
	callq	_RelationGetDescr
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_get_query_def
	movl	%ebx, %edi
	movl	$59, %esi
	callq	_appendStringInfoChar
	movl	(%r12), %esi
	movl	%r13d, %edi
	callq	_table_close
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ev_type"

L_.str.1:                               ## @.str.1
	.asciz	"ev_class"

L_.str.2:                               ## @.str.2
	.asciz	"is_instead"

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

L_.str.4:                               ## @.str.4
	.asciz	"ev_action"

L_.str.5:                               ## @.str.5
	.asciz	"<>"

	.comm	_CMD_SELECT,8,3                 ## @CMD_SELECT
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.no_dead_strip	_make_viewdef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_viewdef
_make_viewdef:                          ; @make_viewdef
	.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
	str	w4, [sp, #8]                    ; 4-byte Folded Spill
	mov	x21, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _NIL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NIL@GOTPAGEOFF]
	ldr	x22, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_SPI_fnumber
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x26
	mov	x1, x25
	bl	_SPI_getbinval
	mov	x23, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	bl	_DatumGetChar
	mov	x24, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_SPI_fnumber
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x26
	mov	x1, x25
	bl	_SPI_getbinval
	mov	x23, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	bl	_DatumGetObjectId
	mov	x23, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_SPI_fnumber
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x26
	mov	x1, x25
	bl	_SPI_getbinval
	mov	x27, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x27
	bl	_DatumGetBool
	mov	x27, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x25
	bl	_SPI_fnumber
	mov	x2, x0
	mov	x0, x26
	mov	x1, x25
	bl	_SPI_getvalue
	mov	x28, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x25
	bl	_SPI_fnumber
	mov	x2, x0
	mov	x0, x26
	mov	x1, x25
	bl	_SPI_getvalue
	cbz	x0, LBB0_2
; %bb.1:
	bl	_stringToNode
	mov	x22, x0
LBB0_2:
	mov	x0, x22
	bl	_list_length
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x22
	bl	_linitial
	cmp	w24, #49
	b.ne	LBB0_8
; %bb.4:
	cbz	w27, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x28
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _CMD_SELECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CMD_SELECT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh17:
	adrp	x25, _AccessShareLock@GOTPAGE
Lloh18:
	ldr	x25, [x25, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x23
	bl	_table_open
	mov	x23, x0
	ldr	x24, [x20]
	bl	_RelationGetDescr
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x4, x21
	ldr	w5, [sp, #8]                    ; 4-byte Folded Reload
	mov	w6, #0
	bl	_get_query_def
	mov	x0, x19
	mov	w1, #59
	bl	_appendStringInfoChar
	ldr	w1, [x25]
	mov	x0, x23
	bl	_table_close
LBB0_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	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ev_type"

l_.str.1:                               ; @.str.1
	.asciz	"ev_class"

l_.str.2:                               ; @.str.2
	.asciz	"is_instead"

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

l_.str.4:                               ; @.str.4
	.asciz	"ev_action"

l_.str.5:                               ; @.str.5
	.asciz	"<>"

	.comm	_CMD_SELECT,8,3                 ; @CMD_SELECT
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.no_dead_strip	_make_viewdef
.subsections_via_symbols
