	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_escape_single_quotes_ascii     ## -- Begin function escape_single_quotes_ascii
	.p2align	4, 0x90
_escape_single_quotes_ascii:            ## @escape_single_quotes_ascii
	.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	%rdi, %r12
	callq	_strlen
	movl	%eax, %r15d
	leal	(%r15,%r15), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.2:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12,%rbx), %eax
	movslq	%r13d, %rcx
	incl	%r13d
	movb	%al, (%r14,%rcx)
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	movl	$1, %esi
	callq	_SQL_STR_DOUBLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12,%rbx), %eax
	movslq	%r13d, %rcx
	incl	%r13d
	movb	%al, (%r14,%rcx)
	jmp	LBB0_5
LBB0_6:
	movslq	%r13d, %r13
LBB0_7:
	movb	$0, (%r14,%r13)
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_escape_single_quotes_ascii     ; -- Begin function escape_single_quotes_ascii
	.p2align	2
_escape_single_quotes_ascii:            ; @escape_single_quotes_ascii
	.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	x20, x0
	bl	_strlen
	mov	x21, x0
	mov	w0, #1
	bfi	w0, w21, #1, #31
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w22, #0
	mov	w21, w21
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x20], #1
	add	w8, w22, #1
	strb	w9, [x19, w22, sxtw]
	mov	x22, x8
	subs	x21, x21, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	mov	w1, #1
	bl	_SQL_STR_DOUBLE
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20]
	strb	w8, [x19, w22, sxtw]
	add	w22, w22, #1
	b	LBB0_3
LBB0_6:
	sxtw	x8, w8
	b	LBB0_8
LBB0_7:
	mov	x8, #0
LBB0_8:
	strb	wzr, [x19, x8]
LBB0_9:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
