	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkdirp                         ## -- Begin function mkdirp
	.p2align	4, 0x90
_mkdirp:                                ## @mkdirp
	.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
	movl	%esi, %r15d
	callq	_simplify
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	$-1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_strchr
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	_F_OK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%rax)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, %rax
	jne	LBB0_5
LBB0_9:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_11:
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	cmpq	%r12, %rax
	je	LBB0_16
## %bb.12:
	movq	_EEXIST@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	cmpq	%r12, %rax
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movb	$47, (%rax)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	je	LBB0_15
	jmp	LBB0_17
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_18
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_F_OK,4,2                       ## @F_OK
	.comm	_EEXIST,8,3                     ## @EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkdirp                         ; -- Begin function mkdirp
	.p2align	2
_mkdirp:                                ; @mkdirp
	.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	x20, x1
	bl	_simplify
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
	mov	x1, x20
	bl	_mkdir
	cbz	x0, LBB0_17
; %bb.2:
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _ENOENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_strchr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
Lloh5:
	adrp	x23, _F_OK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _F_OK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x0]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x19
	b.ne	LBB0_4
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_mkdir
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _EEXIST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, x0
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.11:
	mov	w23, #47
Lloh10:
	adrp	x24, _EEXIST@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EEXIST@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x19, x0
	cmp	x8, x21
	b.eq	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	strb	w23, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mkdir
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_15:
	mov	w20, #-1
	b	LBB0_18
LBB0_16:
	mov	w20, #-1
	b	LBB0_19
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	bl	_free
LBB0_19:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_F_OK,4,2                       ; @F_OK
	.comm	_EEXIST,8,3                     ; @EEXIST
.subsections_via_symbols
