	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function escape_filename
_escape_filename:                       ## @escape_filename
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	cmpq	%rcx, %rax
	je	LBB0_11
## %bb.2:
	xorl	%esi, %esi
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	testq	%rdi, %rdi
	sete	%dl
	movq	%rdx, %rdi
	xorl	%esi, %esi
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rcx, %rax
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %edx
	cmpb	$39, %dl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rsi, %rsi
	je	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$34, %dl
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	testq	%rsi, %rsi
	sete	%dl
	xorl	%edi, %edi
	movq	%rdx, %rsi
	jmp	LBB0_4
LBB0_11:
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_12:
	movb	(%r12), %al
	testb	%al, %al
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.13:
	movq	%rdi, %rcx
	orq	%rsi, %rcx
	setne	%r15b
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$3, %r14
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movzbl	1(%r12,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_24
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$39, %al
	je	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movsbl	%al, %edi
	callq	_needs_dquote_escaping
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	testb	%r15b, %r15b
	jne	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movsbl	%al, %edi
	callq	_needs_escaping
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$1, %rax
	sbbq	$-1, %r14
	jmp	LBB0_15
LBB0_23:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_24:
	xorl	%ecx, %ecx
	movq	%rdi, %rax
	orq	%rsi, %rax
	setne	%cl
	testl	%r13d, %r13d
	setne	%al
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	setne	%r15b
	andb	%al, %r15b
	movzbl	%r15b, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rax
	addq	%rbx, %rax
	leaq	(%r14,%rax), %rdi
	incq	%rdi
	callq	_el_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.25:
	movq	%rax, %r13
	movb	%r15b, -41(%rbp)                ## 1-byte Spill
	movb	(%r12), %r14b
	testb	%r14b, %r14b
	je	LBB0_38
## %bb.26:
	incq	%r12
	xorl	%r15d, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_30 Depth=1
	movw	$23591, (%r13,%r15)             ## imm = 0x5C27
	leaq	2(%r15), %rcx
	movb	$39, %al
	movl	$3, %edx
	movb	$39, %r14b
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=1
	addq	%rdx, %r15
	movb	%al, (%r13,%rcx)
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	movb	%r14b, (%r13,%r15)
	incq	%r15
	movzbl	(%r12), %r14d
	incq	%r12
	testb	%r14b, %r14b
	je	LBB0_39
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%r14b, %ebx
	movl	%ebx, %edi
	callq	_needs_escaping
	testq	%rax, %rax
	je	LBB0_29
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpb	$39, %r14b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	testq	%rax, %rax
	jne	LBB0_27
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	testq	%rax, %rax
	jne	LBB0_29
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	movb	$92, %al
	movl	$1, %edx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	%ebx, %edi
	callq	_needs_dquote_escaping
	movl	$1, %edx
	movq	%r15, %rcx
	testq	%rax, %rax
	movb	$92, %al
	jne	LBB0_28
	jmp	LBB0_29
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, %rcx
	jmp	LBB0_28
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_46
LBB0_38:
	xorl	%r15d, %r15d
LBB0_39:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_45
## %bb.40:
	movb	$0, (%r13,%r15)
	movq	%r13, %rdi
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	movb	(%rax), %cl
	cmpb	$32, %cl
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_42
## %bb.41:
	movl	%esi, %edx
	xorb	$1, %dl
	je	LBB0_43
LBB0_42:
	movb	%cl, (%r13,%r15)
	incq	%r15
	cmpb	$32, (%rax)
	jne	LBB0_45
LBB0_43:
	testb	%sil, %sil
	je	LBB0_45
## %bb.44:
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	leal	(%rax,%rax,4), %eax
	addl	$34, %eax
	movb	%al, (%r13,%r15)
	incq	%r15
LBB0_45:
	movb	$0, (%r13,%r15)
LBB0_46:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_escape_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function escape_filename
_escape_filename:                       ; @escape_filename
	.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
	cbz	x1, LBB0_15
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.2:
	mov	x23, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8], #1
	cmp	x23, #0
	cset	w11, eq
	cmp	w10, #34
	ccmp	x22, #0, #0, eq
	csel	x12, x22, xzr, ne
	csel	x11, x23, x11, ne
	cmp	x22, #0
	cset	w13, eq
	cmp	w10, #39
	ccmp	x23, #0, #0, eq
	csel	x22, x12, x13, ne
	csel	x23, x11, xzr, ne
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.4:
	ldrb	w8, [x21]
	cbz	w8, LBB0_17
LBB0_5:
	mov	x24, #0
	mov	x26, #0
	orr	x9, x22, x23
	cmp	x9, #0
	cset	w25, ne
	add	x27, x21, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #3
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x26, #1
	ldrb	w8, [x27, x26]
	mov	x26, x9
	cbz	w8, LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	and	w9, w8, #0xff
	cmp	w9, #39
	b.eq	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x23, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtb	w0, w8
	bl	_needs_dquote_escaping
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w25, #0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtb	w0, w8
	bl	_needs_escaping
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x0, #0
	cinc	x24, x24, ne
	b	LBB0_7
LBB0_15:
	mov	x20, #0
	b	LBB0_37
LBB0_16:
	mov	x22, #0
	mov	x23, #0
	ldrb	w8, [x21]
	cbnz	w8, LBB0_5
LBB0_17:
	mov	x9, #0
	mov	x24, #0
LBB0_18:
	orr	x8, x22, x23
	cmp	x8, #0
	cset	w25, ne
	mov	w8, #1
	cinc	x8, x8, ne
	cmp	w20, #0
	ccmp	x19, #0, #4, ne
	cset	w26, ne
	cinc	x8, x8, ne
	add	x8, x8, x9
	add	x0, x8, x24
	bl	_el_malloc
	mov	x20, x0
	cbz	x0, LBB0_37
; %bb.19:
	ldrb	w24, [x21]
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	mov	x25, #0
	cbz	w24, LBB0_31
; %bb.20:
	add	x27, x21, #1
	mov	w28, #23591
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=1
	strh	w28, [x20, x25]
	add	x9, x25, #2
	mov	w8, #39
	mov	w10, #3
	mov	w24, #39
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x25, x25, x10
	strb	w8, [x20, x9]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	strb	w24, [x20, x25]
	add	x25, x25, #1
	ldrb	w24, [x27], #1
	cbz	w24, LBB0_31
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w21, w24
	mov	x0, x21
	bl	_needs_escaping
	cbz	x0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	and	w8, w24, #0xff
	cmp	w8, #39
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	cbnz	x22, LBB0_21
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=1
	cbnz	x22, LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	cbz	x23, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_needs_dquote_escaping
	cbz	x0, LBB0_23
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w8, #92
	mov	w10, #1
	mov	x9, x25
	b	LBB0_22
LBB0_31:
	cbz	w26, LBB0_36
; %bb.32:
	strb	wzr, [x20, x25]
	mov	x0, x20
	blr	x19
	ldrb	w8, [x0]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	eor	w9, w10, #0x1
	cmp	w8, #32
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_34
; %bb.33:
	strb	w8, [x20, x25]
	add	x25, x25, #1
	ldrb	w8, [x0]
	cmp	w8, #32
	b.ne	LBB0_36
LBB0_34:
	cbz	w10, LBB0_36
; %bb.35:
	cmp	x22, #0
	mov	w8, #34
	mov	w9, #39
	csel	w8, w9, w8, ne
	strb	w8, [x20, x25]
	add	x25, x25, #1
LBB0_36:
	strb	wzr, [x20, x25]
LBB0_37:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_escape_filename
.subsections_via_symbols
