	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appendStringLiteralConn        ## -- Begin function appendStringLiteralConn
	.p2align	4, 0x90
_appendStringLiteralConn:               ## @appendStringLiteralConn
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$92, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_PQserverVersion
	cmpl	$80100, %eax                    ## imm = 0x138E4
	jl	LBB0_6
## %bb.2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	8(%rbx), %rcx
	decl	%eax
	cmpb	$32, (%rcx,%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_appendPQExpBufferChar
LBB0_5:
	movq	_ESCAPE_STRING_SYNTAX@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferChar
	movq	%r15, %rdi
	callq	_PQclientEncoding
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_appendStringLiteral            ## TAILCALL
LBB0_6:
	leal	(%r12,%r12), %esi
	addl	$2, %esi
	movq	%rbx, %rdi
	callq	_enlargePQExpBuffer
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movl	$39, %esi
	callq	_appendPQExpBufferChar
	movslq	(%rbx), %rsi
	addq	8(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_PQescapeStringConn
	addl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$39, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_appendPQExpBufferChar          ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESCAPE_STRING_SYNTAX,1,0       ## @ESCAPE_STRING_SYNTAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appendStringLiteralConn        ; -- Begin function appendStringLiteralConn
	.p2align	2
_appendStringLiteralConn:               ; @appendStringLiteralConn
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	mov	w1, #92
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_PQserverVersion
	mov	w8, #14564
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.lt	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x19, #8]
	ldrb	w8, [x9, w8, uxtw]
	cmp	w8, #32
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #32
	bl	_appendPQExpBufferChar
LBB0_5:
Lloh0:
	adrp	x8, _ESCAPE_STRING_SYNTAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESCAPE_STRING_SYNTAX@GOTPAGEOFF]
Lloh2:
	ldrsb	w1, [x8]
	mov	x0, x19
	bl	_appendPQExpBufferChar
	mov	x0, x21
	bl	_PQclientEncoding
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	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	_appendStringLiteral
LBB0_6:
	lsl	w8, w22, #1
	add	w1, w8, #2
	mov	x0, x19
	bl	_enlargePQExpBuffer
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #39
	bl	_appendPQExpBufferChar
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x1, x8, x9
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, #0
	bl	_PQescapeStringConn
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #39
	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	_appendPQExpBufferChar
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ESCAPE_STRING_SYNTAX,1,0       ; @ESCAPE_STRING_SYNTAX
.subsections_via_symbols
