	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_6
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	leaq	L_.str(%rip), %r15
LBB0_4:
	movq	(%rbx), %rdi
	callq	_strerror
	movq	%r15, %rdi
	jmp	LBB0_11
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	_sstrdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	cltq
	cmpb	$47, -1(%rax,%rbx)
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_10:
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ELOG
LBB0_12:
	movl	$-1, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movb	$0, (%rax)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mkdirp
	movl	$-1, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mkdirp
	movl	%eax, %r12d
LBB0_17:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_18:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.19:
	leaq	L_.str.1(%rip), %r15
	movq	_ENOTDIR@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_20:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stat(%s) failed: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"mkdir(%s) failed: %s\n"

	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_ENOENT,8,3                     ## @ENOENT
.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:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_mkdir
	cbz	x0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _EEXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbz	x0, LBB0_15
; %bb.3:
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_sstrdup
	mov	x21, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w8, [x8, #-1]
	mov	x0, x21
	cmp	w8, #47
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_strlen
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-1]
	mov	x0, x21
	b	LBB0_7
LBB0_9:
	bl	_strerror
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	mov	x1, x19
	bl	_ELOG
LBB0_11:
	mov	w19, #-1
	b	LBB0_17
LBB0_12:
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_18
; %bb.13:
	strb	wzr, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_mkdirp
	cbz	w0, LBB0_20
; %bb.14:
	mov	w19, #-1
	b	LBB0_21
LBB0_15:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_19
LBB0_16:
	mov	w19, #0
LBB0_17:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_18:
	mov	x0, x21
	bl	_free
	b	LBB0_11
LBB0_19:
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh17:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
	b	LBB0_4
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_mkdirp
	mov	x19, x0
LBB0_21:
	mov	x0, x21
	bl	_free
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stat(%s) failed: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"mkdir(%s) failed: %s\n"

	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_ENOENT,8,3                     ; @ENOENT
.subsections_via_symbols
