	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_directories
_create_directories:                    ## @create_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_xmallocz
	movl	%ebx, %esi
	movq	%rax, %rbx
	testl	%esi, %esi
	jle	LBB0_13
## %bb.1:
	movl	%esi, %r14d
	xorl	%r15d, %r15d
	movabsq	$4294967296, %rdi               ## imm = 0x100000000
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r15, %rax
	shlq	$32, %rax
	movslq	%r15d, %rdx
	movb	(%r12,%rdx), %cl
	movl	%r15d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%cl, (%rbx,%rdx)
	leaq	1(%rdx), %r15
	cmpq	%r14, %r15
	jge	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movzbl	1(%r12,%rdx), %ecx
	addq	%rdi, %rax
	incl	%r13d
	movq	%r15, %rdx
	cmpb	$47, %cl
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	sarq	$32, %rax
	movb	$0, (%rbx,%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_has_dirs_only_path
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_unlink_or_warn
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die_errno
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %r13d
	movabsq	$4294967296, %rdi               ## imm = 0x100000000
	jl	LBB0_2
LBB0_13:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create directory at '%s'"

	.no_dead_strip	_create_directories
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_directories
_create_directories:                    ; @create_directories
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_xmallocz
	mov	x22, x0
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x28, #0
	mov	w25, w20
	add	x26, x21, #1
	mov	x27, #4294967296
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	lsl	x8, x28, #32
	sxtw	x10, w28
	ldrb	w9, [x21, x10]
	mov	x24, x28
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strb	w9, [x22, x10]
	add	x28, x10, #1
	cmp	x28, x25
	b.ge	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldrb	w9, [x26, x10]
	add	x8, x8, x27
	add	w24, w24, #1
	mov	x10, x28
	cmp	w9, #47
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	x8, x8, #32
	strb	wzr, [x22, x8]
	ldr	w2, [x19, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_has_dirs_only_path
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #511
	bl	_mkdir
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _EEXIST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_unlink_or_warn
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #511
	bl	_mkdir
	cbz	x0, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_die_errno
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, w20
	b.lt	LBB0_2
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create directory at '%s'"

	.no_dead_strip	_create_directories
.subsections_via_symbols
