	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firebird_handle_quoter
_firebird_handle_quoter:                ## @firebird_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, %r15
	movq	%rcx, %r12
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rsi, %rdi
	movl	$39, %esi
	callq	_strchr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movq	%rax, %rdi
	movl	$39, %esi
	callq	_strchr
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	leaq	(%rbx,%r13), %rax
	addq	$2, %rax
	movq	%rax, (%r15)
	leaq	(%rbx,%r13), %rdi
	addq	$3, %rdi
	callq	_emalloc
	movq	%rax, %r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r12)
	movb	$39, (%rax)
	incq	%r13
	movq	%r14, %rdi
	movl	$39, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	subq	%r14, %rbx
	leaq	1(%rbx), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strncpy
	movb	$39, 1(%r13,%rbx)
	movq	%r12, %r14
	incq	%r14
	addq	%rbx, %r13
	addq	$2, %r13
	movq	%r14, %rdi
	movl	$39, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	%r13, %rdx
	notq	%rdx
	addq	(%r15), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strncpy
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movb	$39, -1(%rcx,%rax)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movb	$0, (%rax,%rcx)
	jmp	LBB0_8
LBB0_9:
	movq	$2, (%r15)
	movl	$3, %edi
	callq	_emalloc
	movq	%rax, (%r12)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcpy
LBB0_8:
	movl	$1, %eax
	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	"''"

	.no_dead_strip	_firebird_handle_quoter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firebird_handle_quoter
_firebird_handle_quoter:                ; @firebird_handle_quoter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	cbz	x2, LBB0_7
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	w23, #39
	mov	x0, x1
	mov	w1, #39
	bl	_strchr
	mov	x24, #0
	cbz	x0, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	mov	w1, #39
	bl	_strchr
	add	x24, x24, #1
	cbnz	x0, LBB0_2
LBB0_3:
	add	x8, x24, x22
	add	x9, x8, #2
	str	x9, [x20]
	add	x0, x8, #3
	bl	_emalloc
	mov	x22, x0
	str	x0, [x19]
	strb	w23, [x22], #1
	mov	x0, x21
	mov	w1, #39
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	w25, #39
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x23, x21
	add	x24, x8, #1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_strncpy
	add	x22, x22, x24
	strb	w25, [x22], #1
	add	x21, x23, #1
	mov	x0, x21
	mov	w1, #39
	bl	_strchr
	mov	x23, x0
	cbnz	x0, LBB0_5
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x19]
	mvn	x10, x22
	add	x8, x8, x10
	add	x2, x8, x9
	mov	x0, x22
	mov	x1, x21
	bl	_strncpy
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x9, x8
	mov	w9, #39
	sturb	w9, [x8, #-1]
	ldr	x8, [x19]
	ldr	x9, [x20]
	strb	wzr, [x8, x9]
	b	LBB0_8
LBB0_7:
	mov	w8, #2
	str	x8, [x20]
	mov	w0, #3
	bl	_emalloc
	str	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"''"

	.no_dead_strip	_firebird_handle_quoter
.subsections_via_symbols
