	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan
_scan:                                  ## @scan
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_gdb_assert
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	sete	%dil
	callq	_gdb_assert
	movq	8(%rbx), %r12
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_get_token
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	-80(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_maybe_expand
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_get_token
	testl	%eax, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdx
	cmpq	%r12, %rdx
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%r12d, %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_appendmem
	movl	20(%r14), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_append_tokens_without_splicing
	jmp	LBB0_6
LBB0_7:
	movl	20(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_appendmem
	movl	20(%r14), %eax
	movl	%eax, 16(%r14)
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan
_scan:                                  ; @scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_gdb_assert
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_gdb_assert
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_maybe_expand
	cbz	w0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x20, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_get_token
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	cmp	x8, x24
	b.ls	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w8, w24
	mov	x0, x19
	mov	x1, x24
	bl	_appendmem
	ldr	w8, [x19, #20]
	str	w8, [x19, #16]
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_append_tokens_without_splicing
	b	LBB0_2
LBB0_6:
	ldr	w2, [x20, #20]
	cbz	w2, LBB0_8
; %bb.7:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_appendmem
	ldr	w8, [x19, #20]
	str	w8, [x19, #16]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scan
.subsections_via_symbols
