	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quote_string
_quote_string:                          ## @quote_string
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rsi,2), %r15
	incq	%r15
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	testq	%r13, %r13
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_char_map@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movzbl	(%r8), %eax
	movl	(%rcx,%rax,4), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	andl	%esi, %ecx
	movq	_Q_RFC2253_QUOTE_FIRST@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	testl	%edx, %ecx
	jne	LBB0_4
## %bb.5:
	cmpq	$1, %r13
	jne	LBB0_8
## %bb.6:
	movq	_Q_RFC2253_QUOTE_LAST@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	testl	%edx, %ecx
	je	LBB0_8
## %bb.7:
	movb	$92, (%r12)
	movb	%al, 1(%r12)
	movl	$2, %r15d
	jmp	LBB0_22
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_8:
	movq	_Q_RFC2253_QUOTE@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	testl	%edx, %ecx
	je	LBB0_9
LBB0_4:
	movb	$92, (%r12)
	movb	%al, 1(%r12)
	movl	$2, %r15d
LBB0_12:
	cmpq	$1, %r13
	jne	LBB0_13
LBB0_22:
	movb	$0, (%r12,%r15)
	xorl	%edi, %edi
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	seta	%dil
	callq	_assert
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
LBB0_23:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	-2(%r13), %rbx
	decq	%r13
	xorl	%r14d, %r14d
	movq	_Q_RFC2253_QUOTE_LAST@GOTPCREL(%rip), %r9
	movq	_Q_RFC2253_QUOTE@GOTPCREL(%rip), %r10
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movzbl	(%r10), %edx
	testl	%edx, %ecx
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	$92, (%r12,%r15)
	movb	%al, 1(%r12,%r15)
	addq	$2, %r15
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rcx
	movzbl	1(%r8,%r14), %eax
	movl	(%rcx,%rax,4), %ecx
	andl	%esi, %ecx
	cmpq	%r14, %rbx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	(%r9), %edx
	testl	%edx, %ecx
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_Q_RFC2253_HEX@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	testl	%edx, %ecx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r12,%r15), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rsi
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r9, %r13
	movq	%r10, %r12
	callq	_snprintf
	movq	%r12, %r10
	movq	%r13, %r9
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	_char_map@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cltq
	addq	%rax, %r15
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	%al, (%r12,%r15)
	incq	%r15
	jmp	LBB0_21
LBB0_9:
	movq	_Q_RFC2253_HEX@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	testl	%edx, %ecx
	je	LBB0_11
## %bb.10:
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_snprintf
	movq	_char_map@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movslq	%eax, %r15
	jmp	LBB0_12
LBB0_11:
	movb	%al, (%r12)
	movl	$1, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_char_map,8,3                   ## @char_map
	.comm	_Q_RFC2253_QUOTE_FIRST,1,0      ## @Q_RFC2253_QUOTE_FIRST
	.comm	_Q_RFC2253_QUOTE_LAST,1,0       ## @Q_RFC2253_QUOTE_LAST
	.comm	_Q_RFC2253_QUOTE,1,0            ## @Q_RFC2253_QUOTE
	.comm	_Q_RFC2253_HEX,1,0              ## @Q_RFC2253_HEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%02x"

	.no_dead_strip	_quote_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quote_string
_quote_string:                          ; @quote_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x25, x1
	mov	x24, x0
	add	x23, x1, x1, lsl #1
	add	x21, x23, #1
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.1:
	stp	x21, x19, [sp]                  ; 16-byte Folded Spill
	cbz	x25, LBB0_6
; %bb.2:
Lloh0:
	adrp	x26, _char_map@GOTPAGE
Lloh1:
	ldr	x26, [x26, _char_map@GOTPAGEOFF]
	ldr	x8, [x26]
	ldrb	w3, [x24]
	ldr	w8, [x8, x3, lsl #2]
	and	w8, w8, w22
Lloh2:
	adrp	x9, _Q_RFC2253_QUOTE_FIRST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Q_RFC2253_QUOTE_FIRST@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w9
	b.ne	LBB0_8
; %bb.3:
	cmp	x25, #1
	b.ne	LBB0_7
; %bb.4:
Lloh4:
	adrp	x9, _Q_RFC2253_QUOTE_LAST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _Q_RFC2253_QUOTE_LAST@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #92
	strb	w8, [x20]
	strb	w3, [x20, #1]
	mov	w27, #2
	b	LBB0_10
LBB0_6:
	mov	x27, #0
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x9, _Q_RFC2253_QUOTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Q_RFC2253_QUOTE@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_21
LBB0_8:
	mov	w8, #92
	strb	w8, [x20]
	strb	w3, [x20, #1]
	mov	w27, #2
LBB0_9:
	subs	x25, x25, #1
	b.ne	LBB0_12
LBB0_10:
	strb	wzr, [x20, x27]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x27
	cset	w0, hi
	bl	_assert
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x27, [x8]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	add	x28, x24, #1
Lloh8:
	adrp	x24, _Q_RFC2253_QUOTE_LAST@GOTPAGE
Lloh9:
	ldr	x24, [x24, _Q_RFC2253_QUOTE_LAST@GOTPAGEOFF]
	mov	w19, #92
Lloh10:
	adrp	x21, _Q_RFC2253_QUOTE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _Q_RFC2253_QUOTE@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w9, [x21]
	tst	w8, w9
	b.eq	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x20, x27
	strb	w19, [x8]
	add	x27, x27, #2
	strb	w3, [x8, #1]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	subs	x25, x25, #1
	b.eq	LBB0_10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldrb	w3, [x28]
	ldr	w8, [x8, x3, lsl #2]
	and	w8, w8, w22
	cmp	x25, #1
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w9, [x24]
	tst	w8, w9
	b.ne	LBB0_14
	b	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh12:
	adrp	x9, _Q_RFC2253_HEX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _Q_RFC2253_HEX@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x0, x20, x27
	sub	x1, x23, x27
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
	add	x27, x27, w0, sxtw
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	strb	w3, [x20, x27]
	add	x27, x27, #1
	b	LBB0_15
LBB0_21:
Lloh16:
	adrp	x9, _Q_RFC2253_HEX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _Q_RFC2253_HEX@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_23
; %bb.22:
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	b	LBB0_9
LBB0_23:
	strb	w3, [x20]
	mov	w27, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_char_map,8,3                   ; @char_map
	.comm	_Q_RFC2253_QUOTE_FIRST,1,0      ; @Q_RFC2253_QUOTE_FIRST
	.comm	_Q_RFC2253_QUOTE_LAST,1,0       ; @Q_RFC2253_QUOTE_LAST
	.comm	_Q_RFC2253_QUOTE,1,0            ; @Q_RFC2253_QUOTE
	.comm	_Q_RFC2253_HEX,1,0              ; @Q_RFC2253_HEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%02x"

	.no_dead_strip	_quote_string
.subsections_via_symbols
