	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_dir_open                   ## -- Begin function isc_dir_open
	.p2align	4, 0x90
_isc_dir_open:                          ## @isc_dir_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_REQUIRE
	movq	%r14, %rdi
	callq	_VALID_DIR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_strlen
	addl	$-6, %eax
	cmpl	$-10, %eax
	ja	LBB0_4
## %bb.9:
	movq	_ISC_R_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rbx, %rax
	cmpq	%rax, 8(%r14)
	jae	LBB0_8
## %bb.5:
	movb	-1(%rax), %cl
	cmpb	$58, %cl
	je	LBB0_8
## %bb.6:
	cmpb	$92, %cl
	je	LBB0_8
## %bb.7:
	movb	$92, (%rax)
	incq	%rax
LBB0_8:
	movw	$42, (%rax)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_start_directory                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_ISC_R_NOSPACE,4,2              ## @ISC_R_NOSPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_dir_open                   ; -- Begin function isc_dir_open
	.p2align	2
_isc_dir_open:                          ; @isc_dir_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_REQUIRE
	mov	x0, x19
	bl	_VALID_DIR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
LBB0_2:
	bl	_REQUIRE
	mov	x0, x20
	bl	_strlen
	sub	w8, w0, #6
	cmn	w8, #10
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ISC_R_NOSPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_R_NOSPACE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_strcpy
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.hs	LBB0_8
; %bb.5:
	ldurb	w9, [x8, #-1]
	cmp	w9, #58
	b.eq	LBB0_8
; %bb.6:
	cmp	w9, #92
	b.eq	LBB0_8
; %bb.7:
	mov	w9, #92
	strb	w9, [x8], #1
LBB0_8:
	mov	w9, #42
	strh	w9, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_start_directory
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_ISC_R_NOSPACE,4,2              ; @ISC_R_NOSPACE
.subsections_via_symbols
