	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkpath
_mkpath:                                ## @mkpath
	.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	%rdi, %r12
	leaq	L_.str(%rip), %r14
	movq	%rdi, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strspn
	movslq	%eax, %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	movslq	%eax, %r13
	movzbl	(%r13,%rbx), %r15d
	movb	$0, (%r13,%rbx)
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	%r15b, %r15b
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%r13, %rbx
	movb	$47, (%rbx)
	movq	%rbx, %r13
	jmp	LBB0_1
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_paxwarn
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%r12, %rcx
	callq	_syswarn
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	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	"/"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.no_dead_strip	_mkpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkpath
_mkpath:                                ; @mkpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	w22, #47
Lloh2:
	adrp	x23, _errno@GOTPAGE
Lloh3:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ENOENT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
	mov	x21, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_strspn
	add	x21, x21, w0, sxtw
	mov	x0, x21
	mov	x1, x20
	bl	_strcspn
	add	x21, x21, w0, sxtw
	ldrb	w25, [x21]
	strb	wzr, [x21]
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #511
	bl	_mkdir
	cbz	x0, LBB0_5
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	w25, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w22, [x21]
	b	LBB0_1
LBB0_7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_paxwarn
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x3, x19
	bl	_syswarn
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.no_dead_strip	_mkpath
.subsections_via_symbols
