	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pascal_printstr                ## -- Begin function pascal_printstr
	.p2align	4, 0x90
_pascal_printstr:                       ## @pascal_printstr
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	testl	%r8d, %r8d
	jne	LBB0_1
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cmpb	$0, (%r13,%rax)
	jne	LBB0_5
	jmp	LBB0_4
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
LBB0_4:
	movl	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_32
LBB0_5:
	movq	_print_max@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_30
## %bb.6:
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	decl	%eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_fputs_filtered
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r13d
	leaq	1(%r13), %r15
	movl	$1, %r8d
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movb	(%rdx,%r13), %al
	cmpb	%al, (%rdx,%r15)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r8d
	subl	%ebx, %r8d
	leaq	(%rdx,%r15), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	subq	%r15, %rdx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %rdx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	1(%rsi), %rdi
	incl	%ebx
	cmpb	%al, (%rcx,%rsi)
	movq	%rdi, %rsi
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %r8d
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_repeat_count_threshold@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jbe	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r8d, %r15d
	cmpl	$0, -44(%rbp)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_inspect_it@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fputs_filtered
	movl	$0, -44(%rbp)
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%r13), %edi
	movq	%r14, %rsi
	callq	_pascal_printchar
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf_filtered
	movq	_repeat_count_threshold@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ebx
	movl	$1, %eax
	movl	%ebx, %r15d
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jb	LBB0_25
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%r13), %ebx
	cmpl	$0, -44(%rbp)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_PRINT_LITERAL_FORM
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_inspect_it@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fputs_filtered
	movl	$1, -44(%rbp)
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	callq	_pascal_one_char
	xorl	%eax, %eax
	movl	$1, %ecx
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%ecx, %r12d
	movl	%r15d, %ebx
	movq	_print_max@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jb	LBB0_7
LBB0_26:
	cmpl	$0, -44(%rbp)
	je	LBB0_28
## %bb.27:
	movq	_inspect_it@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fputs_filtered
LBB0_28:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.29:
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_31
LBB0_30:
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_fputs_filtered
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fputs_filtered                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"''"

	.comm	_print_max,4,2                  ## @print_max
	.comm	_QUIT,4,2                       ## @QUIT
L_.str.1:                               ## @.str.1
	.asciz	", "

	.comm	_repeat_count_threshold,4,2     ## @repeat_count_threshold
	.comm	_inspect_it,8,3                 ## @inspect_it
L_.str.2:                               ## @.str.2
	.asciz	"\\', "

L_.str.3:                               ## @.str.3
	.asciz	"', "

L_.str.4:                               ## @.str.4
	.asciz	" <repeats %u times>"

L_.str.5:                               ## @.str.5
	.asciz	"\\'"

L_.str.6:                               ## @.str.6
	.asciz	"'"

L_.str.7:                               ## @.str.7
	.asciz	"..."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pascal_printstr                ; -- Begin function pascal_printstr
	.p2align	2
_pascal_printstr:                       ; @pascal_printstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #28]
	cbz	w2, LBB0_4
; %bb.1:
	cbnz	w4, LBB0_4
; %bb.2:
	sub	w8, w21, #1
	ldrb	w9, [x22, w8, uxtw]
	cbnz	w9, LBB0_5
; %bb.3:
	mov	x21, x8
LBB0_4:
	cbz	w21, LBB0_32
LBB0_5:
Lloh0:
	adrp	x26, _print_max@GOTPAGE
Lloh1:
	ldr	x26, [x26, _print_max@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_30
; %bb.6:
	mov	w8, #0
	mov	w27, #0
	mov	w23, #0
	mov	w9, w21
	sub	w10, w21, #1
	stp	w4, w10, [sp]                   ; 8-byte Folded Spill
	add	x10, x22, #1
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
Lloh2:
	adrp	x28, _repeat_count_threshold@GOTPAGE
Lloh3:
	ldr	x28, [x28, _repeat_count_threshold@GOTPAGEOFF]
	sub	x9, x9, #1
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_fputs_filtered
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, w23
	add	x20, x8, #1
	cmp	w20, w21
	b.hs	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x22, x8]
	ldrb	w10, [x22, x20]
	cmp	w10, w9
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, #0
	sub	w25, w21, w23
	ldp	x12, x11, [sp, #8]              ; 16-byte Folded Reload
	add	x11, x11, x20
	sub	x12, x12, x20
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x12, x10
	b.eq	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldrb	w13, [x11, x10]
	add	x10, x10, #1
	cmp	w13, w9
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w8, w10
	add	w25, w10, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #1
	mov	x24, x23
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28]
	cmp	w25, w8
	b.ls	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh6:
	adrp	x8, _inspect_it@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inspect_it@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x0, x9, x8, eq
	mov	x1, x19
	bl	_fputs_filtered
	str	wzr, [sp, #28]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsb	w0, [x22, w23, uxtw]
	mov	x1, x19
	bl	_pascal_printchar
	mov	x0, x19
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x25
	bl	_fprintf_filtered
	ldr	w9, [x28]
	add	w20, w24, #1
	mov	w8, #1
	cmp	w20, w21
	b.lo	LBB0_24
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsb	w25, [x22, w23, uxtw]
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_PRINT_LITERAL_FORM
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh15:
	adrp	x8, _inspect_it@GOTPAGE
Lloh16:
	ldr	x8, [x8, _inspect_it@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh18:
	adrp	x8, l_.str.5@PAGE
Lloh19:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh20:
	adrp	x9, l_.str.6@PAGE
Lloh21:
	add	x9, x9, l_.str.6@PAGEOFF
	csel	x0, x9, x8, eq
	mov	x1, x19
	bl	_fputs_filtered
	mov	w8, #1
	str	w8, [sp, #28]
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x2, sp, #28
	mov	x0, x25
	mov	x1, x19
	bl	_pascal_one_char
	mov	w8, #0
	mov	w9, #1
	cmp	w20, w21
	b.hs	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x26]
	add	w27, w9, w27
	cmp	w27, w10
	mov	x23, x20
	b.lo	LBB0_7
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w24, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_16
LBB0_26:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_28
; %bb.27:
Lloh22:
	adrp	x8, _inspect_it@GOTPAGE
Lloh23:
	ldr	x8, [x8, _inspect_it@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh25:
	adrp	x8, l_.str.5@PAGE
Lloh26:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh27:
	adrp	x9, l_.str.6@PAGE
Lloh28:
	add	x9, x9, l_.str.6@PAGEOFF
	csel	x0, x9, x8, eq
	mov	x1, x19
	bl	_fputs_filtered
LBB0_28:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	cbnz	w8, LBB0_30
; %bb.29:
	cmp	w20, w21
	b.hs	LBB0_31
LBB0_30:
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_fputs_filtered
LBB0_31:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_fputs_filtered
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"''"

	.comm	_print_max,4,2                  ; @print_max
	.comm	_QUIT,4,2                       ; @QUIT
l_.str.1:                               ; @.str.1
	.asciz	", "

	.comm	_repeat_count_threshold,4,2     ; @repeat_count_threshold
	.comm	_inspect_it,8,3                 ; @inspect_it
l_.str.2:                               ; @.str.2
	.asciz	"\\', "

l_.str.3:                               ; @.str.3
	.asciz	"', "

l_.str.4:                               ; @.str.4
	.asciz	" <repeats %u times>"

l_.str.5:                               ; @.str.5
	.asciz	"\\'"

l_.str.6:                               ; @.str.6
	.asciz	"'"

l_.str.7:                               ; @.str.7
	.asciz	"..."

.subsections_via_symbols
