	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_dir_createunique           ## -- Begin function isc_dir_createunique
	.p2align	4, 0x90
_isc_dir_createunique:                  ## @isc_dir_createunique
	.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, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_REQUIRE
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	cltq
	leaq	(%r15,%rax), %r13
	leaq	(%r15,%rax), %rcx
	decq	%rcx
	cmpq	%r15, %rcx
	jb	LBB0_5
## %bb.1:
	cmpb	$88, -1(%r15,%rax)
	jne	LBB0_5
## %bb.2:
	addq	%r15, %rax
	addq	$-2, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rcx
	imulq	$1717986919, %rcx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rbx
	addl	%edx, %ebx
	leal	(%rbx,%rbx), %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	addb	$48, %cl
	movb	%cl, 1(%rax)
	leaq	-1(%rax), %r13
	cmpq	%r15, %rax
	jb	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$88, (%rax)
	movq	%r13, %rax
	je	LBB0_3
LBB0_4:
	addq	$2, %r13
LBB0_5:
	movq	_EEXIST@GOTPCREL(%rip), %rbx
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r15, %rdi
	callq	_mkdir
	movq	%r15, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_chmod
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	(%rbx), %rdi
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	(%r12), %eax
	cmpb	$122, %al
	jne	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movb	$97, (%r12)
	movzbl	1(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_10
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$97, %al
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incb	%al
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r12)
	testb	%al, %al
	jne	LBB0_6
LBB0_15:
	movq	(%rbx), %rdi
	movq	_errno@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
LBB0_16:
	cmpl	$-1, %r14d
	je	LBB0_20
LBB0_17:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isc__errno2result              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_dir_createunique           ; -- Begin function isc_dir_createunique
	.p2align	2
_isc_dir_createunique:                  ; @isc_dir_createunique
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
	bl	_getpid
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x21, x19, x8
	mov	x10, x21
	ldrb	w9, [x10, #-1]!
	cmp	x10, x19
	b.lo	LBB0_6
; %bb.1:
	cmp	w9, #88
	b.ne	LBB0_6
; %bb.2:
	add	x8, x8, x19
	sub	x10, x8, #2
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mov	w9, #10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	smull	x11, w20, w8
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	msub	w12, w11, w9, w20
	add	w12, w12, #48
	strb	w12, [x10, #1]
	sub	x12, x10, #1
	cmp	x10, x19
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w13, [x10]
	mov	x10, x12
	mov	x20, x11
	cmp	w13, #88
	b.eq	LBB0_3
LBB0_5:
	add	x21, x12, #2
LBB0_6:
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x23, _EEXIST@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EEXIST@GOTPAGEOFF]
	mov	w24, #97
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x19
	bl	_mkdir
	mov	x0, x19
	mov	w1, #448
	bl	_chmod
	cbz	w0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x0
	ldr	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x21
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isdigit
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w8, [x25]
	cmp	w8, #122
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	strb	w24, [x25]
	ldrb	w8, [x25, #1]!
	cbnz	w8, LBB0_11
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #97
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w8, #1
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x25]
	tst	w8, #0xff
	b.ne	LBB0_7
LBB0_17:
	ldr	x0, [x23]
	str	x0, [x22]
LBB0_18:
	cmn	w20, #1
	b.eq	LBB0_20
LBB0_19:
Lloh4:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_isc__errno2result
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
