	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_make_dirstream
_phar_make_dirstream:                   ## @phar_make_dirstream
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_strlen
	movq	%rax, %r13
	callq	_ALLOC_HASHTABLE
	movl	$64, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_zend_hash_init
	cmpb	$47, (%r15)
	jne	LBB0_4
## %bb.1:
	cmpq	$1, %r13
	jne	LBB0_4
## %bb.2:
	cmpq	$0, (%r14)
	jne	LBB0_6
	jmp	LBB0_3
LBB0_4:
	cmpq	$5, %r13
	jb	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	movq	%r15, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_zend_hash_internal_pointer_reset
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_zend_hash_has_more_elements
	cmpq	%rax, %rbx
	jne	LBB0_7
LBB0_30:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_zend_hash_has_more_elements
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_efree
	cmpq	%rbx, %r14
	je	LBB0_32
## %bb.31:
	movq	_phar_compare_dir_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_zend_hash_sort
LBB0_32:
	movq	_phar_dir_ops@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
	xorl	%edx, %edx
	callq	_php_stream_alloc
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	1(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	notq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_zend_hash_move_forward
	cmpq	%rax, %rbx
	jne	LBB0_30
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_zend_hash_has_more_elements
	cmpq	%rax, %rbx
	je	LBB0_30
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HASH_KEY_NON_EXISTENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-92(%rbp), %rdx
	callq	_zend_hash_get_current_key
	cmpq	%rax, %rbx
	je	LBB0_30
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_LEN
	movq	%rax, %r12
	movq	%rax, %rbx
	subq	%r13, %rbx
	ja	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r13, %r12
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$47, (%r15)
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$5, %r12
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movl	$5, %edx
	movq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rax, %rdi
	movl	$47, %esi
	movq	%r12, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rax, %r15
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rbx, %rdx
	subq	%rax, %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	subq	%rax, %rbx
	movq	%r13, %rax
	addq	%rbx, %rax
	movq	%rbx, %r12
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	cmpb	$47, (%rax,%r13)
	jne	LBB0_13
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%rax, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax), %rdi
	leaq	-1(%rbx), %r12
	movl	$47, %esi
	movq	%r12, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	%rbx, %r15
	leaq	(%r15,%r13), %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%r13, %rcx
	movq	%rax, %r13
	leaq	(%rbx,%rcx), %rsi
	incq	%rsi
	addq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r13, %rax
	addq	%r15, %rax
	movq	%r15, %r12
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	callq	_ZSTR_VAL
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movb	$0, (%r13,%r12)
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%r13, %rcx
	movq	%rax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	incq	%rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_memcpy
	movq	%r13, %rax
	addq	%r12, %rax
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	movb	$0, (%rax)
	testq	%r12, %r12
	je	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_phar_add_empty
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_efree
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_zend_hash_move_forward
	cmpq	%rax, %rbx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
	jmp	LBB0_30
LBB0_3:
	movq	%r15, %rdi
	callq	_efree
	movq	_phar_dir_ops@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rcx
	xorl	%edx, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_php_stream_alloc               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".phar"

	.comm	_phar_dir_ops,4,2               ## @phar_dir_ops
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_HASH_KEY_NON_EXISTENT,8,3      ## @HASH_KEY_NON_EXISTENT
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_phar_compare_dir_name,4,2      ## @phar_compare_dir_name
	.no_dead_strip	_phar_make_dirstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_make_dirstream
_phar_make_dirstream:                   ; @phar_make_dirstream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_strlen
	mov	x21, x0
	bl	_ALLOC_HASHTABLE
	mov	w1, #64
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_zend_hash_init
	ldrb	w8, [x19]
	cmp	w8, #47
	ccmp	x21, #1, #0, eq
	b.eq	LBB0_4
; %bb.1:
	cmp	x21, #5
	b.lo	LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_efree
Lloh2:
	adrp	x0, _phar_dir_ops@GOTPAGE
Lloh3:
	ldr	x0, [x0, _phar_dir_ops@GOTPAGEOFF]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_php_stream_alloc
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
LBB0_5:
	mov	x0, x20
	bl	_zend_hash_internal_pointer_reset
Lloh6:
	adrp	x26, _FAILURE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FAILURE@GOTPAGEOFF]
	ldr	x22, [x26]
	mov	x0, x20
	bl	_zend_hash_has_more_elements
	cmp	x22, x0
	b.eq	LBB0_28
; %bb.6:
	add	x27, x21, #1
	mvn	x8, x21
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh8:
	adrp	x28, _HASH_KEY_NON_EXISTENT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _HASH_KEY_NON_EXISTENT@GOTPAGEOFF]
Lloh10:
	adrp	x22, _SUCCESS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SUCCESS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x28]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x20
	bl	_zend_hash_get_current_key
	cmp	x23, x0
	b.eq	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_LEN
	mov	x23, x0
	subs	x24, x0, x21
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, #0
	ccmp	x23, x21, #0, ne
	b.lo	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	x1, x19
	mov	x2, x21
	bl	_strncmp
	cbz	w0, LBB0_26
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x23, #5
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_26
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	w1, #47
	mov	x2, x23
	bl	_memchr
	cbz	x0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	sub	x0, x25, x0
	mov	w1, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x24, x0
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	x23, x0
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	sub	x2, x25, x0
	mov	x0, x24
	mov	x1, x23
	bl	_memcpy
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	sub	x23, x25, x0
	b	LBB0_23
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	x1, x19
	mov	x2, x21
	bl	_memcmp
	cbnz	x0, LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	ldrb	w8, [x0, x21]
	cmp	w8, #47
	b.ne	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	x25, x0
	add	x0, x0, x27
	sub	x23, x24, #1
	mov	w1, #47
	mov	x2, x23
	bl	_memchr
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x23, x0, x25
	add	x0, x23, x21
	mov	w1, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x24, x0
	add	x8, x25, x21
	add	x1, x8, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x23, x8
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	w1, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x24, x0
	ldr	x0, [sp, #24]
	bl	_ZSTR_VAL
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x24, x23]
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	w1, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x24, x0
	add	x8, x25, x21
	add	x1, x8, #1
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x23
	bl	_memcpy
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x24, x23
	strb	wzr, [x8]
	cbz	x23, LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x24
	mov	x2, x23
	bl	_phar_add_empty
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_efree
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [x22]
	mov	x0, x20
	bl	_zend_hash_move_forward
	cmp	x23, x0
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [x26]
	mov	x0, x20
	bl	_zend_hash_has_more_elements
	cmp	x23, x0
	b.ne	LBB0_7
LBB0_28:
	ldr	x21, [x26]
	bl	_zend_hash_has_more_elements
	mov	x20, x0
	mov	x0, x19
	bl	_efree
	cmp	x21, x20
	b.eq	LBB0_30
; %bb.29:
Lloh14:
	adrp	x8, _phar_compare_dir_name@GOTPAGE
Lloh15:
	ldr	x8, [x8, _phar_compare_dir_name@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_zend_hash_sort
LBB0_30:
Lloh17:
	adrp	x0, _phar_dir_ops@GOTPAGE
Lloh18:
	ldr	x0, [x0, _phar_dir_ops@GOTPAGEOFF]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_php_stream_alloc
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".phar"

	.comm	_phar_dir_ops,4,2               ; @phar_dir_ops
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_HASH_KEY_NON_EXISTENT,8,3      ; @HASH_KEY_NON_EXISTENT
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_phar_compare_dir_name,4,2      ; @phar_compare_dir_name
	.no_dead_strip	_phar_make_dirstream
.subsections_via_symbols
