	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readdir                        ## -- Begin function readdir
	.p2align	4, 0x90
_readdir:                               ## @readdir
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_4
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movl	44(%rbx), %edi
	leaq	40(%rbx), %rsi
	callq	_FindNextFileW
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movl	40(%rbx), %edi
	movq	_PHP_WIN32_CP_IGNORE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_php_win32_cp_conv_w_to_any
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	leaq	16(%rbx), %r14
	movl	32(%rbx), %edi
	movq	-32(%rbp), %rdx
	incq	%rdx
	movq	%rax, %rsi
	callq	_memmove
	movq	%r15, %rdi
	callq	_free
	movzwl	-32(%rbp), %eax
	movw	%ax, 16(%rbx)
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	movl	$1, 20(%rbx)
	movq	%rax, 24(%rbx)
	jmp	LBB0_11
LBB0_9:
	movl	$1, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_WIN32_CP_IGNORE_LEN,4,2    ## @PHP_WIN32_CP_IGNORE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readdir                        ; -- Begin function readdir
	.p2align	2
_readdir:                               ; @readdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #44]
	add	x1, x19, #40
	bl	_FindNextFileW
	cbz	x0, LBB0_8
LBB0_6:
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _PHP_WIN32_CP_IGNORE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHP_WIN32_CP_IGNORE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_php_win32_cp_conv_w_to_any
	cbz	x0, LBB0_2
; %bb.7:
	mov	x20, x0
	ldr	w0, [x19, #32]
	ldr	x8, [sp, #8]
	add	x2, x8, #1
	mov	x1, x20
	bl	_memmove
	mov	x0, x20
	bl	_free
	ldr	x8, [sp, #8]
	strh	w8, [x19, #16]!
	ldur	x8, [x19, #-8]
	add	x8, x8, #1
	stur	x8, [x19, #-8]
	mov	w9, #1
	str	w9, [x19, #4]
	str	x8, [x19, #8]
	b	LBB0_3
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_WIN32_CP_IGNORE_LEN,4,2    ; @PHP_WIN32_CP_IGNORE_LEN
.subsections_via_symbols
