	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_directory
_start_directory:                       ## @start_directory
	.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	%rdi, %rbx
	callq	_VALID_DIR
	movl	%eax, %edi
	callq	_REQUIRE
	movq	(%rbx), %rax
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_REQUIRE
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	24(%rbx), %edi
	leaq	20(%rbx), %rsi
	callq	_FindFirstFile
	movq	%rax, (%rbx)
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ISC_R_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	20(%rbx), %edi
	callq	_strlen
	xorl	%edi, %edi
	cmpl	$4, %eax
	setb	%dil
	callq	_INSIST
	movl	16(%rbx), %edi
	movl	20(%rbx), %esi
	callq	_strcpy
	movl	16(%rbx), %edi
	callq	_strlen
	movl	%eax, 12(%rbx)
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_ISC_FALSE,4,2                  ## @ISC_FALSE
	.comm	_ISC_R_FAILURE,4,2              ## @ISC_R_FAILURE
	.comm	_ISC_TRUE,4,2                   ## @ISC_TRUE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_start_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_directory
_start_directory:                       ; @start_directory
	.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	x19, x0
	bl	_VALID_DIR
	bl	_REQUIRE
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_REQUIRE
Lloh2:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x19, #24]
	add	x1, x19, #20
	bl	_FindFirstFile
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ISC_R_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISC_R_FAILURE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_strlen
	cmp	w0, #4
	cset	w0, lo
	bl	_INSIST
	ldp	w0, w1, [x19, #16]
	bl	_strcpy
	ldr	w0, [x19, #16]
	bl	_strlen
Lloh7:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
Lloh10:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_ISC_FALSE,4,2                  ; @ISC_FALSE
	.comm	_ISC_R_FAILURE,4,2              ; @ISC_R_FAILURE
	.comm	_ISC_TRUE,4,2                   ; @ISC_TRUE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_start_directory
.subsections_via_symbols
