	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scanstr                        ## -- Begin function scanstr
	.p2align	4, 0x90
_scanstr:                               ## @scanstr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.1:
	cmpb	$0, (%rdi)
	je	LBB0_24
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movl	%eax, %r13d
	leal	1(%r13), %edi
	callq	_palloc
	xorl	%edi, %edi
	testl	%r13d, %r13d
	jle	LBB0_26
## %bb.3:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_6
LBB0_24:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pstrdup                        ## TAILCALL
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%edi, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, (%rax,%rbx)
	incq	%rbx
	incl	%r14d
	movl	%r14d, %edi
	cmpl	%r13d, %r14d
	jge	LBB0_25
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edi, %r12
	movzbl	(%r8,%r12), %ecx
	cmpb	$92, %cl
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%edi, %r14d
	cmpb	$39, %cl
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r12), %r14
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpb	$39, 1(%r8,%r12)
	sete	%dil
	callq	_Assert
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %rax
	movzbl	1(%r8,%r12), %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movsbl	1(%r8,%r12), %r9d
	incq	%r12
	movl	%r12d, %r14d
	leal	-48(%r9), %esi
	cmpl	$68, %esi
	ja	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	$8, %cl
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	cmpb	$48, %r9b
	jl	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, %ecx
	cmpb	$55, %r9b
	ja	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%r9b, %ecx
	movl	$4294967248, %edx               ## imm = 0xFFFFFFD0
	addl	%edx, %ecx
	movzbl	1(%r12,%r8), %edx
	movl	$1, %r14d
	cmpb	$48, %dl
	jl	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$55, %dl
	ja	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%dl, %edx
	movl	$4294967248, %esi               ## imm = 0xFFFFFFD0
	addl	%esi, %edx
	leaq	(%rdx,%rcx,8), %rcx
	movzbl	2(%r12,%r8), %edx
	movl	$2, %r14d
	cmpb	$48, %dl
	jl	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$55, %dl
	ja	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	%dl, %edx
	movl	$4294967248, %esi               ## imm = 0xFFFFFFD0
	addl	%esi, %edx
	leaq	(%rdx,%rcx,8), %rcx
	movl	$3, %r14d
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r9d, %ecx
	jmp	LBB0_5
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$12, %cl
	jmp	LBB0_5
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$10, %cl
	jmp	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$13, %cl
	jmp	LBB0_5
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$9, %cl
	jmp	LBB0_5
LBB0_25:
	movl	%ebx, %edi
LBB0_26:
	movb	$0, (%rax,%rdi)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_5
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_21
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_22
	.long	L0_0_set_19
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scanstr                        ; -- Begin function scanstr
	.p2align	2
_scanstr:                               ; @scanstr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_23
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_23
; %bb.2:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	w0, w0, #1
	bl	_palloc
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_25
; %bb.3:
	mov	x22, #0
	mov	w9, #0
	mov	w23, #-48
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w10, w11, w9
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x20, x22]
	add	x22, x22, #1
	add	w9, w10, #1
	cmp	w9, w21
	b.ge	LBB0_24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x11, w9
	ldrb	w8, [x19, x11]
	cmp	w8, #92
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, x9
	cmp	w8, #39
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x11, #1
	ldrb	w8, [x19, x25]
	cmp	w8, #39
	cset	w0, eq
	bl	_Assert
	ldrb	w8, [x19, x25]
	mov	x10, x25
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x11, #1
	ldrsb	w12, [x19, x10]
	and	w13, w12, #0xff
	sub	w11, w12, #48
	cmp	w11, #68
	b.hi	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #8
	adr	x14, LBB0_5
	ldrb	w15, [x24, x11]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	mov	w11, #0
	sxtb	w14, w13
	cmp	w14, #48
	b.lt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w13, #55
	b.hi	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	and	x8, x12, #0xff
	add	w8, w8, w23
	add	x11, x10, x19
	ldrsb	w12, [x11, #1]
	mov	w11, #1
	cmp	w12, #48
	b.lt	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w13, w12, #0xff
	cmp	w13, #55
	b.hi	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	and	x11, x12, #0xff
	add	w11, w11, w23
	add	x8, x11, x8, lsl #3
	add	x10, x10, x19
	ldrsb	w10, [x10, #2]
	mov	w11, #2
	cmp	w10, #48
	b.lt	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w12, w10, #0xff
	cmp	w12, #55
	b.hi	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	and	x10, x10, #0xff
	add	w10, w10, w23
	add	x8, x10, x8, lsl #3
	mov	w11, #3
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x13
	b	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #12
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #10
	b	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #13
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #9
	b	LBB0_5
LBB0_23:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pstrdup
LBB0_24:
	and	x8, x22, #0xffffffff
	b	LBB0_26
LBB0_25:
	mov	x8, #0
LBB0_26:
	strb	wzr, [x20, x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_22-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
