	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgsql_handle_quoter
_pgsql_handle_quoter:                   ## @pgsql_handle_quoter
	.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	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %r13
	cmpl	$128, %r9d
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_PQescapeByteaConn
	movq	%rax, %r15
	movq	-48(%rbp), %rdi
	leaq	1(%rdi), %rax
	movq	%rax, (%r14)
	addq	$2, %rdi
	callq	_emalloc
	movq	%rax, (%rbx)
	leaq	1(%rax), %rdi
	movq	(%r14), %rdx
	addq	$-2, %rdx
	movq	%r15, %rsi
	callq	_memcpy
	movq	(%rbx), %rax
	movb	$39, (%rax)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movb	$39, -1(%rcx,%rax)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movb	$0, (%rax,%rcx)
	movq	%r15, %rdi
	callq	_PQfreemem
	jmp	LBB0_3
LBB0_2:
	movl	$2, %edi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_safe_emalloc
	movq	%rax, (%rbx)
	movb	$39, (%rax)
	movl	(%r13), %edi
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_PQescapeStringConn
	movq	%rax, (%r14)
	movq	(%rbx), %rcx
	movb	$39, 1(%rax,%rcx)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movb	$0, 2(%rcx,%rax)
	addq	$2, (%r14)
LBB0_3:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pgsql_handle_quoter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgsql_handle_quoter
_pgsql_handle_quoter:                   ; @pgsql_handle_quoter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x0]
	cmp	w5, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x21
	bl	_PQescapeByteaConn
	mov	x21, x0
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [x19]
	add	x0, x8, #2
	bl	_emalloc
	str	x0, [x20]
	add	x0, x0, #1
	ldr	x8, [x19]
	sub	x2, x8, #2
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x20]
	mov	w9, #39
	strb	w9, [x8]
	ldr	x8, [x20]
	ldr	x10, [x19]
	add	x8, x10, x8
	sturb	w9, [x8, #-1]
	ldr	x8, [x20]
	ldr	x9, [x19]
	strb	wzr, [x8, x9]
	mov	x0, x21
	bl	_PQfreemem
	b	LBB0_3
LBB0_2:
	mov	w0, #2
	mov	x1, x21
	mov	w2, #3
	bl	_safe_emalloc
	str	x0, [x20]
	mov	w24, #39
	strb	w24, [x0]
	ldr	w0, [x23]
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x2, x22
	mov	x3, x21
	mov	x4, #0
	bl	_PQescapeStringConn
	str	x0, [x19]
	ldr	x8, [x20]
	add	x8, x0, x8
	strb	w24, [x8, #1]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x9, x8
	strb	wzr, [x8, #2]
	ldr	x8, [x19]
	add	x8, x8, #2
	str	x8, [x19]
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pgsql_handle_quoter
.subsections_via_symbols
