	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substvar
_substvar:                              ## @substvar
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movl	%r8d, %r15d
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movb	(%r14), %al
	movl	$0, %ebx
	testb	%al, %al
	je	LBB0_6
## %bb.4:
	leaq	1(%r14), %rcx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpb	$126, %al
	sete	%dl
	addl	%edx, %ebx
	xorl	%edx, %edx
	cmpb	$36, %al
	sete	%dl
	addl	%edx, %r13d
	movzbl	(%rcx), %eax
	incq	%rcx
	testb	%al, %al
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_strlen
	movl	%r13d, %ecx
	imull	%r15d, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%esi, %edx
	imull	%ebx, %edx
	addl	%ebx, %r13d
	subl	%r13d, %ecx
	addl	%eax, %ecx
	leal	(%rdx,%rcx), %edi
	incl	%edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcspn
	movslq	%eax, %r14
	cmpb	$0, (%r13,%r14)
	je	LBB0_23
## %bb.10:
	addq	%r13, %r14
	movslq	%r15d, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r14,%r15), %r12
	leaq	1(%r14), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_memmove
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memmove
	movq	%r12, %r14
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcspn
	cltq
	cmpb	$0, (%r14,%rax)
	leaq	(%r14,%rax), %r14
	je	LBB0_23
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%r13, %r14
	jbe	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$92, -1(%r14)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1(%r14), %rdi
	incl	%eax
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memmove
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$126, (%r14)
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$47, 1(%r14)
	setne	%cl
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ecx, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movzbl	%cl, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r14,%r15), %r12
	leaq	(%rbx,%r12), %rdi
	leaq	1(%r14), %rsi
	movl	%eax, %edx
	callq	_memmove
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memmove
	testb	%bl, %bl
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$47, (%r12)
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rax
	addq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_7:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%r13, %rax
	addq	$40, %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	_substvar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substvar
_substvar:                              ; @substvar
	.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	x0, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	cbz	x1, LBB0_6
; %bb.2:
	ldrb	w9, [x24]
	cbz	w9, LBB0_6
; %bb.3:
	mov	w23, #0
	mov	w25, #0
	add	x8, x24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #126
	cinc	w23, w23, eq
	cmp	w9, #36
	cinc	w25, w25, eq
	ldrb	w9, [x8], #1
	cbnz	w9, LBB0_4
	b	LBB0_7
LBB0_5:
	mov	x23, #0
	b	LBB0_23
LBB0_6:
	mov	w25, #0
	mov	w23, #0
LBB0_7:
	mov	x0, x24
	bl	_strlen
	add	w8, w20, w21
	add	w9, w25, w23
	neg	w9, w9
	madd	w9, w25, w19, w9
	add	w9, w9, w0
	madd	w8, w23, w8, w9
	add	w0, w8, #1
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_23
; %bb.8:
	mov	x0, x23
	mov	x1, x24
	bl	_strcpy
	cbz	x22, LBB0_23
; %bb.9:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcspn
	add	x24, x23, w0, sxtw
	ldrb	w8, [x24]
	cbz	w8, LBB0_23
; %bb.10:
	sxtw	x8, w19
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sxtw	x28, w21
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x24, x8
	add	x1, x24, #1
	mov	x0, x26
	bl	_memmove
	ldr	x1, [x22, #8]
	mov	x0, x24
	mov	x2, x19
	bl	_memmove
	mov	x24, x26
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_strcspn
	add	x24, x24, w0, sxtw
	ldrb	w8, [x24]
	cbz	w8, LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	cmp	x24, x23
	b.ls	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	ldrb	w8, [x0, #-1]!
	cmp	w8, #92
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w2, w2, #1
	mov	x1, x24
	bl	_memmove
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x24]
	cmp	w8, #126
	b.ne	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w20, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x24, #1]
	cmp	w8, #47
	cset	w26, ne
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w26, #0
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x27, x24, x28
	add	x0, x27, w26, uxtw
	add	x1, x24, #1
	bl	_memmove
	ldr	x1, [x22]
	mov	x0, x24
	mov	x2, x21
	bl	_memmove
	cbz	w26, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #47
	strb	w8, [x27]
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x28, w26, uxtw
	add	x24, x24, x8
	b	LBB0_12
LBB0_23:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"~$"

	.no_dead_strip	_substvar
.subsections_via_symbols
