	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function normalize
_normalize:                             ## @normalize
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_PRE
	movq	%r13, %rdi
	callq	_atf_dynstr_length
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PRE
	cmpb	$47, (%r12)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_atf_dynstr_append_fmt
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_atf_no_error
LBB0_3:
	movl	%eax, %ebx
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strtok_r
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_atf_is_error
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	testq	%r12, %r12
	je	LBB0_10
## %bb.5:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%r15, %rdx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_atf_dynstr_append_fmt
	movl	%eax, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_strtok_r
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_atf_is_error
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r12, %r12
	jne	LBB0_6
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_normalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function normalize
_normalize:                             ; @normalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	cmp	x0, #0
	cset	w0, gt
	bl	_PRE
	mov	x0, x19
	bl	_atf_dynstr_length
	cmp	x0, #0
	cset	w0, eq
	bl	_PRE
	ldrb	w8, [x22]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_atf_dynstr_append_fmt
	b	LBB0_3
LBB0_2:
	bl	_atf_no_error
LBB0_3:
	mov	x20, x0
	str	xzr, [sp, #24]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x21
	bl	_strtok_r
	mov	x23, x0
	mov	x0, x20
	bl	_atf_is_error
	cbnz	w0, LBB0_10
; %bb.4:
	cbz	x23, LBB0_10
; %bb.5:
	mov	w25, #1
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #0
	csel	x8, x21, x24, eq
	stp	x8, x23, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_atf_dynstr_append_fmt
	mov	x20, x0
	mov	w25, #0
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #24
	mov	x0, #0
	mov	x1, x21
	bl	_strtok_r
	mov	x23, x0
	mov	x0, x20
	bl	_atf_is_error
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x23, LBB0_6
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_normalize
.subsections_via_symbols
