	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_dir
_create_dir:                            ## @create_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %rbx
	incq	%rax
	testq	%rbx, %rbx
	cmoveq	%r15, %rax
	movb	(%rax), %cl
	testb	%cl, %cl
	je	LBB0_5
## %bb.1:
	cmpb	$46, %cl
	jne	LBB0_7
## %bb.2:
	movb	1(%rax), %cl
	testb	%cl, %cl
	je	LBB0_5
## %bb.3:
	cmpb	$46, %cl
	jne	LBB0_7
## %bb.4:
	cmpb	$0, 2(%rax)
	je	LBB0_5
LBB0_7:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_la_stat
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_16
## %bb.14:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_16
## %bb.15:
	addq	$8, %r14
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_27
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.6:
	movb	$0, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_create_dir
	movb	$47, (%rbx)
	jmp	LBB0_29
LBB0_8:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_9
LBB0_25:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_16:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	movb	$0, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_create_dir
	movb	$47, (%rbx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
LBB0_18:
	movq	_DEFAULT_DIR_MODE@GOTPCREL(%rip), %rax
	movl	4(%r14), %r12d
	notl	%r12d
	andl	(%rax), %r12d
	movq	_MINIMUM_DIR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	%r12d, %ebx
	movq	_MAXIMUM_DIR_MODE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_19
## %bb.23:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_la_stat
	testq	%rax, %rax
	je	LBB0_24
LBB0_26:
	addq	$8, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_27
LBB0_9:
	movq	_ARCHIVE_EXTRACT_NO_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.10:
	addq	$8, %r14
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_27
LBB0_19:
	cmpl	%r12d, %ebx
	je	LBB0_25
## %bb.20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_new_fixup
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	_TODO_MODE_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
	movl	%r12d, (%rax)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_24:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_26
LBB0_11:
	movq	%r15, %rdi
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	addq	$8, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdx
LBB0_27:
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
LBB0_29:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_EXTRACT_NO_OVERWRITE,4,2 ## @ARCHIVE_EXTRACT_NO_OVERWRITE
	.comm	_EEXIST,8,3                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't create directory '%s'"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Can't create directory '%s': Conflicting file cannot be removed"

	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
L_.str.2:                               ## @.str.2
	.asciz	"Can't test directory '%s'"

	.comm	_DEFAULT_DIR_MODE,4,2           ## @DEFAULT_DIR_MODE
	.comm	_MINIMUM_DIR_MODE,4,2           ## @MINIMUM_DIR_MODE
	.comm	_MAXIMUM_DIR_MODE,4,2           ## @MAXIMUM_DIR_MODE
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_TODO_MODE_BASE,4,2             ## @TODO_MODE_BASE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to create dir '%s'"

	.no_dead_strip	_create_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_dir
_create_dir:                            ; @create_dir
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strrchr
	mov	x21, x0
	cmp	x0, #0
	csinc	x8, x19, x0, eq
	ldrb	w9, [x8]
	cbz	w9, LBB0_12
; %bb.1:
	cmp	w9, #46
	b.ne	LBB0_5
; %bb.2:
	ldrb	w9, [x8, #1]
	cbz	w9, LBB0_12
; %bb.3:
	cmp	w9, #46
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_12
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_la_stat
	cbz	x0, LBB0_14
; %bb.6:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ENOTDIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOTDIR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_16
; %bb.7:
	cbz	x21, LBB0_9
; %bb.8:
	strb	wzr, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_create_dir
	mov	w8, #47
	strb	w8, [x21]
Lloh9:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
LBB0_9:
Lloh12:
	adrp	x8, _DEFAULT_DIR_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFAULT_DIR_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w22, w8, w9
Lloh15:
	adrp	x8, _MINIMUM_DIR_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MINIMUM_DIR_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w22, w8
Lloh18:
	adrp	x9, _MAXIMUM_DIR_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAXIMUM_DIR_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w21, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_mkdir
	cbz	x0, LBB0_19
; %bb.10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_la_stat
	cbz	x0, LBB0_22
LBB0_11:
	add	x0, x20, #8
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_12:
	cbz	x21, LBB0_15
; %bb.13:
	strb	wzr, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_create_dir
	mov	w8, #47
	strb	w8, [x21]
	b	LBB0_27
LBB0_14:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_17
LBB0_15:
Lloh26:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_26
LBB0_16:
	add	x0, x20, #8
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_17:
	ldr	w8, [x20]
Lloh30:
	adrp	x9, _ARCHIVE_EXTRACT_NO_OVERWRITE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ARCHIVE_EXTRACT_NO_OVERWRITE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.18:
	add	x0, x20, #8
Lloh33:
	adrp	x8, _EEXIST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh35:
	ldr	x1, [x8]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_25
LBB0_19:
	cmp	w21, w22
	b.eq	LBB0_15
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_new_fixup
	cbz	x0, LBB0_28
; %bb.21:
Lloh38:
	adrp	x8, _TODO_MODE_BASE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TODO_MODE_BASE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	stp	w22, w8, [x0]
	b	LBB0_15
LBB0_22:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbnz	x0, LBB0_15
	b	LBB0_11
LBB0_23:
	mov	x0, x19
	bl	_unlink
	cbz	x0, LBB0_9
; %bb.24:
	add	x0, x20, #8
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	x1, [x8]
Lloh44:
	adrp	x2, l_.str.1@PAGE
Lloh45:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_25:
	mov	x3, x19
	bl	_archive_set_error
Lloh46:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
LBB0_27:
	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_28:
Lloh48:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_EXTRACT_NO_OVERWRITE,4,2 ; @ARCHIVE_EXTRACT_NO_OVERWRITE
	.comm	_EEXIST,8,3                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't create directory '%s'"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Can't create directory '%s': Conflicting file cannot be removed"

	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
l_.str.2:                               ; @.str.2
	.asciz	"Can't test directory '%s'"

	.comm	_DEFAULT_DIR_MODE,4,2           ; @DEFAULT_DIR_MODE
	.comm	_MINIMUM_DIR_MODE,4,2           ; @MINIMUM_DIR_MODE
	.comm	_MAXIMUM_DIR_MODE,4,2           ; @MAXIMUM_DIR_MODE
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_TODO_MODE_BASE,4,2             ; @TODO_MODE_BASE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to create dir '%s'"

	.no_dead_strip	_create_dir
.subsections_via_symbols
