	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_ftp_dirstream_read
_php_ftp_dirstream_read:                ## @php_ftp_dirstream_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpq	$8, %rdx
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_php_stream_eof
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.2:
	movq	(%r15), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_php_stream_get_line
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.3:
	movq	(%r15), %rdi
	movq	-32(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_php_basename
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ZSTR_LEN
	leaq	-1(%rax), %rsi
	movl	$8, %edi
	callq	_MIN
	movq	%rax, -32(%rbp)
	movq	(%r15), %rbx
	movq	%r14, %rdi
	callq	_ZSTR_VAL
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_memcpy
	movq	(%r15), %rax
	movq	-32(%rbp), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_zend_string_release_ex
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movabsq	$4294977024, %rcx               ## imm = 0x100002600
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movzbl	-1(%rdx,%rax), %esi
	cmpq	$32, %rsi
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	btq	%rsi, %rcx
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%rax
	movq	%rax, -32(%rbp)
	movb	$0, (%rdx,%rax)
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	movl	$8, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_php_ftp_dirstream_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_ftp_dirstream_read
_php_ftp_dirstream_read:                ; @php_ftp_dirstream_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	x2, #8
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_php_stream_eof
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_10
LBB0_3:
	ldr	x1, [x19]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_php_stream_get_line
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x19]
	ldr	x1, [sp, #8]
	mov	x2, #0
	mov	w3, #0
	bl	_php_basename
	mov	x21, x0
	bl	_ZSTR_LEN
	sub	x1, x0, #1
	mov	w20, #8
	mov	w0, #8
	bl	_MIN
	str	x0, [sp, #8]
	ldr	x22, [x19]
	mov	x0, x21
	bl	_ZSTR_VAL
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x22
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	mov	x0, x21
	mov	w1, #0
	bl	_zend_string_release_ex
	ldr	x11, [sp, #8]
	cbz	x11, LBB0_10
; %bb.5:
	mov	w8, #1
	mov	x9, #9728
	movk	x9, #1, lsl #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	sub	x11, x11, #1
	ldrb	w12, [x10, x11]
	cmp	w12, #32
	lsl	x12, x8, x12
	and	x12, x12, x9
	ccmp	x12, #0, #4, ls
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x11, [sp, #8]
	strb	wzr, [x10, x11]
	ldr	x11, [sp, #8]
	cbnz	x11, LBB0_6
LBB0_8:
	mov	w20, #8
	b	LBB0_10
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_php_ftp_dirstream_read
.subsections_via_symbols
