	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkdir_home_parents
_mkdir_home_parents:                    ## @mkdir_home_parents
	.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	%rsi, %rbx
	movl	%edi, %r14d
	cmpb	$47, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	incq	%rbx
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_fstatat
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movl	-56(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_27
## %bb.4:
	movq	_EX_OSFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_5:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_7:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	movb	$0, (%rax)
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_asprintf
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_11
## %bb.10:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	movq	-48(%rbp), %rsi
LBB0_11:
	movq	__DEF_DIRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_mkdirat
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_fchownat
	movq	-48(%rbp), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_symlinkat
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_15:
	movq	%rbx, -48(%rbp)
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_fstatat
	cmpl	$-1, %eax
	je	LBB0_16
LBB0_22:
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_fstatat
	cmpl	$-1, %eax
	jne	LBB0_26
## %bb.23:
	movq	__DEF_DIRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_mkdirat
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.24:
	movq	_EX_OSFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_err
LBB0_25:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_fchownat
LBB0_26:
	movq	%rbx, %rdi
	callq	_free
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-48(%rbp), %rdi
	incq	%rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	leaq	-56(%rbp), %r15
	movq	__DEF_DIRMODE@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax
	movb	$47, (%rax)
	movq	-48(%rbp), %rdi
	incq	%rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, (%rax)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_fstatat
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_mkdirat
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_EX_OSFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_err
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid base directory for home '%s'"

	.comm	_EX_OSFILE,4,2                  ## @EX_OSFILE
L_.str.1:                               ## @.str.1
	.asciz	"root home `/%s' is not a directory"

	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"usr/%s"

	.comm	__DEF_DIRMODE,4,2               ## @_DEF_DIRMODE
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.4:                               ## @.str.4
	.asciz	"'%s' (root home parent) is not a directory"

	.no_dead_strip	_mkdir_home_parents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkdir_home_parents
_mkdir_home_parents:                    ; @mkdir_home_parents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	ldrb	w8, [x1]
	cmp	w8, #47
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
	add	x20, x20, #1
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_fstatat
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [sp, #24]
	bl	_S_ISDIR
	cbnz	x0, LBB0_21
; %bb.4:
Lloh5:
	adrp	x8, _EX_OSFILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EX_OSFILE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_5:
	mov	x0, x20
	bl	_strdup
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_7:
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	str	x0, [sp, #16]
	cbz	x0, LBB0_20
; %bb.8:
	strb	wzr, [x0]
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_15
; %bb.9:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #16
	mov	x2, x20
	bl	_asprintf
	ldr	x1, [sp, #16]
	cbnz	x1, LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	ldr	x1, [sp, #16]
LBB0_11:
Lloh22:
	adrp	x8, __DEF_DIRMODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, __DEF_DIRMODE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mkdirat
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _EEXIST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_13:
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_fchownat
	ldr	x0, [sp, #16]
	mov	x1, x19
	mov	x2, x20
	bl	_symlinkat
LBB0_14:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_15:
	str	x20, [sp, #16]
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_fstatat
	cmn	w0, #1
	b.eq	LBB0_22
LBB0_16:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_fstatat
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.17:
Lloh31:
	adrp	x8, __DEF_DIRMODE@GOTPAGE
Lloh32:
	ldr	x8, [x8, __DEF_DIRMODE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mkdirat
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.18:
Lloh34:
	adrp	x8, _EX_OSFILE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EX_OSFILE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_err
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_fchownat
LBB0_20:
	mov	x0, x20
	bl	_free
LBB0_21:
	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
	add	sp, sp, #96
	ret
LBB0_22:
	ldr	x8, [sp, #16]
	add	x0, x8, #1
	mov	w22, #47
	mov	w1, #47
	bl	_strchr
	str	x0, [sp, #16]
	cbz	x0, LBB0_16
; %bb.23:
Lloh39:
	adrp	x23, __DEF_DIRMODE@GOTPAGE
Lloh40:
	ldr	x23, [x23, __DEF_DIRMODE@GOTPAGEOFF]
Lloh41:
	adrp	x24, _EX_OSFILE@GOTPAGE
Lloh42:
	ldr	x24, [x24, _EX_OSFILE@GOTPAGEOFF]
Lloh43:
	adrp	x21, l_.str.4@PAGE
Lloh44:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [sp, #16]
	strb	w22, [x8]
	ldr	x8, [sp, #16]
	add	x0, x8, #1
	mov	w1, #47
	bl	_strchr
	str	x0, [sp, #16]
	cbz	x0, LBB0_16
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x0]
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_fstatat
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_mkdirat
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_err
	b	LBB0_24
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid base directory for home '%s'"

	.comm	_EX_OSFILE,4,2                  ; @EX_OSFILE
l_.str.1:                               ; @.str.1
	.asciz	"root home `/%s' is not a directory"

	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"usr/%s"

	.comm	__DEF_DIRMODE,4,2               ; @_DEF_DIRMODE
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.4:                               ; @.str.4
	.asciz	"'%s' (root home parent) is not a directory"

	.no_dead_strip	_mkdir_home_parents
.subsections_via_symbols
