	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ao_string_tokenize             ## -- Begin function ao_string_tokenize
	.p2align	4, 0x90
_ao_string_tokenize:                    ## @ao_string_tokenize
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -40(%rbp)
	callq	_alloc_token_list
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r14
	leaq	-40(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-40(%rbp), %rdi
	incq	%rdi
	callq	_SPN_WHITESPACE_CHARS
	movq	%rax, -40(%rbp)
	movq	-48(%rbp), %rcx
	leaq	4(%rcx), %rax
	movq	%rax, -48(%rbp)
	movl	$128, (%rcx)
	movq	8(%r12), %rcx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r12), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%r12)
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	-40(%rbp)
	movzbl	%bl, %eax
	movq	-48(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	movl	%eax, (%rcx)
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-40(%rbp), %rax
	movzbl	(%rax), %ebx
	movsbl	%bl, %edi
	callq	_IS_WHITESPACE_CHAR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movsbl	%bl, %eax
	cmpl	$39, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$34, %eax
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_copy_cooked
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_copy_raw
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movsbl	(%rax), %edi
	callq	_IS_WHITESPACE_CHAR
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	callq	_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ao_string_tokenize             ; -- Begin function ao_string_tokenize
	.p2align	2
_ao_string_tokenize:                    ; @ao_string_tokenize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	x0, [sp, #8]
	bl	_alloc_token_list
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	ldr	x8, [x0]
	ldr	x8, [x8]
	str	x8, [sp]
	mov	w21, #128
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	bl	_SPN_WHITESPACE_CHARS
	str	x0, [sp, #8]
	ldr	x8, [sp]
	str	w21, [x8], #4
	str	x8, [sp]
	ldr	x9, [x19, #8]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x10, [x19]
	add	x11, x9, #1
	str	x11, [x19, #8]
	str	x8, [x10, x9, lsl #3]
	ldr	x8, [sp, #8]
	ldrsb	w20, [x8]
	mov	x0, x20
	bl	_IS_WHITESPACE_CHAR
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w20, w20, #0xff
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x8, [sp]
	add	x8, x8, #1
	str	x8, [sp, #8]
	and	w8, w20, #0xff
	str	w8, [x9], #4
	str	x9, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #8]
	ldrsb	w0, [x8]
	and	w20, w0, #0xff
	bl	_IS_WHITESPACE_CHAR
	cbnz	x0, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w8, w20, #0xff
	cmp	w8, #39
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	sxtb	w8, w20
	cmp	w8, #34
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, sp
	add	x1, sp, #8
	bl	_copy_cooked
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, sp
	add	x1, sp, #8
	bl	_copy_raw
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrsb	w0, [x8]
	bl	_IS_WHITESPACE_CHAR
	cbz	x0, LBB0_6
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_free
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_13:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
