	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_dir_read                   ## -- Begin function isc_dir_read
	.p2align	4, 0x90
_isc_dir_read:                          ## @isc_dir_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_VALID_DIR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_REQUIRE
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.4:
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_5
LBB0_6:
	movq	(%rbx), %rdi
	leaq	16(%rbx), %rsi
	callq	_FindNextFile
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_NO_MORE_FILES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_ISC_R_NOMORE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movl	8(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_strcpy
	movl	8(%rbx), %edi
	callq	_strlen
	movl	%eax, 12(%rbx)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_ISC_R_UNEXPECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_ISC_FALSE,8,3                  ## @ISC_FALSE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ERROR_NO_MORE_FILES,8,3        ## @ERROR_NO_MORE_FILES
	.comm	_ISC_R_NOMORE,4,2               ## @ISC_R_NOMORE
	.comm	_ISC_R_UNEXPECTED,4,2           ## @ISC_R_UNEXPECTED
	.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_read                   ; -- Begin function isc_dir_read
	.p2align	2
_isc_dir_read:                          ; @isc_dir_read
	.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
	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, ne
LBB0_2:
	bl	_REQUIRE
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_6
LBB0_4:
	mov	x1, x19
	ldr	x0, [x1], #16
	bl	_FindNextFile
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	bl	_GetLastError
Lloh9:
	adrp	x8, _ERROR_NO_MORE_FILES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR_NO_MORE_FILES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ISC_R_UNEXPECTED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISC_R_UNEXPECTED@GOTPAGEOFF]
Lloh14:
	adrp	x10, _ISC_R_NOMORE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ISC_R_NOMORE@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, eq
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_strcpy
	ldr	w0, [x19, #8]
	bl	_strlen
	str	w0, [x19, #12]
Lloh16:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_ISC_FALSE,8,3                  ; @ISC_FALSE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ERROR_NO_MORE_FILES,8,3        ; @ERROR_NO_MORE_FILES
	.comm	_ISC_R_NOMORE,4,2               ; @ISC_R_NOMORE
	.comm	_ISC_R_UNEXPECTED,4,2           ; @ISC_R_UNEXPECTED
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
