	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createViewAsClause
_createViewAsClause:                    ## @createViewAsClause
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r14
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBuffer
	movl	(%r15), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmovleq	%rax, %rdi
	callq	_fatal
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetlength
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_fatal
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movslq	%ebx, %rcx
	leaq	-1(%rcx), %rbx
	xorl	%edi, %edi
	cmpb	$59, -1(%rax,%rcx)
	sete	%dil
	callq	_Assert
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_appendBinaryPQExpBuffer
	movq	%r13, %rdi
	callq	_PQclear
	movq	%r15, %rdi
	callq	_destroyPQExpBuffer
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT pg_catalog.pg_get_viewdef('%u'::pg_catalog.oid) AS viewdef"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.1:                               ## @.str.1
	.asciz	"query to obtain definition of view \"%s\" returned no data"

L_.str.2:                               ## @.str.2
	.asciz	"query to obtain definition of view \"%s\" returned more than one definition"

L_.str.3:                               ## @.str.3
	.asciz	"definition of view \"%s\" appears to be empty (length zero)"

	.no_dead_strip	_createViewAsClause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createViewAsClause
_createViewAsClause:                    ; @createViewAsClause
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_createPQExpBuffer
	mov	x19, x0
	bl	_createPQExpBuffer
	mov	x20, x0
	ldr	w2, [x22, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBuffer
	ldr	w1, [x19]
Lloh2:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ExecuteSqlQuery
	mov	x21, x0
	bl	_PQntuples
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PQntuples
	ldr	w1, [x22]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w0, #1
	csel	x0, x9, x8, lt
	bl	_fatal
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetlength
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x22]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
LBB0_4:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	sxtw	x8, w23
	sub	x22, x8, #1
	ldrb	w8, [x0, x22]
	cmp	w8, #59
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_appendBinaryPQExpBuffer
	mov	x0, x21
	bl	_PQclear
	mov	x0, x19
	bl	_destroyPQExpBuffer
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT pg_catalog.pg_get_viewdef('%u'::pg_catalog.oid) AS viewdef"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.1:                               ; @.str.1
	.asciz	"query to obtain definition of view \"%s\" returned no data"

l_.str.2:                               ; @.str.2
	.asciz	"query to obtain definition of view \"%s\" returned more than one definition"

l_.str.3:                               ; @.str.3
	.asciz	"definition of view \"%s\" appears to be empty (length zero)"

	.no_dead_strip	_createViewAsClause
.subsections_via_symbols
