	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gettok                         ## -- Begin function gettok
	.p2align	4, 0x90
_gettok:                                ## @gettok
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	%rbx, -56(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -60(%rbp)
	movq	%rbx, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input
	testl	%eax, %eax
	je	LBB0_31
## %bb.1:
	movl	%eax, %r15d
	movb	%r15b, (%rbx)
	movq	-56(%rbp), %rax
	movb	$0, 1(%rax)
	movl	%r15d, %edi
	callq	_isalnum
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	%r15b, (%rax)
	movl	%r15d, %edi
	callq	_isalpha
	testq	%rax, %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.6:
	cmpl	$95, %r15d
	je	LBB0_7
## %bb.17:
	xorl	%eax, %eax
	callq	_input
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r12
	leaq	-56(%rbp), %r13
	leaq	-60(%rbp), %r14
	leaq	-48(%rbp), %r15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	%bl, (%rax)
	xorl	%eax, %eax
	callq	_input
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_27
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx
	subq	-56(%rbp), %rdx
	movslq	-60(%rbp), %rax
	cmpq	%rax, %rdx
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	$2, %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$100, %ecx
	movq	%r15, %r8
	movq	%r12, %r9
	callq	_adjbuf
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_FATAL
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	leal	-43(%rbx), %eax
	cmpl	$58, %eax
	ja	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movabsq	$288230376218820621, %rcx       ## imm = 0x40000000400000D
	btq	%rax, %rcx
	jb	LBB0_25
LBB0_26:
	movl	%ebx, %edi
	callq	_unput
LBB0_27:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movq	-56(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	callq	_strtod
	movq	-88(%rbp), %rbx
	cmpq	-56(%rbp), %rbx
	je	LBB0_28
## %bb.29:
	movq	%rbx, %rdi
	callq	_unputstr
	movb	$0, (%rbx)
	movl	$48, %r14d
	jmp	LBB0_30
LBB0_7:
	xorl	%eax, %eax
	callq	_input
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r14
	leaq	-56(%rbp), %r15
	leaq	-60(%rbp), %r12
	leaq	-48(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	%bl, (%rax)
	xorl	%eax, %eax
	callq	_input
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx
	subq	-56(%rbp), %rdx
	movslq	-60(%rbp), %rax
	cmpq	%rax, %rdx
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$2, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$100, %ecx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_adjbuf
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_FATAL
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$95, %ebx
	je	LBB0_14
## %bb.15:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movl	%ebx, %edi
	callq	_unput
LBB0_16:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movl	$97, %r14d
	jmp	LBB0_30
LBB0_2:
	cmpl	$95, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	$46, %r15d
	je	LBB0_5
## %bb.4:
	movl	%r15d, %r14d
	jmp	LBB0_31
LBB0_28:
	movb	$0, 1(%rbx)
	incq	%rbx
	movq	-56(%rbp), %rax
	movsbl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_unputstr
LBB0_30:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rax
	movq	%rax, (%rdx)
	movl	-60(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_31:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettok"

L_.str.1:                               ## @.str.1
	.asciz	"out of space for name %.10s..."

L_.str.2:                               ## @.str.2
	.asciz	"out of space for number %.10s..."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gettok                         ; -- Begin function gettok
	.p2align	2
_gettok:                                ; @gettok
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldr	x22, [x0]
	str	x22, [sp, #24]
	ldr	w8, [x1]
	str	w8, [sp, #20]
	str	x22, [sp, #8]
	bl	_input
	mov	x21, x0
	cbz	w0, LBB0_30
; %bb.1:
	strb	w21, [x22]
	ldr	x8, [sp, #24]
	strb	wzr, [x8, #1]
	mov	x0, x21
	bl	_isalnum
	cbz	x0, LBB0_26
LBB0_2:
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w21, [x8]
	mov	x0, x21
	bl	_isalpha
	cbnz	x0, LBB0_16
; %bb.3:
	cmp	w21, #95
	b.eq	LBB0_16
; %bb.4:
	bl	_input
	cbz	w0, LBB0_14
; %bb.5:
	mov	x21, x0
	mov	w24, #1
	mov	x25, #288230376218820608
	movk	x25, #13
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.2@PAGE
Lloh3:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_isdigit
	cbz	x0, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w21, [x8]
	bl	_input
	mov	x21, x0
	cbz	w0, LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	ldrsw	x10, [sp, #20]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w2, w8, #2
	add	x0, sp, #24
	add	x1, sp, #20
	add	x4, sp, #8
	mov	w3, #100
	mov	x5, x22
	bl	_adjbuf
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x23
	bl	_FATAL
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w21, #43
	cmp	w8, #58
	b.hi	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	lsl	x8, x24, x8
	tst	x8, x25
	b.ne	LBB0_7
LBB0_13:
	mov	x0, x21
	bl	_unput
LBB0_14:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	ldr	x0, [sp, #24]
	mov	x1, sp
	bl	_strtod
	ldr	x22, [sp]
	ldr	x8, [sp, #24]
	cmp	x22, x8
	b.eq	LBB0_28
; %bb.15:
	mov	x0, x22
	bl	_unputstr
	strb	wzr, [x22]
	mov	w21, #48
	b	LBB0_29
LBB0_16:
	bl	_input
	cbz	w0, LBB0_25
; %bb.17:
	mov	x21, x0
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w21, [x8]
	bl	_input
	mov	x21, x0
	cbz	w0, LBB0_25
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	ldrsw	x10, [sp, #20]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lt	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w2, w8, #2
	add	x0, sp, #24
	add	x1, sp, #20
	add	x4, sp, #8
	mov	w3, #100
	mov	x5, x22
	bl	_adjbuf
	cbnz	w0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x23
	bl	_FATAL
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x21
	bl	_isalnum
	cbnz	x0, LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w21, #95
	b.eq	LBB0_18
; %bb.24:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	mov	x0, x21
	bl	_unput
LBB0_25:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	mov	w21, #97
	b	LBB0_29
LBB0_26:
	cmp	w21, #95
	b.eq	LBB0_2
; %bb.27:
	cmp	w21, #46
	b.eq	LBB0_2
	b	LBB0_30
LBB0_28:
	strb	wzr, [x22, #1]!
	ldr	x8, [sp, #24]
	ldrsb	w21, [x8]
	mov	x0, x22
	bl	_unputstr
LBB0_29:
	ldr	x8, [sp, #24]
	str	x8, [x20]
	ldr	w8, [sp, #20]
	str	w8, [x19]
LBB0_30:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettok"

l_.str.1:                               ; @.str.1
	.asciz	"out of space for name %.10s..."

l_.str.2:                               ; @.str.2
	.asciz	"out of space for number %.10s..."

.subsections_via_symbols
