	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cstr_token                     ## -- Begin function cstr_token
	.p2align	4, 0x90
_cstr_token:                            ## @cstr_token
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.3:
	movq	%rdi, %rbx
	movq	(%r14), %rax
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_13
## %bb.4:
	incq	%rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_5
	jmp	LBB0_14
LBB0_8:
	cmpb	$0, -1(%rbx)
	je	LBB0_13
## %bb.9:
	leaq	-1(%rbx), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_os_strchr
	leaq	1(%r13), %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	%r13, (%r14)
	jmp	LBB0_14
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$8, %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	_cstr_token                     ; -- Begin function cstr_token
	.p2align	2
_cstr_token:                            ; @cstr_token
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, #0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_12
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_12
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, #0
	csel	x9, x0, x8, eq
	ldrb	w8, [x9]
	cbz	w8, LBB0_11
; %bb.4:
	add	x22, x9, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w8
	mov	x0, x20
	bl	_os_strchr
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22], #1
	cbnz	w8, LBB0_5
	b	LBB0_11
LBB0_7:
	mov	x21, x22
	ldrb	w8, [x21, #-1]!
	cbz	w8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	ldrb	w8, [x22]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtb	w1, w8
	mov	x0, x20
	bl	_os_strchr
	add	x22, x23, #1
	cbz	x0, LBB0_8
LBB0_10:
	str	x23, [x19]
	b	LBB0_12
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
