	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function escape_string
_escape_string:                         ## @escape_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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_jv_get_kind
	movq	_JV_KIND_STRING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	leaq	L_.str(%rip), %rax
	movq	%rax, -1072(%rbp)
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %rdi
	movsbq	%al, %rax
	movq	%rdi, -1072(%rbp,%rax,8)
	callq	_strlen
	movslq	%eax, %rcx
	movzbl	2(%rbx,%rcx), %eax
	addq	%rcx, %rbx
	addq	$2, %rbx
	testb	%al, %al
	jne	LBB0_1
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_jv_string
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_jv_string_value
	movq	%rax, %rbx
	movl	%r14d, -1080(%rbp)              ## 4-byte Spill
	movl	%r14d, %edi
	callq	_jv_copy
	movl	%eax, %edi
	callq	_jv_string_length_bytes
	movslq	%eax, %r15
	addq	%rbx, %r15
	movl	$0, -1076(%rbp)
	leaq	-1076(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_jvp_utf8_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	leaq	-1076(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edx
	subl	%ebx, %edx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_jv_string_append_buf
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_jvp_utf8_next
	movq	%r14, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	movslq	-1076(%rbp), %rax
	cmpq	$127, %rax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-1072(%rbp,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_jv_string_append_str
	jmp	LBB0_9
LBB0_10:
	movl	-1080(%rbp), %edi               ## 4-byte Reload
	callq	_jv_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_STRING,8,3             ## @JV_KIND_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\0"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_escape_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function escape_string
_escape_string:                         ; @escape_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1040
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_jv_get_kind
Lloh3:
	adrp	x8, _JV_KIND_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JV_KIND_STRING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x21, sp, #8
	add	x0, x21, #8
	mov	w1, #1016
	bl	_bzero
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #1
	sxtb	x8, w8
	str	x0, [x21, x8, lsl #3]
	bl	_strlen
	add	x20, x20, w0, sxtw
	ldrb	w8, [x20, #2]!
	cbnz	w8, LBB0_1
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_jv_string
	mov	x20, x0
	mov	x0, x19
	bl	_jv_string_value
	mov	x22, x0
	mov	x0, x19
	bl	_jv_copy
	bl	_jv_string_length_bytes
	add	x21, x22, w0, sxtw
	str	wzr, [sp, #4]
	add	x2, sp, #4
	mov	x0, x22
	mov	x1, x21
	bl	_jvp_utf8_next
	cbz	x0, LBB0_9
; %bb.3:
	add	x24, sp, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w2, w23, w22
	mov	x0, x20
	mov	x1, x22
	bl	_jv_string_append_buf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	add	x2, sp, #4
	mov	x0, x23
	mov	x1, x21
	bl	_jvp_utf8_next
	mov	x22, x23
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x0
	ldrsw	x8, [sp, #4]
	cmp	w8, #127
	b.gt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x24, x8, lsl #3]
	cbz	x1, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_jv_string_append_str
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_jv_free
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_STRING,8,3             ; @JV_KIND_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\0"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_escape_string
.subsections_via_symbols
