	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_tar_process_metadata
_phar_tar_process_metadata:             ## @phar_tar_process_metadata
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_php_stream_tell
	movq	%rax, %r14
	movq	(%r13), %rsi
	movl	$1, %edi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_php_stream_read
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	leaq	16(%r13), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_phar_parse_metadata
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_efree
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_php_stream_seek
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, %rdi
	callq	_efree
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_php_stream_seek
	movq	_FAILURE@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_4:
	movl	8(%r13), %edx
	cmpl	$19, %edx
	jne	LBB0_8
## %bb.5:
	movl	12(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	$19, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	8(%r13), %edx
LBB0_8:
	cmpl	$31, %edx
	jb	LBB0_12
## %bb.9:
	movq	24(%r13), %rdi
	movl	12(%r13), %esi
	addl	$16, %esi
	addl	$-30, %edx
	callq	_zend_hash_str_find_ptr
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	(%r12), %ecx
	movl	%ecx, 16(%rax)
	jmp	LBB0_11
LBB0_6:
	movl	16(%r13), %eax
	movq	24(%r13), %rcx
	movl	%eax, 4(%rcx)
LBB0_11:
	movq	%r12, %rdi
	callq	_ZVAL_UNDEF
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_efree
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_php_stream_seek
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
LBB0_13:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_FAILURE,4,2                    ## @FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".phar/.metadata.bin"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_phar_tar_process_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_tar_process_metadata
_phar_tar_process_metadata:             ; @phar_tar_process_metadata
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_php_stream_tell
	mov	x20, x0
	ldr	x1, [x21]
	mov	w0, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x22, x0
	str	x0, [sp, #8]
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_php_stream_read
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x2, x0
	add	x22, x21, #16
	add	x0, sp, #8
	mov	x1, x22
	bl	_phar_parse_metadata
Lloh0:
	adrp	x8, _FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
	b	LBB0_4
LBB0_3:
	mov	x0, x22
LBB0_4:
	bl	_efree
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_php_stream_seek
Lloh6:
	adrp	x8, _FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	ldr	w8, [x21, #8]
	cmp	w8, #19
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x21, #12]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #19
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w8, [x21, #8]
LBB0_8:
	cmp	w8, #31
	b.lo	LBB0_13
; %bb.9:
	ldr	x0, [x21, #24]
	ldr	w9, [x21, #12]
	add	w1, w9, #16
	sub	w2, w8, #30
	bl	_zend_hash_str_find_ptr
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x22]
	str	w8, [x0, #16]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x21, #16]
	ldr	x9, [x21, #24]
	str	w8, [x9, #4]
LBB0_12:
	mov	x0, x22
	bl	_ZVAL_UNDEF
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_efree
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_php_stream_seek
Lloh13:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_FAILURE,4,2                    ; @FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".phar/.metadata.bin"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_phar_tar_process_metadata
.subsections_via_symbols
