	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _selectOutputSchema
__selectOutputSchema:                   ## @_selectOutputSchema
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	jne	LBB0_16
## %bb.2:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_16
## %bb.3:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
LBB0_5:
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fmtId
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_appendPQExpBuffer
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
LBB0_7:
	movq	%r14, %rdi
	callq	_RestoringToDB
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	8(%r14), %edi
	movl	(%r15), %esi
	callq	_PQexec
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_10:
	movl	8(%r14), %edi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_warn_or_exit_horribly
LBB0_11:
	movq	%r12, %rdi
	callq	_PQclear
	jmp	LBB0_13
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_ahprintf
LBB0_13:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_free
LBB0_15:
	movq	%rbx, %rdi
	callq	_pg_strdup
	movq	%rax, (%r14)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET search_path = %s"

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

L_.str.2:                               ## @.str.2
	.asciz	", pg_catalog"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
L_.str.3:                               ## @.str.3
	.asciz	"could not set search_path to \"%s\": %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s;\n\n"

	.no_dead_strip	__selectOutputSchema
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _selectOutputSchema
__selectOutputSchema:                   ; @_selectOutputSchema
	.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
	cbz	x1, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_14
; %bb.2:
	mov	x20, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_14
; %bb.3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_14
LBB0_5:
	bl	_createPQExpBuffer
	mov	x21, x0
	mov	x0, x20
	bl	_fmtId
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_appendPQExpBuffer
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_appendPQExpBufferStr
LBB0_7:
	mov	x0, x19
	bl	_RestoringToDB
	cbz	x0, LBB0_15
; %bb.8:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_PQexec
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_PQresultStatus
Lloh6:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_PQerrorMessage
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_warn_or_exit_horribly
LBB0_11:
	mov	x0, x22
	bl	_PQclear
	ldr	x0, [x19]
	cbz	x0, LBB0_13
LBB0_12:
	bl	_free
LBB0_13:
	mov	x0, x20
	bl	_pg_strdup
	str	x0, [x19]
	mov	x0, x21
	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
	b	_destroyPQExpBuffer
LBB0_14:
	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
LBB0_15:
	ldr	w2, [x21]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ahprintf
	ldr	x0, [x19]
	cbnz	x0, LBB0_12
	b	LBB0_13
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET search_path = %s"

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

l_.str.2:                               ; @.str.2
	.asciz	", pg_catalog"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
l_.str.3:                               ; @.str.3
	.asciz	"could not set search_path to \"%s\": %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s;\n\n"

	.no_dead_strip	__selectOutputSchema
.subsections_via_symbols
