	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_multi_scan                  ## -- Begin function gr_multi_scan
	.p2align	4, 0x90
_gr_multi_scan:                         ## @gr_multi_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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	movq	8(%r12,%r13), %rdi
	decq	%r15
	addq	$8, %r13
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_32
## %bb.4:
	movq	%r15, %r14
	negq	%r14
	addl	%ebx, %ebx
	movl	%ebx, %edi
	callq	_alloca
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_alloca
	movq	%rax, %r13
	movl	%r14d, %ecx
	xorl	%eax, %eax
	cmpq	$4, %rcx
	jb	LBB0_9
## %bb.5:
	movq	%r13, %rdx
	subq	%r12, %rdx
	cmpq	$32, %rdx
	jb	LBB0_9
## %bb.6:
	movl	%r14d, %esi
	movl	%r14d, %edx
	andl	$3, %edx
	movq	%rcx, %rax
	subq	%rdx, %rax
	subq	%rdx, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r12,%rdi,8), %xmm0
	movups	16(%r12,%rdi,8), %xmm1
	movups	%xmm0, (%r13,%rdi,8)
	movups	%xmm1, 16(%r13,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_7
## %bb.8:
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_9:
	addl	%eax, %r15d
	negl	%r15d
	movq	%rax, %rdx
	notq	%rdx
	addq	%rdx, %rcx
	testb	$3, %r15b
	je	LBB0_12
## %bb.10:
	movl	%r14d, %edx
	subb	%al, %dl
	movzbl	%dl, %edx
	andl	$3, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rax,8), %rsi
	movq	%rsi, (%r13,%rax,8)
	incq	%rax
	decq	%rdx
	jne	LBB0_11
LBB0_12:
	cmpq	$3, %rcx
	jb	LBB0_15
## %bb.13:
	movl	%r14d, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rax,8), %rdx
	movq	%rdx, (%r13,%rax,8)
	movq	8(%r12,%rax,8), %rdx
	movq	%rdx, 8(%r13,%rax,8)
	movq	16(%r12,%rax,8), %rdx
	movq	%rdx, 16(%r13,%rax,8)
	movq	24(%r12,%rax,8), %rdx
	movq	%rdx, 24(%r13,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %rcx
	jne	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	callq	_sr_readchar
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	negq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r14d
	movl	$1, %ebx
	cmovael	%r14d, %ebx
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r12,%r14,8), %rcx
	movq	%rcx, (%r13,%r14,8)
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_25
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%r14,8), %rcx
	movsbl	(%rcx), %edx
	cmpl	$63, %edx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	%edx, %eax
	jne	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r13,%r14,8)
	cmpb	$0, 1(%rcx)
	je	LBB0_32
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	testl	%esi, %esi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	$1, %esi
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	movb	%al, (%r15)
	incq	%r15
	movl	$1, %esi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	testl	%esi, %esi
	cmovneq	%r15, %rcx
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r14
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	jae	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%rbx), %edi
	movl	(%rax), %esi
	callq	_fputc_unfiltered
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_fputc_unfiltered
	movq	%r14, %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_31:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%eax, %eax
	movq	%rcx, %r15
	callq	_sr_readchar
	jmp	LBB0_16
LBB0_32:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIT,4,2                       ## @QUIT
	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_multi_scan                  ; -- Begin function gr_multi_scan
	.p2align	2
_gr_multi_scan:                         ; @gr_multi_scan
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
	add	x24, x20, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	cmp	w0, w21
	csel	w21, w0, w21, gt
	ldr	x0, [x24, x22]
	sub	x23, x23, #1
	add	x22, x22, #8
	cbnz	x0, LBB0_2
; %bb.3:
	cbz	w23, LBB0_12
; %bb.4:
	neg	x25, x23
	lsl	w0, w21, #1
	bl	_alloca
	mov	x21, x0
	mov	x0, x22
	bl	_alloca
	mov	x22, x0
	mov	x9, #0
	and	x8, x25, #0xffffffff
	cmp	x8, #8
	b.lo	LBB0_9
; %bb.5:
	sub	x10, x22, x20
	cmp	x10, #64
	b.lo	LBB0_9
; %bb.6:
	and	x10, x25, #0x7
	sub	x9, x8, x10
	and	x11, x25, #0xffffffff
	sub	x11, x11, x10
	add	x12, x22, #32
	add	x13, x20, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	cbz	x10, LBB0_11
LBB0_9:
	lsl	x11, x9, #3
	add	x10, x22, x11
	add	x11, x20, x11
	sub	x8, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	str	x9, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	bl	_sr_readchar
	mov	x23, x0
	neg	x24, x21
	cmp	w25, #1
	csinc	w25, w25, wzr, hi
Lloh0:
	adrp	x26, _gdb_stdout@GOTPAGE
Lloh1:
	ldr	x26, [x26, _gdb_stdout@GOTPAGEOFF]
	mov	x27, x21
	b	LBB0_16
LBB0_12:
	mov	w0, #-1
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x26]
	mov	x0, x23
	bl	_fputc_unfiltered
	mov	x27, x21
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_sr_readchar
	mov	x23, x0
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
	mov	x0, #0
	mov	w9, #0
	mov	x8, x27
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	lsl	x10, x0, #3
	ldr	x11, [x20, x10]
	str	x11, [x22, x10]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x0, x0, #1
	cmp	x25, x0
	b.eq	LBB0_24
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x22, x0, lsl #3]
	ldrsb	w11, [x10]
	cmp	w11, #63
	ccmp	w23, w11, #4, ne
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x11, x10, #1
	str	x11, [x22, x0, lsl #3]
	ldrb	w10, [x10, #1]
	cbz	w10, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	cbz	w9, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	w9, #1
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=2
	strb	w23, [x8], #1
	mov	w9, #1
	b	LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w9, #0
	csel	x27, x8, x21, ne
	cbnz	w9, LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w19, LBB0_15
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x21, x8
	b.hs	LBB0_14
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x27, x24, x8
	mov	x28, x21
LBB0_28:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x28], #1
	ldr	w1, [x26]
	bl	_fputc_unfiltered
	subs	x27, x27, #1
	b.ne	LBB0_28
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIT,4,2                       ; @QUIT
	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
.subsections_via_symbols
