	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_dir
_install_dir:                           ## @install_dir
	.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, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	%rdi, %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	%r13b, (%r15)
	testb	%r13b, %r13b
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movb	(%r15), %r13b
	testb	%r13b, %r13b
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rbx, %r15
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$47, %r13b
	jne	LBB0_16
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%r15)
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r12), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	notb	%r14b
	testb	%al, %r14b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_err
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r12), %rax
	movb	$1, %r14b
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_err
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_errx
	jmp	LBB0_15
LBB0_17:
	movq	_dounpriv@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.18:
	movq	_gid@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	_uid@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	cmpq	$-1, %rdx
	jne	LBB0_20
## %bb.19:
	cmpq	$-1, %rsi
	je	LBB0_22
LBB0_20:
	movq	%rbx, %rdi
	callq	_chown
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%r15), %rsi
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_warn
LBB0_22:
	movq	_mode@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_chmod
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movslq	(%r14), %rsi
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_warn
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_metadata_log
	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	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stat %s"

	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"mkdir %s"

	.comm	_verbose,8,3                    ## @verbose
L_.str.2:                               ## @.str.2
	.asciz	"install: mkdir %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s exists but is not a directory"

	.comm	_dounpriv,4,2                   ## @dounpriv
	.comm	_gid,8,3                        ## @gid
	.comm	_uid,8,3                        ## @uid
L_.str.4:                               ## @.str.4
	.asciz	"chown %u:%u %s"

	.comm	_mode,4,2                       ## @mode
L_.str.5:                               ## @.str.5
	.asciz	"chmod %o %s"

L_.str.6:                               ## @.str.6
	.asciz	"dir"

	.no_dead_strip	_install_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_dir
_install_dir:                           ; @install_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ENOENT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ENOENT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EX_OSERR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EX_OSERR@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _EEXIST@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EEXIST@GOTPAGEOFF]
Lloh10:
	adrp	x28, _verbose@GOTPAGE
Lloh11:
	ldr	x28, [x28, _verbose@GOTPAGEOFF]
	mov	x23, x0
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_16
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w21, [x23]
	cbz	w21, LBB0_17
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldrb	w21, [x23]
	cbz	w21, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x19
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #47
	b.ne	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	strb	wzr, [x23]
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbz	x0, #63, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w8, eq
	bic	w8, w8, w22
	tbnz	w8, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x26]
	mov	x1, x20
	mov	x2, x19
	bl	_err
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x19
	mov	w1, #493
	bl	_mkdir
	tbz	x0, #63, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x24]
	ldr	x9, [x27]
	mov	w22, #1
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_errx
	b	LBB0_2
LBB0_17:
Lloh18:
	adrp	x8, _dounpriv@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dounpriv@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbnz	w8, LBB0_23
; %bb.18:
Lloh21:
	adrp	x20, _gid@GOTPAGE
Lloh22:
	ldr	x20, [x20, _gid@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh23:
	adrp	x21, _uid@GOTPAGE
Lloh24:
	ldr	x21, [x21, _uid@GOTPAGEOFF]
	ldr	x1, [x21]
	cmn	x2, #1
	ccmn	x1, #1, #0, eq
	b.eq	LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_chown
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x1, [x21]
	ldr	x2, [x20]
	str	x19, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
LBB0_21:
Lloh27:
	adrp	x20, _mode@GOTPAGE
Lloh28:
	ldr	x20, [x20, _mode@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_chmod
	cbz	x0, LBB0_23
; %bb.22:
	ldrsw	x1, [x20]
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_warn
LBB0_23:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_metadata_log
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stat %s"

	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"mkdir %s"

	.comm	_verbose,8,3                    ; @verbose
l_.str.2:                               ; @.str.2
	.asciz	"install: mkdir %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s exists but is not a directory"

	.comm	_dounpriv,4,2                   ; @dounpriv
	.comm	_gid,8,3                        ; @gid
	.comm	_uid,8,3                        ; @uid
l_.str.4:                               ; @.str.4
	.asciz	"chown %u:%u %s"

	.comm	_mode,4,2                       ; @mode
l_.str.5:                               ; @.str.5
	.asciz	"chmod %o %s"

l_.str.6:                               ; @.str.6
	.asciz	"dir"

	.no_dead_strip	_install_dir
.subsections_via_symbols
