	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_escape                    ## -- Begin function utf8_escape
	.p2align	4, 0x90
_utf8_escape:                           ## @utf8_escape
	.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
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.2:
	movq	%rcx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rax, %rsi
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r8
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movb	%dl, (%rbx)
	incq	%rbx
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r8
	jae	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%r8), %rax
	movzbl	(%r15,%rcx), %edx
	movsbl	%dl, %edi
	cmpl	$92, %edi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$39, %edi
	jne	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r14, %rax
	jae	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %r8
	movb	$92, (%rbx)
	incq	%rbx
	movzbl	(%r15,%rcx), %edx
	movq	%r8, %rax
	jmp	LBB0_6
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	cmpq	%r14, %rax
	jae	LBB0_17
## %bb.16:
	movb	$0, (%rbx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_escape                    ; -- Begin function utf8_escape
	.p2align	2
_utf8_escape:                           ; @utf8_escape
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	mov	x0, #0
	cbz	x21, LBB0_15
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_15
; %bb.2:
	mov	x20, x3
	cbnz	x1, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_os_strlen
	mov	x1, x0
	cbz	x0, LBB0_13
LBB0_4:
	mov	x0, #0
	mov	w8, #92
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	and	w9, w9, #0xff
	mov	x0, x10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	strb	w9, [x19], #1
	sub	x1, x1, #1
	cbz	x1, LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, x20
	b.hs	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x0, #1
	ldrsb	w9, [x21]
	cmp	w9, #92
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #39
	b.ne	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x10, x20
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x0, #2
	strb	w8, [x19], #1
	ldrb	w9, [x21]
	b	LBB0_6
LBB0_12:
	mov	x0, #0
	b	LBB0_15
LBB0_13:
	cmp	x0, x20
	b.hs	LBB0_15
; %bb.14:
	strb	wzr, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
