	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ao_string_cook                 ## -- Begin function ao_string_cook
	.p2align	4, 0x90
_ao_string_cook:                        ## @ao_string_cook
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$0, -60(%rbp)
	movb	(%rdi), %al
	movb	%al, -41(%rbp)
	incq	%rdi
	testq	%rsi, %rsi
	leaq	-60(%rbp), %r13
	cmovneq	%rsi, %r13
	movq	%rdi, -56(%rbp)
	leaq	-56(%rbp), %r14
	leaq	-41(%rbp), %r15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%r12, %rbx
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-41(%rbp), %ecx
	cmpb	%cl, (%rax)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movb	$-128, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_contiguous_quote
	movl	%eax, %ecx
	movq	-56(%rbp), %rax
	testl	%ecx, %ecx
	jne	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rax), %rdi
	movq	%rdi, -56(%rbp)
	movb	(%rax), %dl
	leaq	1(%rbx), %r12
	movb	%dl, (%rbx)
	cmpb	$92, %dl
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$39, %cl
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movsbl	(%rdi), %ecx
	addl	$-35, %ecx
	cmpl	$57, %ecx
	ja	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movabsq	$144115188075855889, %rdx       ## imm = 0x200000000000011
	btq	%rcx, %rdx
	jae	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	2(%rax), %rdi
	movq	%rdi, -56(%rbp)
	movb	1(%rax), %al
	movb	%al, (%rbx)
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rsi
	movl	$129, %edx
	callq	_ao_string_cook_escape_char
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edi
	addq	-56(%rbp), %rdi
	movq	%rdi, -56(%rbp)
	jmp	LBB0_1
LBB0_8:
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_ao_string_cook                 ; -- Begin function ao_string_cook
	.p2align	2
_ao_string_cook:                        ; @ao_string_cook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	str	wzr, [sp, #12]
	ldrb	w8, [x0], #1
	strb	w8, [sp, #11]
	add	x8, sp, #12
	str	x0, [sp]
	cmp	x1, #0
	csel	x19, x8, x1, eq
	mov	w22, #128
	mov	w23, #1
	mov	x24, #17
	movk	x24, #512, lsl #48
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x21, x20
	mov	x8, x0
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x8]
	ldrb	w9, [sp, #11]
	cmp	w10, w9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	strb	w22, [x21]
	mov	x0, sp
	add	x1, sp, #11
	mov	x2, x19
	bl	_contiguous_quote
	ldr	x8, [sp]
	cbnz	w0, LBB0_2
	b	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x8, #1
	str	x0, [sp]
	ldrb	w10, [x8]
	mov	x20, x21
	strb	w10, [x20], #1
	cmp	w10, #92
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w9, #39
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsb	w9, [x0]
	sub	w9, w9, #35
	cmp	w9, #57
	lsl	x9, x23, x9
	and	x9, x9, x24
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x8, #2
	str	x0, [sp]
	ldrb	w8, [x8, #1]
	strb	w8, [x21]
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x21
	mov	w2, #129
	bl	_ao_string_cook_escape_char
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp]
	add	x0, x8, w0, uxtw
	str	x0, [sp]
	b	LBB0_1
LBB0_10:
	mov	x8, #0
LBB0_11:
	mov	x0, x8
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
