	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_makecanon                   ## -- Begin function ns_makecanon
	.p2align	4, 0x90
_ns_makecanon:                          ## @ns_makecanon
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_strlen
	movq	%rax, %rbx
	addq	$2, %rax
	cmpq	%r12, %rax
	jbe	LBB0_2
## %bb.1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	xorl	%eax, %eax
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movw	$46, (%r14,%rbx)
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -1(%r14,%rbx)
	decq	%rbx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, -1(%r14,%rbx)
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$2, %rbx
	jb	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$92, -2(%r14,%rbx)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %rbx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$92, -3(%r14,%rbx)
	je	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movl	$2, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_makecanon                   ; -- Begin function ns_makecanon
	.p2align	2
_ns_makecanon:                          ; @ns_makecanon
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_strlen
	add	x8, x0, #2
	cmp	x8, x22
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_14
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
	cbz	x20, LBB0_13
; %bb.3:
	sub	x8, x20, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x19, x8]
	sub	x8, x8, #1
	sub	x20, x20, #1
	cmn	x8, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, #1
	ldrb	w10, [x19, x8]
	cmp	w10, #46
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, #2
	b.lo	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x19, x8
	ldurb	w10, [x10, #-1]
	cmp	w10, #92
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, #3
	b.lo	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x19, x8
	ldurb	w9, [x9, #-2]
	cmp	w9, #92
	b.eq	LBB0_4
	b	LBB0_13
LBB0_10:
	mov	x20, x9
	b	LBB0_13
LBB0_11:
	mov	x20, #0
	b	LBB0_13
LBB0_12:
	mov	w20, #2
LBB0_13:
	mov	w0, #0
	mov	w8, #46
	strh	w8, [x19, x20]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
