	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_tok
_read_tok:                              ## @read_tok
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rbx
	movb	(%rbx), %al
	movb	$1, %r15b
	xorl	%r13d, %r13d
	testb	%al, %al
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_1
LBB0_3:
	xorb	$1, %r15b
	movzbl	%r15b, %eax
	addq	%rbx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%r13)
	movq	%rax, (%r14)
	movl	$1, %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movb	(%rbx), %r12b
	xorl	%r13d, %r13d
	testb	%r12b, %r12b
	sete	%r15b
	je	LBB0_3
## %bb.6:
	cmpb	-44(%rbp), %r12b                ## 1-byte Folded Reload
	je	LBB0_3
## %bb.7:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	decq	-56(%rbp)                       ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%r12b, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$95, %r12b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$42, %r12b
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r14), %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	%r12b, (%rax,%r14)
	movzbl	1(%rbx,%r14), %r12d
	testb	%r12b, %r12b
	sete	%r15b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %r14
	cmpb	-44(%rbp), %r12b                ## 1-byte Folded Reload
	jne	LBB0_8
LBB0_14:
	addq	%r13, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_tok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_tok
_read_tok:                              ; @read_tok
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
	ldr	x23, [x2]
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x3
	mov	x22, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_2
LBB0_4:
	mov	x8, #0
	mov	w9, #1
LBB0_5:
	eor	w9, w9, #0x1
	add	x9, x23, x9
	strb	wzr, [x20, x8]
	str	x9, [x19]
	mov	w0, #1
LBB0_6:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x8, #0
	ldrb	w24, [x23]
	cmp	w24, #0
	cset	w9, eq
	cbz	w24, LBB0_5
; %bb.8:
	cmp	w24, w21, uxtb
	b.eq	LBB0_5
; %bb.9:
	mov	x25, #0
	sub	x22, x22, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w24
	bl	_isalnum
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	and	w8, w24, #0xff
	cmp	w8, #95
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #42
	b.ne	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x22, x25
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x25, #1
	strb	w24, [x20, x25]
	add	x9, x23, x25
	ldrb	w24, [x9, #1]
	cmp	w24, #0
	cset	w9, eq
	cbz	w24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, w21, uxtb
	mov	x25, x8
	b.ne	LBB0_10
LBB0_16:
	add	x23, x23, x8
	b	LBB0_5
LBB0_17:
	mov	w0, #0
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_tok
.subsections_via_symbols
