	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_directories
_split_directories:                     ## @split_directories
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movb	(%rdi), %al
	xorl	%r14d, %r14d
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	movq	%r15, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	jmp	LBB0_6
LBB0_7:
	leal	16(,%r14,8), %edi
	callq	_malloc
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_25
## %bb.8:
	movq	%rax, %r12
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_9
## %bb.10:
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_18
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %r14d
	subl	%r15d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_IS_DIR_SEPARATOR
	incl	%r14d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_save_string
	movslq	%r13d, %rcx
	incl	%r13d
	movq	%rax, (%r12,%rcx,8)
	testq	%rax, %rax
	je	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %r15
	jmp	LBB0_17
LBB0_9:
	movq	%r15, %rbx
LBB0_18:
	subq	%r15, %rbx
	testq	%rbx, %rbx
	jle	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_save_string
	movslq	%r13d, %rcx
	incl	%r13d
	movq	%rax, (%r12,%rcx,8)
LBB0_20:
	movslq	%r13d, %rax
	movq	$0, (%r12,%rax,8)
	cmpq	$0, -8(%r12,%rax,8)
	je	LBB0_21
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	%r13d, (%rax)
LBB0_24:
	movq	%r12, %r13
	jmp	LBB0_25
LBB0_26:
	movslq	%r13d, %rax
	movq	$0, (%r12,%rax,8)
LBB0_21:
	movq	%r12, %rdi
	callq	_free_split_directories
	xorl	%r13d, %r13d
LBB0_25:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_split_directories
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_directories
_split_directories:                     ; @split_directories
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w21, #0
	mov	x22, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrb	w8, [x22]
	cbz	w8, LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x22, #1]!
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	lsl	w8, w21, #3
	add	w0, w8, #16
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_24
; %bb.8:
	ldrb	w8, [x20]
	cbz	w8, LBB0_17
; %bb.9:
	mov	w24, #0
	mov	x22, x20
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w23, w20, w22
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x20, #1]!
	bl	_IS_DIR_SEPARATOR
	add	w23, w23, #1
	cbnz	x0, LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_save_string
	sxtw	x8, w24
	add	x8, x8, #1
	str	x0, [x21, w24, sxtw #3]
	mov	x24, x8
	mov	x22, x20
	cbnz	x0, LBB0_11
; %bb.16:
	str	xzr, [x21, x8, lsl #3]
	b	LBB0_23
LBB0_17:
	mov	w24, #0
	mov	x22, x20
LBB0_18:
	sub	x1, x20, x22
	cmp	x1, #1
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_save_string
	str	x0, [x21, w24, sxtw #3]
	add	w8, w24, #1
	mov	x24, x8
LBB0_20:
	add	x8, x21, w24, sxtw #3
	str	xzr, [x8]
	ldur	x8, [x8, #-8]
	cbz	x8, LBB0_23
; %bb.21:
	cbz	x19, LBB0_24
; %bb.22:
	str	w24, [x19]
	b	LBB0_24
LBB0_23:
	mov	x0, x21
	bl	_free_split_directories
	mov	x21, #0
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_split_directories
.subsections_via_symbols
