	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_tar_writeheaders_int
_phar_tar_writeheaders_int:             ## @phar_tar_writeheaders_int
	.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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ZEND_HASH_APPLY_KEEP@GOTPCREL(%rip), %r12
	cmpq	$0, 112(%rdi)
	je	LBB0_1
LBB0_57:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_59
## %bb.58:
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	cmpq	$0, 104(%rdi)
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r13)
	jg	LBB0_3
## %bb.4:
	movq	_ZEND_HASH_APPLY_REMOVE@GOTPCREL(%rip), %r12
	jmp	LBB0_57
LBB0_5:
	movq	%rsi, %rbx
	movq	72(%r13), %rdi
	movq	8(%r13), %rsi
	movl	16(%r13), %edx
	callq	_phar_add_virtual_dirs
	leaq	-600(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	16(%r13), %r15d
	cmpl	$101, %r15d
	jl	LBB0_18
## %bb.6:
	cmpl	$257, %r15d                     ## imm = 0x101
	jb	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.8:
	movq	8(%r13), %r8
	jmp	LBB0_15
LBB0_3:
	movq	_ZEND_HASH_APPLY_KEEP@GOTPCREL(%rip), %r12
	jmp	LBB0_57
LBB0_18:
	movl	-568(%rbp), %edi
	movq	8(%r13), %rsi
	movl	%r15d, %edx
LBB0_19:
	callq	_memcpy
	movl	-572(%rbp), %edi
	movq	_PHAR_ENT_PERM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	20(%r13), %esi
	movl	$3, %edx
	callq	_phar_tar_octal
	movq	_FAILURE@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movl	-576(%rbp), %edi
	movl	24(%r13), %esi
	movl	$3, %edx
	callq	_phar_tar_octal
	cmpq	%rax, %r14
	jne	LBB0_22
## %bb.20:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.21:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_16
LBB0_22:
	movq	(%r12), %r14
	movl	-580(%rbp), %edi
	movl	28(%r13), %esi
	movl	$3, %edx
	callq	_phar_tar_octal
	cmpq	%rax, %r14
	jne	LBB0_25
## %bb.23:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.24:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_16
LBB0_9:
	movq	8(%r13), %r8
	leaq	(%r8,%r15), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-101(%r14,%r12), %eax
	testb	%al, %al
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$47, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	jmp	LBB0_10
LBB0_25:
	movl	96(%r13), %eax
	movl	%eax, -584(%rbp)
	movq	32(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.26:
	movl	-588(%rbp), %edi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_29
## %bb.27:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.28:
	movq	32(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_16
LBB0_13:
	leaq	(%r15,%r12), %rax
	addq	$-101, %rax
	cmpq	$156, %rax
	jl	LBB0_17
LBB0_14:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
LBB0_15:
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str(%rip), %rdx
LBB0_16:
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_spprintf
	jmp	LBB0_57
LBB0_29:
	movl	-592(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	movl	-596(%rbp), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edx
	callq	_memcpy
	movl	-600(%rbp), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	-600(%rbp), %rdi
	movl	$40, %esi
	callq	_phar_tar_checksum
	movl	%eax, 40(%r13)
	movq	(%r12), %r14
	movl	-600(%rbp), %edi
	movl	%eax, %esi
	movl	$3, %edx
	callq	_phar_tar_octal
	cmpq	%rax, %r14
	jne	LBB0_32
## %bb.30:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.31:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_16
LBB0_17:
	movl	-564(%rbp), %edi
	leal	(%r15,%r12), %edx
	addl	$-101, %edx
	movq	%r8, %rsi
	movq	%r8, -608(%rbp)                 ## 8-byte Spill
	callq	_memcpy
	movl	-568(%rbp), %edi
	leaq	(%r14,%r12), %rsi
	addq	$-100, %rsi
	movl	16(%r13), %edx
	addl	8(%r13), %edx
	movq	-608(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	subl	%eax, %edx
	subl	%r12d, %edx
	addl	$100, %edx
	jmp	LBB0_19
LBB0_32:
	movl	8(%rbx), %edi
	callq	_php_stream_tell
	movq	%rax, 88(%r13)
	movl	8(%rbx), %edi
	leaq	-600(%rbp), %rsi
	movl	$40, %edx
	callq	_php_stream_write
	cmpl	$40, %eax
	jne	LBB0_33
## %bb.35:
	movl	8(%rbx), %edi
	callq	_php_stream_tell
	movq	%rax, %r15
	cmpl	$0, 24(%r13)
	je	LBB0_44
## %bb.36:
	movq	(%r12), %r14
	movq	16(%rbx), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_phar_open_entry_fp
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	cmpq	%rax, %r14
	je	LBB0_57
## %bb.37:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_phar_seek_efp
	cmpl	$-1, %eax
	je	LBB0_38
## %bb.40:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_phar_get_efp
	movl	8(%rbx), %esi
	movl	24(%r13), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_php_stream_copy_to_stream_ex
	cmpq	%rax, %r14
	jne	LBB0_41
## %bb.43:
	leaq	-560(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movl	8(%rbx), %edi
	movl	24(%r13), %eax
	leal	511(%rax), %edx
	andl	$-512, %edx                     ## imm = 0xFE00
	subl	%eax, %edx
	movq	%r12, %rsi
	callq	_php_stream_write
LBB0_44:
	cmpq	$0, 80(%r13)
	movq	_ZEND_HASH_APPLY_KEEP@GOTPCREL(%rip), %r12
	je	LBB0_45
LBB0_50:
	movq	$0, 80(%r13)
	movl	44(%r13), %eax
	movq	_PHAR_MOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_56
## %bb.51:
	movq	64(%r13), %rdi
	movq	72(%r13), %rax
	cmpq	8(%rax), %rdi
	je	LBB0_56
## %bb.52:
	cmpq	(%rax), %rdi
	je	LBB0_56
## %bb.53:
	cmpq	$0, (%r13)
	jne	LBB0_55
## %bb.54:
	callq	_php_stream_close
LBB0_55:
	movq	$0, 64(%r13)
LBB0_56:
	movl	$129, 44(%r13)
	movq	%r15, 56(%r13)
	movq	%r15, 48(%r13)
	jmp	LBB0_57
LBB0_33:
	movq	16(%rbx), %rdi
	movq	_ZEND_HASH_APPLY_STOP@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.34:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_16
LBB0_45:
	cmpq	$0, (%r13)
	je	LBB0_50
## %bb.46:
	movl	44(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_49
## %bb.47:
	cmpl	$129, %eax
	jne	LBB0_50
## %bb.48:
	movl	$0, 4(%rbx)
	jmp	LBB0_50
LBB0_38:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.39:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_16
LBB0_41:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.42:
	movq	8(%r13), %r8
	movq	72(%r13), %rax
	movl	16(%rax), %ecx
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_16
LBB0_49:
	movl	$0, (%rbx)
	jmp	LBB0_50
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_HASH_APPLY_KEEP,4,2       ## @ZEND_HASH_APPLY_KEEP
	.comm	_ZEND_HASH_APPLY_REMOVE,4,2     ## @ZEND_HASH_APPLY_REMOVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format"

	.comm	_ZEND_HASH_APPLY_STOP,4,2       ## @ZEND_HASH_APPLY_STOP
	.comm	_PHAR_ENT_PERM_MASK,4,2         ## @PHAR_ENT_PERM_MASK
	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"tar-based phar \"%s\" cannot be created, filename \"%s\" is too large for tar file format"

L_.str.2:                               ## @.str.2
	.asciz	"tar-based phar \"%s\" cannot be created, file modification time of file \"%s\" is too large for tar file format"

L_.str.3:                               ## @.str.3
	.asciz	"tar-based phar \"%s\" cannot be created, link \"%s\" is too long for format"

L_.str.4:                               ## @.str.4
	.asciz	"ustar"

L_.str.5:                               ## @.str.5
	.asciz	"00"

L_.str.6:                               ## @.str.6
	.asciz	"        "

L_.str.7:                               ## @.str.7
	.asciz	"tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too large for tar file format"

L_.str.8:                               ## @.str.8
	.asciz	"tar-based phar \"%s\" cannot be created, header for  file \"%s\" could not be written"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.9:                               ## @.str.9
	.asciz	"tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written, seek failed"

	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.10:                              ## @.str.10
	.asciz	"tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written"

	.comm	_PHAR_MOD,4,2                   ## @PHAR_MOD
	.no_dead_strip	_phar_tar_writeheaders_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_tar_writeheaders_int
_phar_tar_writeheaders_int:             ; @phar_tar_writeheaders_int
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #560
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x9, [x0, #112]
Lloh3:
	adrp	x8, _ZEND_HASH_APPLY_KEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZEND_HASH_APPLY_KEEP@GOTPAGEOFF]
	cbnz	x9, LBB0_48
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #104]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x19]
Lloh5:
	adrp	x10, _ZEND_HASH_APPLY_REMOVE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ZEND_HASH_APPLY_REMOVE@GOTPAGEOFF]
	cmp	x9, #1
	csel	x8, x10, x8, lt
	b	LBB0_48
LBB0_3:
	mov	x20, x1
	ldr	x0, [x19, #72]
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #16]
	bl	_phar_add_virtual_dirs
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w21, [x19, #16]
	cmp	w21, #101
	b.lt	LBB0_7
; %bb.4:
	cmp	w21, #257
	b.lo	LBB0_14
; %bb.5:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.6:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_45
LBB0_7:
	ldr	w0, [sp, #32]
	ldr	x1, [x19, #8]
	mov	x2, x21
LBB0_8:
	bl	_memcpy
	ldr	w0, [sp, #28]
	ldr	w8, [x19, #20]
Lloh9:
	adrp	x9, _PHAR_ENT_PERM_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHAR_ENT_PERM_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	w2, #3
	bl	_phar_tar_octal
Lloh12:
	adrp	x22, _FAILURE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _FAILURE@GOTPAGEOFF]
	ldr	x21, [x22]
	ldr	w0, [sp, #24]
	ldr	w1, [x19, #24]
	mov	w2, #3
	bl	_phar_tar_octal
	cmp	x21, x0
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.10:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_45
LBB0_11:
	ldr	x21, [x22]
	ldr	w0, [sp, #20]
	ldr	w1, [x19, #28]
	mov	w2, #3
	bl	_phar_tar_octal
	cmp	x21, x0
	b.ne	LBB0_18
; %bb.12:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.13:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_45
LBB0_14:
	mov	x23, #0
	ldr	x22, [x19, #8]
	add	x24, x22, x21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x24, x23
	ldurb	w8, [x8, #-101]
	cbz	w8, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #47
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x23, x23, #1
	b	LBB0_15
LBB0_18:
	ldr	w8, [x19, #96]
	str	w8, [sp, #16]
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_25
; %bb.19:
	ldr	w0, [sp, #12]
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_25
; %bb.20:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.21:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #32]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_45
LBB0_22:
	add	x8, x21, x23
	sub	x8, x8, #101
	cmp	x8, #156
	b.lt	LBB0_28
LBB0_23:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.24:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4096
	mov	x4, x22
	b	LBB0_46
LBB0_25:
	ldr	w0, [sp, #8]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #5
	bl	_memcpy
	ldr	w0, [sp, #4]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #2
	bl	_memcpy
	ldr	w0, [sp]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #8
	bl	_memcpy
	mov	x0, sp
	mov	w1, #40
	bl	_phar_tar_checksum
	mov	x1, x0
	str	w0, [x19, #40]
	ldr	x21, [x22]
	ldr	w0, [sp]
	mov	w2, #3
	bl	_phar_tar_octal
	cmp	x21, x0
	b.ne	LBB0_29
; %bb.26:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.27:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh28:
	adrp	x2, l_.str.7@PAGE
Lloh29:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_45
LBB0_28:
	ldr	w0, [sp, #36]
	add	w8, w21, w23
	sub	w2, w8, #101
	mov	x1, x22
	bl	_memcpy
	ldr	w0, [sp, #32]
	add	x8, x24, x23
	sub	x1, x8, #100
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #8]
	add	w8, w8, w9
	add	w9, w21, w22
	sub	w8, w8, w9
	sub	w8, w8, w23
	add	w2, w8, #100
	b	LBB0_8
LBB0_29:
	ldr	w0, [x20, #8]
	bl	_php_stream_tell
	str	x0, [x19, #88]
	ldr	w0, [x20, #8]
	mov	x1, sp
	mov	w2, #40
	bl	_php_stream_write
	cmp	w0, #40
	b.ne	LBB0_43
; %bb.30:
	ldr	w0, [x20, #8]
	bl	_php_stream_tell
	mov	x21, x0
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_35
; %bb.31:
	ldr	x22, [x22]
	ldr	x1, [x20, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_phar_open_entry_fp
	cmp	x22, x0
	b.eq	LBB0_47
; %bb.32:
Lloh30:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_phar_seek_efp
	cmn	w0, #1
	b.eq	LBB0_54
; %bb.33:
Lloh33:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	x22, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_phar_get_efp
	ldr	w1, [x20, #8]
	ldr	w2, [x19, #24]
	mov	x3, #0
	bl	_php_stream_copy_to_stream_ex
	cmp	x22, x0
	b.ne	LBB0_56
; %bb.34:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #512
	bl	_memset
	ldr	w0, [x20, #8]
	ldr	w8, [x19, #24]
	add	w9, w8, #511
	and	w9, w9, #0xfffffe00
	sub	w2, w9, w8
	add	x1, sp, #40
	bl	_php_stream_write
LBB0_35:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_50
LBB0_36:
	str	xzr, [x19, #80]
	ldr	w8, [x19, #44]
Lloh36:
	adrp	x9, _PHAR_MOD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PHAR_MOD@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_42
; %bb.37:
	ldp	x0, x8, [x19, #64]
	ldr	x9, [x8, #8]
	cmp	x0, x9
	b.eq	LBB0_42
; %bb.38:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_42
; %bb.39:
	ldr	x8, [x19]
	cbnz	x8, LBB0_41
; %bb.40:
	bl	_php_stream_close
LBB0_41:
	str	xzr, [x19, #64]
LBB0_42:
	mov	w8, #129
	str	w8, [x19, #44]
	stp	x21, x21, [x19, #48]
Lloh39:
	adrp	x8, _ZEND_HASH_APPLY_KEEP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ZEND_HASH_APPLY_KEEP@GOTPAGEOFF]
	b	LBB0_48
LBB0_43:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.44:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh41:
	adrp	x2, l_.str.8@PAGE
Lloh42:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_45:
	mov	w1, #4096
LBB0_46:
	bl	_spprintf
LBB0_47:
Lloh43:
	adrp	x8, _ZEND_HASH_APPLY_STOP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ZEND_HASH_APPLY_STOP@GOTPAGEOFF]
LBB0_48:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_59
; %bb.49:
	add	sp, sp, #560
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_50:
	ldr	x8, [x19]
	cbz	x8, LBB0_36
; %bb.51:
	ldr	w8, [x19, #44]
	cmp	w8, #128
	b.eq	LBB0_58
; %bb.52:
	cmp	w8, #129
	b.ne	LBB0_36
; %bb.53:
	str	wzr, [x20, #4]
	b	LBB0_36
LBB0_54:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.55:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh48:
	adrp	x2, l_.str.9@PAGE
Lloh49:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_45
LBB0_56:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_47
; %bb.57:
	ldr	x8, [x19, #72]
	ldr	w3, [x8, #16]
	ldr	x4, [x19, #8]
Lloh50:
	adrp	x2, l_.str.10@PAGE
Lloh51:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_45
LBB0_58:
	str	wzr, [x20]
	b	LBB0_36
LBB0_59:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_HASH_APPLY_KEEP,4,2       ; @ZEND_HASH_APPLY_KEEP
	.comm	_ZEND_HASH_APPLY_REMOVE,4,2     ; @ZEND_HASH_APPLY_REMOVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format"

	.comm	_ZEND_HASH_APPLY_STOP,4,2       ; @ZEND_HASH_APPLY_STOP
	.comm	_PHAR_ENT_PERM_MASK,4,2         ; @PHAR_ENT_PERM_MASK
	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"tar-based phar \"%s\" cannot be created, filename \"%s\" is too large for tar file format"

l_.str.2:                               ; @.str.2
	.asciz	"tar-based phar \"%s\" cannot be created, file modification time of file \"%s\" is too large for tar file format"

l_.str.3:                               ; @.str.3
	.asciz	"tar-based phar \"%s\" cannot be created, link \"%s\" is too long for format"

l_.str.4:                               ; @.str.4
	.asciz	"ustar"

l_.str.5:                               ; @.str.5
	.asciz	"00"

l_.str.6:                               ; @.str.6
	.asciz	"        "

l_.str.7:                               ; @.str.7
	.asciz	"tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too large for tar file format"

l_.str.8:                               ; @.str.8
	.asciz	"tar-based phar \"%s\" cannot be created, header for  file \"%s\" could not be written"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.9:                               ; @.str.9
	.asciz	"tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written, seek failed"

	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.10:                              ; @.str.10
	.asciz	"tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written"

	.comm	_PHAR_MOD,4,2                   ; @PHAR_MOD
	.no_dead_strip	_phar_tar_writeheaders_int
.subsections_via_symbols
