	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sq_quote_buf                   ## -- Begin function sq_quote_buf
	.p2align	4, 0x90
_sq_quote_buf:                          ## @sq_quote_buf
	.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	%rsi, %r12
	movq	%rdi, %r15
	cmpq	%rsi, (%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_strbuf_addch
	cmpb	$0, (%r12)
	je	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, (%r12)
	je	LBB0_9
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcspn
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_strbuf_add
	leaq	(%r12,%r14), %rbx
	movsbl	(%r12,%r14), %edi
	callq	_need_bs_quote
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strbuf_addstr
	leaq	1(%rbx), %r12
	movsbl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_strbuf_addch
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_strbuf_addch
	movsbl	1(%rbx), %edi
	callq	_need_bs_quote
	movq	%r12, %rbx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_9:
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_strbuf_addch
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'!"

L_.str.1:                               ## @.str.1
	.asciz	"'\\"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sq_quote_buf                   ; -- Begin function sq_quote_buf
	.p2align	2
_sq_quote_buf:                          ; @sq_quote_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, #0
	bl	_strbuf_detach
	mov	x21, x0
LBB0_3:
	mov	x0, x19
	mov	w1, #39
	bl	_strbuf_addch
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x20
	mov	x1, x22
	bl	_strcspn
	mov	x24, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_strbuf_add
	add	x20, x20, x24
	ldrsb	w0, [x20]
	bl	_need_bs_quote
	cbz	x0, LBB0_5
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_strbuf_addstr
	ldrsb	w1, [x20]
	mov	x0, x19
	bl	_strbuf_addch
	mov	x0, x19
	mov	w1, #39
	bl	_strbuf_addch
	ldrsb	w0, [x20, #1]!
	bl	_need_bs_quote
	cbnz	x0, LBB0_7
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	mov	w1, #39
	bl	_strbuf_addch
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'!"

l_.str.1:                               ; @.str.1
	.asciz	"'\\"

.subsections_via_symbols
