	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pltcl_quote
_pltcl_quote:                           ## @pltcl_quote
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$2, %edx
	jne	LBB0_1
## %bb.3:
	movq	8(%rcx), %rdi
	leaq	-28(%rbp), %rsi
	callq	_Tcl_GetStringFromObj
	movq	%rax, %rbx
	movl	-28(%rbp), %eax
	leal	(%rax,%rax), %edi
	incl	%edi
	callq	_palloc
	movq	%rax, %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	%cl, (%rax)
	incq	%rax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %ecx
	incq	%rbx
	movb	%cl, (%rax)
	incq	%rax
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %ecx
	cmpb	$39, %cl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$92, %cl
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	jne	LBB0_9
## %bb.7:
	movb	$0, (%rax)
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_Tcl_NewStringObj
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_Tcl_SetObjResult
	movq	%r15, %rdi
	callq	_pfree
	movq	_TCL_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_Tcl_WrongNumArgs
	movq	_TCL_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"string"

	.comm	_TCL_ERROR,4,2                  ## @TCL_ERROR
	.comm	_TCL_OK,4,2                     ## @TCL_OK
	.no_dead_strip	_pltcl_quote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pltcl_quote
_pltcl_quote:                           ; @pltcl_quote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	cmp	w2, #2
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [x3, #8]
	add	x1, sp, #12
	bl	_Tcl_GetStringFromObj
	mov	x21, x0
	ldr	w8, [sp, #12]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	bl	_palloc
	mov	x20, x0
	mov	x8, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w9, [x8], #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x21], #1
	strb	w9, [x8], #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21]
	cmp	w9, #39
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #92
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w9, LBB0_3
; %bb.7:
	strb	wzr, [x8]
	mov	x0, x20
	mov	w1, #-1
	bl	_Tcl_NewStringObj
	mov	x1, x0
	mov	x0, x19
	bl	_Tcl_SetObjResult
	mov	x0, x20
	bl	_pfree
Lloh0:
	adrp	x8, _TCL_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCL_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	mov	x2, x3
	mov	x3, x8
	bl	_Tcl_WrongNumArgs
Lloh4:
	adrp	x8, _TCL_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCL_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"string"

	.comm	_TCL_ERROR,4,2                  ; @TCL_ERROR
	.comm	_TCL_OK,4,2                     ; @TCL_OK
	.no_dead_strip	_pltcl_quote
.subsections_via_symbols
