	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfr_next_token                 ## -- Begin function pfr_next_token
	.p2align	4, 0x90
_pfr_next_token:                        ## @pfr_next_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movsbl	_pfr_next_token.next_ch(%rip), %edi
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_fgetc
	movb	%al, _pfr_next_token.next_ch(%rip)
	movsbl	%al, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$35, _pfr_next_token.next_ch(%rip)
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	callq	_fgetc
	movb	%al, _pfr_next_token.next_ch(%rip)
	cmpb	$10, %al
	jne	LBB0_6
	jmp	LBB0_1
LBB0_8:
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_9
## %bb.18:
	movb	$32, _pfr_next_token.next_ch(%rip)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_9:
	xorl	%r15d, %r15d
	movq	_BUF_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r12), %r15d
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	_pfr_next_token.next_ch(%rip), %eax
	movslq	%r15d, %rcx
	incl	%r15d
	movb	%al, (%r14,%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_fgetc
	movb	%al, _pfr_next_token.next_ch(%rip)
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	_pfr_next_token.next_ch(%rip), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_10
LBB0_14:
	cmpl	(%r12), %r15d
	jge	LBB0_15
## %bb.16:
	movslq	%r15d, %rax
	movb	$0, (%r14,%rax)
	movl	$1, %eax
	jmp	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
	.section	__DATA,__data
_pfr_next_token.next_ch:                ## @pfr_next_token.next_ch
	.byte	32                              ## 0x20

	.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	_pfr_next_token                 ; -- Begin function pfr_next_token
	.p2align	2
_pfr_next_token:                        ; @pfr_next_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	x20, x1
	mov	x19, x0
	adrp	x21, _pfr_next_token.next_ch@PAGE
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_5 Depth 2
	ldrsb	w0, [x21, _pfr_next_token.next_ch@PAGEOFF]
	bl	_isspace
	cbz	x0, LBB0_4
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_feof
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x20
	bl	_fgetc
	strb	w0, [x21, _pfr_next_token.next_ch@PAGEOFF]
	bl	_isspace
	cbnz	x0, LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x21, _pfr_next_token.next_ch@PAGEOFF]
	cmp	w8, #35
	b.ne	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_feof
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	bl	_fgetc
	strb	w0, [x21, _pfr_next_token.next_ch@PAGEOFF]
	cmp	w0, #10
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:
	mov	x0, x20
	bl	_feof
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w8, #32
	strb	w8, [x21, _pfr_next_token.next_ch@PAGEOFF]
	b	LBB0_17
LBB0_9:
	mov	w22, #0
Lloh0:
	adrp	x23, _BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BUF_SIZE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21, _pfr_next_token.next_ch@PAGEOFF]
	strb	w8, [x19, w22, sxtw]
	add	w22, w22, #1
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_fgetc
	strb	w0, [x21, _pfr_next_token.next_ch@PAGEOFF]
	mov	x0, x20
	bl	_feof
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsb	w0, [x21, _pfr_next_token.next_ch@PAGEOFF]
	bl	_isspace
	cbz	x0, LBB0_10
LBB0_14:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_16
; %bb.15:
	strb	wzr, [x19, w22, sxtw]
	mov	w0, #1
	b	LBB0_17
LBB0_16:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	w0, #-1
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
	.section	__DATA,__data
_pfr_next_token.next_ch:                ; @pfr_next_token.next_ch
	.byte	32                              ; 0x20

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
