	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function canonicalize_text
_canonicalize_text:                     ## @canonicalize_text
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movb	(%rcx), %r14b
	testq	%rdx, %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r15
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movb	%cl, (%r12)
	decq	%r13
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	%eax, %r14d
	testq	%r13, %r13
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movsbl	(%r15), %edi
	callq	_is_space
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%r14b, %r14b
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%r13
	incq	%r15
	movq	%r15, %rcx
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r13
	movq	%rcx, %r15
	subq	$1, %rbx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movsbl	(%r15), %edi
	callq	_is_space
	leaq	1(%r15), %rcx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$32, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	(%r15), %cl
	cmpb	$39, %cl
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$34, %cl
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	testb	%r14b, %r14b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	%cl, %r14b
	movzbl	%r14b, %eax
	movl	$0, %edx
	cmovel	%edx, %eax
	jmp	LBB0_14
LBB0_1:
	movl	%r14d, %eax
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	subq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_canonicalize_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function canonicalize_text
_canonicalize_text:                     ; @canonicalize_text
	.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
	mov	x19, x3
	mov	x20, x0
	ldrb	w25, [x3]
	cbz	x2, LBB0_11
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	w24, #32
	mov	x23, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	strb	w24, [x23]
	add	x23, x23, #1
	cbz	x22, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldrsb	w0, [x21]
	bl	_is_space
	cmp	x0, #0
	ccmp	w25, #0, #0, ne
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #39
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #34
	b.ne	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w8
	csel	w9, wzr, w25, eq
	cmp	w25, #0
	csel	w25, w8, w9, eq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	strb	w8, [x23]
	sub	x22, x22, #1
	add	x23, x23, #1
	cbnz	x22, LBB0_3
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x22, #1
	add	x25, x21, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x8
	mov	x21, x25
	cbz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x21
	ldrsb	w0, [x25], #1
	bl	_is_space
	sub	x8, x22, #1
	cbnz	x0, LBB0_9
	b	LBB0_2
LBB0_11:
	mov	x23, x20
LBB0_12:
	strb	w25, [x19]
	sub	x0, x23, 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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_canonicalize_text
.subsections_via_symbols
