	.file	"extr_phar_object.c_phar_build.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Iterator %s returned no value"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Iterator %s returned an invalid stream handle"
	.align 8
.LC2:
	.string	"Iterator %s returned an invalid key (must return a string)"
	.section	.rodata.str1.1
.LC3:
	.string	"[stream]"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Iterator %s returns an SplFileInfo object, so base directory must be specified"
	.section	.rodata.str1.1
.LC5:
	.string	"%s%c%s"
.LC6:
	.string	"Could not resolve file path"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Iterator %s returned an invalid value (must return a string)"
	.align 8
.LC8:
	.string	"Iterator %s returned a path \"%s\" that is not in the base directory \"%s\""
	.align 8
.LC9:
	.string	"Iterator %s returned a path \"%s\" that open_basedir prevents opening"
	.section	.rodata.str1.1
.LC10:
	.string	"rb"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"Iterator %s returned a file that could not be opened \"%s\""
	.section	.rodata.str1.1
.LC12:
	.string	".phar"
.LC13:
	.string	"w+b"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"Entry %s cannot be created: %s"
	.text
	.p2align 4
	.type	phar_build, @function
phar_build:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r14, QWORD PTR [rsi]
	mov	r13, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rsi]
	mov	rbp, QWORD PTR 32[rsi]
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR 8[rax]]
	mov	edi, DWORD PTR exception[rip]
	mov	r15, rax
	call	EG@PLT
	test	rax, rax
	jne	.L136
	test	r15, r15
	je	.L143
	mov	rdi, r15
	call	Z_TYPE_P@PLT
	cmp	eax, 132
	je	.L5
	cmp	eax, 133
	je	.L6
	cmp	eax, 131
	je	.L144
.L8:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC7[rip]
	mov	rcx, rax
.L132:
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	xor	esi, esi
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
.L136:
	mov	eax, DWORD PTR ZEND_HASH_APPLY_STOP[rip]
.L1:
	mov	rdx, QWORD PTR 72[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L145
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR spl_ce_SplFileInfo[rip]
	mov	rdi, r15
	call	Z_OBJCE_P@PLT
	mov	edi, eax
	mov	esi, r12d
	call	instanceof_function@PLT
	test	eax, eax
	je	.L8
	mov	rdi, r15
	call	Z_OBJ_P@PLT
	mov	rdi, r15
	mov	r12, rax
	call	Z_OBJ_P@PLT
	mov	r15, r12
	mov	rax, QWORD PTR [rax]
	movsx	rax, DWORD PTR [rax]
	sub	r15, rax
	test	r14, r14
	je	.L146
	mov	eax, DWORD PTR 12[r15]
	cmp	eax, 129
	jg	.L17
	cmp	eax, 127
	jle	.L8
	mov	rdi, QWORD PTR [r15]
	xor	esi, esi
	call	expand_filepath@PLT
	mov	QWORD PTR 48[rsp], rax
	mov	r15, rax
	test	rax, rax
	je	.L134
	mov	rdi, rax
	call	strlen@PLT
	mov	r12, rax
.L22:
	xor	esi, esi
	mov	rdi, r13
	call	expand_filepath@PLT
	mov	r14, rax
	test	rax, rax
	je	.L147
	mov	r13, QWORD PTR 48[rsp]
	mov	rsi, r14
	mov	rdi, r13
	call	strstr@PLT
	test	rax, rax
	je	.L148
	mov	rdi, r14
	call	strlen@PLT
	mov	rcx, r12
	sub	rcx, rax
	mov	r12, rcx
	jne	.L63
	mov	rdi, r15
	call	efree@PLT
	mov	rdi, r14
	call	efree@PLT
	.p2align 4,,10
	.p2align 3
.L131:
	mov	eax, DWORD PTR ZEND_HASH_APPLY_KEEP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L144:
	mov	rdi, r15
	call	Z_STRVAL_P@PLT
	mov	rdi, r15
	mov	QWORD PTR 48[rsp], rax
	call	Z_STRLEN_P@PLT
	mov	r15, rax
	test	r14, r14
	jne	.L149
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L30
	lea	r13, 64[rsp]
	mov	rdi, r12
	mov	rsi, r13
	call	rax
	mov	edi, DWORD PTR exception[rip]
	call	EG@PLT
	test	rax, rax
	jne	.L136
	mov	edi, DWORD PTR 64[rsp]
	call	Z_TYPE@PLT
	cmp	eax, 131
	je	.L33
	mov	rdi, r13
	call	zval_ptr_dtor@PLT
.L30:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC2[rip]
	mov	rcx, rax
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r13d, r13d
	mov	rsi, r15
	mov	rdi, r13
	call	php_stream_from_zval_no_verify@PLT
	test	r13, r13
	je	.L150
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L10
	lea	r14, 64[rsp]
	mov	rdi, r12
	mov	rsi, r14
	call	rax
	mov	edi, DWORD PTR exception[rip]
	call	EG@PLT
	test	rax, rax
	jne	.L136
	mov	edi, DWORD PTR 64[rsp]
	call	Z_TYPE@PLT
	cmp	eax, 131
	je	.L13
	mov	rdi, r14
	call	zval_ptr_dtor@PLT
.L10:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	lea	rdx, .LC2[rip]
	xor	esi, esi
	mov	rcx, rax
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	mov	eax, DWORD PTR ZEND_HASH_APPLY_STOP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L143:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC0[rip]
	mov	rcx, rax
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 64[rsp]
	call	Z_STRLEN@PLT
	mov	edi, DWORD PTR 64[rsp]
	mov	r15, rax
	mov	r12, rax
	call	Z_STRVAL@PLT
	mov	rsi, r15
	mov	edi, eax
	call	estrndup@PLT
	mov	rdi, r14
	xor	r14d, r14d
	mov	r15, rax
	call	zval_ptr_dtor_str@PLT
	xor	edx, edx
	mov	esi, 8
	lea	rdi, .LC3[rip]
	call	zend_string_init@PLT
	mov	QWORD PTR 16[rsp], r15
	mov	QWORD PTR 64[rsp], rax
	mov	DWORD PTR 28[rsp], 0
.L14:
	cmp	r12, 4
	jbe	.L39
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, 5
	lea	rsi, .LC12[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L151
.L39:
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, r12
	xor	r9d, r9d
	lea	r8, .LC13[rip]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 4[rax]
	push	1
	.cfi_def_cfa_offset 152
	mov	esi, DWORD PTR [rax]
	lea	rdx, 64[rsp]
	push	rdx
	.cfi_def_cfa_offset 160
	mov	rdx, QWORD PTR 32[rsp]
	call	phar_get_or_create_entry_data@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	rbp, rax
	test	rax, rax
	je	.L152
	mov	rdi, QWORD PTR 56[rsp]
	test	rdi, rdi
	je	.L49
	call	efree@PLT
.L49:
	mov	r12, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR PHAR_MOD[rip]
	cmp	QWORD PTR [r12], rax
	je	.L153
.L50:
	mov	rax, QWORD PTR PHAR_UFP[rip]
	mov	edi, DWORD PTR 20[rbx]
	mov	QWORD PTR 40[r12], 0
	mov	QWORD PTR [r12], rax
	call	php_stream_tell@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR 20[rbx]
	mov	rdi, r13
	mov	QWORD PTR 16[r12], rax
	lea	rcx, 40[rsp]
	mov	QWORD PTR 8[rdx], rax
	mov	edx, DWORD PTR PHP_STREAM_COPY_ALL[rip]
	mov	QWORD PTR 8[rbp], 0
	call	php_stream_copy_to_stream_ex@PLT
	mov	edi, DWORD PTR 20[rbx]
	call	php_stream_tell@PLT
	mov	rdx, QWORD PTR 0[rbp]
	sub	rax, QWORD PTR 16[rdx]
	mov	QWORD PTR 32[rdx], rax
	mov	QWORD PTR 24[rdx], rax
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L154
.L51:
	mov	edi, DWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 64[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	call	add_assoc_str@PLT
	test	r15, r15
	je	.L52
	mov	rdi, r15
	call	efree@PLT
.L52:
	test	r14, r14
	je	.L53
	mov	rdi, r14
	call	efree@PLT
.L53:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 40[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rax], rdx
	mov	QWORD PTR 32[rax], rdx
	call	phar_entry_delref@PLT
	jmp	.L131
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	eax, 130
	jne	.L8
	xor	esi, esi
	mov	rdi, r15
	call	spl_filesystem_object_get_path@PLT
	mov	r9d, DWORD PTR 8[r15]
	xor	esi, esi
	lea	rdi, 48[rsp]
	mov	r8d, DWORD PTR DEFAULT_SLASH[rip]
	mov	rcx, rax
	lea	rdx, .LC5[rip]
	call	spprintf@PLT
	mov	edx, DWORD PTR FS_IS_DIR[rip]
	mov	rdi, QWORD PTR 48[rsp]
	lea	rcx, 64[rsp]
	mov	rsi, rax
	call	php_stat@PLT
	mov	edi, DWORD PTR 64[rsp]
	call	Z_TYPE@PLT
	cmp	eax, DWORD PTR IS_TRUE[rip]
	je	.L155
	mov	rdi, QWORD PTR 48[rsp]
	xor	esi, esi
	call	expand_filepath@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	r15, rax
	call	efree@PLT
	test	r15, r15
	je	.L134
	mov	rdi, r15
	mov	QWORD PTR 48[rsp], r15
	call	strlen@PLT
	mov	r12, rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L149:
	xor	esi, esi
	mov	rdi, r13
	call	expand_filepath@PLT
	mov	r14, rax
	test	rax, rax
	je	.L134
	mov	r13, QWORD PTR 48[rsp]
	mov	rsi, rax
	mov	rdi, r13
	call	strstr@PLT
	test	rax, rax
	je	.L156
	mov	rdi, r14
	call	strlen@PLT
	sub	r15, rax
	mov	r12, r15
	je	.L131
	xor	r15d, r15d
.L63:
	add	rax, r13
	mov	QWORD PTR 16[rsp], rax
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L67
	cmp	al, 92
	je	.L67
.L28:
	mov	rdi, r13
	call	php_check_open_basedir@PLT
	test	rax, rax
	jne	.L157
	mov	edx, DWORD PTR STREAM_MUST_SEEK[rip]
	mov	rdi, QWORD PTR 48[rsp]
	lea	rcx, 64[rsp]
	lea	rsi, .LC10[rip]
	call	php_stream_open_wrapper@PLT
	mov	DWORD PTR 28[rsp], 1
	mov	r13, rax
	test	rax, rax
	jne	.L14
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, QWORD PTR 48[rsp]
	call	ZSTR_VAL@PLT
	mov	r8, rbx
	lea	rdx, .LC11[rip]
	mov	rcx, rax
	.p2align 4,,10
	.p2align 3
.L141:
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	xor	esi, esi
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	test	r15, r15
	je	.L37
	mov	rdi, r15
	call	efree@PLT
.L37:
	test	r14, r14
	je	.L136
	mov	rdi, r14
	call	efree@PLT
	jmp	.L136
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR 64[rsp]
	call	Z_STRLEN@PLT
	mov	edi, DWORD PTR 64[rsp]
	mov	r14, rax
	mov	r12, rax
	call	Z_STRVAL@PLT
	mov	rsi, r14
	xor	r14d, r14d
	mov	edi, eax
	call	estrndup@PLT
	mov	rdi, r13
	mov	r15, rax
	call	zval_ptr_dtor_str@PLT
	mov	QWORD PTR 16[rsp], r15
	mov	r13, QWORD PTR 48[rsp]
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L157:
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, QWORD PTR 48[rsp]
	call	ZSTR_VAL@PLT
	mov	r8, rbx
	lea	rdx, .LC9[rip]
	mov	rcx, rax
	jmp	.L141
	.p2align 4,,10
	.p2align 3
.L150:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC1[rip]
	mov	rcx, rax
.L135:
	mov	edi, DWORD PTR spl_ce_BadMethodCallException[rip]
	xor	esi, esi
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	mov	eax, DWORD PTR ZEND_HASH_APPLY_STOP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L67:
	mov	rax, r12
	add	QWORD PTR 16[rsp], 1
	sub	rax, 1
	mov	r12, rax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L154:
	mov	rdi, r13
	call	php_stream_close@PLT
	jmp	.L51
.L146:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	lea	rdx, .LC4[rip]
	mov	rcx, rax
	jmp	.L135
.L151:
	test	r15, r15
	je	.L40
	mov	rdi, r15
	call	efree@PLT
.L40:
	test	r14, r14
	je	.L41
	mov	rdi, r14
	call	efree@PLT
.L41:
	mov	rdi, QWORD PTR 64[rsp]
	test	rdi, rdi
	je	.L42
	xor	esi, esi
	call	zend_string_release_ex@PLT
.L42:
	mov	edi, DWORD PTR 28[rsp]
	test	edi, edi
	je	.L131
	mov	rdi, r13
	call	php_stream_close@PLT
	jmp	.L131
.L153:
	mov	rdi, QWORD PTR 40[r12]
	call	php_stream_close@PLT
	mov	r12, QWORD PTR 0[rbp]
	jmp	.L50
.L134:
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	lea	rdx, .LC6[rip]
	xor	esi, esi
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	jmp	.L136
.L148:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	mov	r9, r14
	xor	esi, esi
	mov	rcx, rax
	mov	r8, r13
	lea	rdx, .LC8[rip]
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	mov	rdi, r15
	call	efree@PLT
	mov	rdi, r14
	call	efree@PLT
	jmp	.L136
.L156:
	mov	edi, DWORD PTR 0[rbp]
	call	ZSTR_VAL@PLT
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	mov	r9, r14
	xor	esi, esi
	mov	rcx, rax
	mov	r8, r13
	lea	rdx, .LC8[rip]
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	jmp	.L136
.L152:
	mov	edi, DWORD PTR spl_ce_BadMethodCallException[rip]
	mov	r8, QWORD PTR 56[rsp]
	xor	esi, esi
	xor	eax, eax
	mov	rcx, QWORD PTR 16[rsp]
	lea	rdx, .LC14[rip]
	call	zend_throw_exception_ex@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	efree@PLT
	test	r15, r15
	je	.L45
	mov	rdi, r15
	call	efree@PLT
.L45:
	mov	rdi, QWORD PTR 64[rsp]
	test	rdi, rdi
	je	.L46
	xor	esi, esi
	call	zend_string_release_ex@PLT
.L46:
	test	r14, r14
	je	.L47
	mov	rdi, r14
	call	efree@PLT
.L47:
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	je	.L136
	mov	rdi, r13
	call	php_stream_close@PLT
	jmp	.L136
.L147:
	mov	edi, DWORD PTR spl_ce_UnexpectedValueException[rip]
	lea	rdx, .LC6[rip]
	xor	esi, esi
	xor	eax, eax
	call	zend_throw_exception_ex@PLT
	mov	rdi, r15
	call	efree@PLT
	jmp	.L136
.L155:
	mov	rdi, QWORD PTR 48[rsp]
	call	efree@PLT
	mov	eax, DWORD PTR ZEND_HASH_APPLY_KEEP[rip]
	jmp	.L1
.L145:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	phar_build, .-phar_build
	.comm	spl_ce_UnexpectedValueException,4,4
	.comm	spl_ce_SplFileInfo,4,4
	.comm	spl_ce_BadMethodCallException,4,4
	.comm	exception,4,4
	.comm	ZEND_HASH_APPLY_STOP,4,4
	.comm	ZEND_HASH_APPLY_KEEP,4,4
	.comm	STREAM_MUST_SEEK,4,4
	.comm	PHP_STREAM_COPY_ALL,4,4
	.comm	PHAR_UFP,8,8
	.comm	PHAR_MOD,8,8
	.comm	IS_TRUE,4,4
	.comm	FS_IS_DIR,4,4
	.comm	DEFAULT_SLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_phar_object.c_phar_build.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Iterator %s returned no value\000"
	.align	2
.LC1:
	.ascii	"Iterator %s returned an invalid stream handle\000"
	.align	2
.LC2:
	.ascii	"Iterator %s returned an invalid key (must return a "
	.ascii	"string)\000"
	.align	2
.LC3:
	.ascii	"[stream]\000"
	.align	2
.LC4:
	.ascii	"Iterator %s returns an SplFileInfo object, so base "
	.ascii	"directory must be specified\000"
	.align	2
.LC5:
	.ascii	"%s%c%s\000"
	.align	2
.LC6:
	.ascii	"Could not resolve file path\000"
	.align	2
.LC7:
	.ascii	"Iterator %s returned an invalid value (must return "
	.ascii	"a string)\000"
	.align	2
.LC8:
	.ascii	"Iterator %s returned a path \"%s\" that is not in t"
	.ascii	"he base directory \"%s\"\000"
	.align	2
.LC9:
	.ascii	"Iterator %s returned a path \"%s\" that open_basedi"
	.ascii	"r prevents opening\000"
	.align	2
.LC10:
	.ascii	"rb\000"
	.align	2
.LC11:
	.ascii	"Iterator %s returned a file that could not be opene"
	.ascii	"d \"%s\"\000"
	.align	2
.LC12:
	.ascii	".phar\000"
	.align	2
.LC13:
	.ascii	"w+b\000"
	.align	2
.LC14:
	.ascii	"Entry %s cannot be created: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	phar_build, %function
phar_build:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r1, {r9, fp}
	sub	sp, sp, #52
	ldr	r3, .L152
	str	ip, [sp, #36]
	ldr	r2, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [r1, #16]
	ldr	r2, [r2, #4]
	mov	r4, r1
	ldr	r6, [r1, #20]
	str	r3, [sp, #16]
	mov	r7, r0
	blx	r2
	ldr	r10, .L152+4
	mov	r8, r0
	ldr	r0, [r10]
	bl	EG
	subs	r5, r0, #0
	bne	.L47
	cmp	r8, #0
	beq	.L135
	mov	r0, r8
	bl	Z_TYPE_P
	cmp	r0, #132
	beq	.L5
	cmp	r0, #133
	beq	.L6
	cmp	r0, #131
	beq	.L136
.L8:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, #0
	mov	r3, r0
	ldr	r2, .L152+12
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L152
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L137
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L145:
	mov	r0, fp
	mov	r1, r5
	bl	expand_filepath
	subs	r8, r0, #0
	beq	.L138
	ldr	r10, [sp, #32]
	mov	r1, r8
	mov	r0, r10
	bl	strstr
	subs	fp, r0, #0
	beq	.L139
	mov	r0, r8
	bl	strlen
	subs	r9, r9, r0
	beq	.L129
.L62:
	ldrb	r3, [r10, r0]	@ zero_extendqisi2
	add	r2, r10, r0
	cmp	r3, #92
	cmpne	r3, #47
	str	r2, [sp, #20]
	addeq	r3, r2, #1
	streq	r3, [sp, #20]
	subeq	r9, r9, #1
.L28:
	mov	r0, r10
	bl	php_check_open_basedir
	cmp	r0, #0
	bne	.L140
	ldr	r2, .L152+20
	ldr	r1, .L152+24
	ldr	r2, [r2]
	ldr	r0, [sp, #32]
	add	r3, sp, #40
	bl	php_stream_open_wrapper
	subs	fp, r0, #0
	movne	r10, #1
	bne	.L14
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	ldr	r2, [sp, #32]
	mov	r3, r0
	str	r2, [sp]
	mov	r0, r4
	mov	r1, fp
	ldr	r2, .L152+28
	bl	zend_throw_exception_ex
	cmp	r5, #0
	beq	.L36
.L133:
	mov	r0, r5
	bl	efree
.L36:
	cmp	r8, #0
	beq	.L47
.L131:
	mov	r0, r8
	bl	efree
.L47:
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L6:
	mov	r0, r8
	bl	Z_OBJCE_P
	ldr	r3, .L152+32
	ldr	r1, [r3]
	bl	instanceof_function
	cmp	r0, #0
	beq	.L8
	mov	r0, r8
	bl	Z_OBJ_P
	mov	r3, r0
	mov	r0, r8
	mov	r8, r3
	bl	Z_OBJ_P
	ldr	r3, [r0]
	cmp	r9, #0
	ldr	r3, [r3]
	sub	r8, r8, r3
	beq	.L141
	ldr	r3, [r8, #8]
	cmp	r3, #129
	bgt	.L17
	cmp	r3, #127
	ble	.L8
	mov	r1, r5
	ldr	r0, [r8]
	bl	expand_filepath
	cmp	r0, #0
	mov	r5, r0
	str	r0, [sp, #32]
	beq	.L142
	bl	strlen
	mov	r9, r0
.L22:
	mov	r0, fp
	mov	r1, #0
	bl	expand_filepath
	subs	r8, r0, #0
	beq	.L143
	ldr	r10, [sp, #32]
	mov	r1, r8
	mov	r0, r10
	bl	strstr
	subs	fp, r0, #0
	beq	.L144
	mov	r0, r8
	bl	strlen
	subs	r9, r9, r0
	bne	.L62
	mov	r0, r5
	bl	efree
	mov	r0, r8
	bl	efree
.L129:
	ldr	r3, .L152+36
	ldr	r0, [r3]
	b	.L1
.L136:
	mov	r0, r8
	bl	Z_STRVAL_P
	mov	r2, r0
	mov	r0, r8
	str	r2, [sp, #32]
	bl	Z_STRLEN_P
	cmp	r9, #0
	mov	r9, r0
	bne	.L145
	ldr	r2, [r7]
	ldr	r5, [r2]
	cmp	r5, #0
	beq	.L29
	add	r1, sp, #40
	mov	r0, r7
	blx	r5
	ldr	r0, [r10]
	bl	EG
	subs	r8, r0, #0
	bne	.L47
	ldr	r0, [sp, #40]
	bl	Z_TYPE
	cmp	r0, #131
	beq	.L32
	add	r0, sp, #40
	bl	zval_ptr_dtor
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, r8
	mov	r3, r0
	ldr	r2, .L152+40
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	fp, #0
	mov	r1, r8
	mov	r0, fp
	bl	php_stream_from_zval_no_verify
	cmp	fp, fp
	beq	.L146
	ldr	r2, [r7]
	ldr	r5, [r2]
	cmp	r5, #0
	beq	.L29
	add	r1, sp, #40
	mov	r0, r7
	blx	r5
	ldr	r0, [r10]
	bl	EG
	subs	r10, r0, #0
	bne	.L47
	ldr	r0, [sp, #40]
	bl	Z_TYPE
	cmp	r0, #131
	beq	.L13
	add	r0, sp, #40
	bl	zval_ptr_dtor
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, r10
	mov	r3, r0
	ldr	r2, .L152+40
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L135:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, r8
	mov	r3, r0
	ldr	r2, .L152+44
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L13:
	ldr	r0, [sp, #40]
	bl	Z_STRLEN
	mov	r9, r0
	ldr	r0, [sp, #40]
	bl	Z_STRVAL
	mov	r1, r9
	bl	estrndup
	mov	r5, r0
	add	r0, sp, #40
	bl	zval_ptr_dtor_str
	mov	r2, r10
	mov	r1, #8
	ldr	r0, .L152+48
	bl	zend_string_init
	mov	r8, r10
	str	r5, [sp, #20]
	str	r0, [sp, #40]
.L14:
	cmp	r9, #4
	bls	.L38
	mov	r2, #5
	ldr	r1, .L152+52
	ldr	r0, [sp, #20]
	bl	memcmp
	cmp	r0, #0
	beq	.L147
.L38:
	mov	ip, #1
	mov	lr, #0
	ldr	r3, [sp, #16]
	ldr	r2, [r3]
	mov	r3, r9
	ldr	r1, [r2]
	ldr	r0, [r2, #4]
	str	ip, [sp, #12]
	ldr	ip, .L152+56
	add	r2, sp, #36
	str	r2, [sp, #8]
	str	lr, [sp, #4]
	ldr	r2, [sp, #20]
	str	ip, [sp]
	bl	phar_get_or_create_entry_data
	subs	r6, r0, #0
	beq	.L148
	ldr	r0, [sp, #36]
	cmp	r0, #0
	beq	.L48
	bl	efree
.L48:
	ldr	r7, [r6]
	ldr	r3, .L152+60
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L149
.L49:
	mov	r9, #0
	ldr	r3, .L152+64
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	str	r9, [r7, #20]
	str	r3, [r7]
	bl	php_stream_tell
	ldr	r3, [r6]
	ldr	r2, .L152+68
	str	r0, [r7, #8]
	ldr	r2, [r2]
	str	r0, [r3, #4]
	ldr	r1, [r4, #12]
	add	r3, sp, #28
	mov	r0, fp
	str	r9, [r6, #4]
	bl	php_stream_copy_to_stream_ex
	ldr	r0, [r4, #12]
	bl	php_stream_tell
	ldr	r3, [r6]
	cmp	r10, r9
	ldr	r2, [r3, #8]
	sub	r0, r0, r2
	str	r0, [r3, #16]
	str	r0, [r3, #12]
	bne	.L150
.L50:
	ldr	r1, [sp, #20]
	ldr	r0, [r4, #8]
	ldr	r2, [sp, #40]
	bl	add_assoc_str
	cmp	r5, #0
	beq	.L51
	mov	r0, r5
	bl	efree
.L51:
	cmp	r8, #0
	beq	.L52
	mov	r0, r8
	bl	efree
.L52:
	ldr	r3, [r6]
	ldr	r2, [sp, #28]
	mov	r0, r6
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	bl	phar_entry_delref
	b	.L129
.L17:
	cmp	r3, #130
	bne	.L8
	mov	r1, r5
	mov	r0, r8
	bl	spl_filesystem_object_get_path
	ldr	r2, .L152+72
	ldr	r1, [r8, #4]
	ldr	r2, [r2]
	mov	r3, r0
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r5
	ldr	r2, .L152+76
	add	r0, sp, #32
	bl	spprintf
	ldr	r3, .L152+80
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r0, [sp, #32]
	add	r3, sp, #40
	bl	php_stat
	ldr	r0, [sp, #40]
	bl	Z_TYPE
	ldr	r3, .L152+84
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L151
	mov	r1, r5
	ldr	r0, [sp, #32]
	bl	expand_filepath
	mov	r5, r0
	ldr	r0, [sp, #32]
	bl	efree
	cmp	r5, #0
	beq	.L21
	mov	r0, r5
	str	r5, [sp, #32]
	bl	strlen
	mov	r9, r0
	b	.L22
.L32:
	ldr	r0, [sp, #40]
	bl	Z_STRLEN
	mov	r9, r0
	ldr	r0, [sp, #40]
	bl	Z_STRVAL
	mov	r1, r9
	bl	estrndup
	mov	r5, r0
	add	r0, sp, #40
	bl	zval_ptr_dtor_str
	ldr	r10, [sp, #32]
	str	r5, [sp, #20]
	b	.L28
.L29:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, r5
	mov	r3, r0
	ldr	r2, .L152+40
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L140:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	ldr	r2, [sp, #32]
	mov	r3, r0
	str	r2, [sp]
	mov	r0, r4
	mov	r1, #0
	ldr	r2, .L152+88
	bl	zend_throw_exception_ex
	cmp	r5, #0
	bne	.L133
	b	.L36
.L146:
	ldr	r3, .L152+92
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, fp
	mov	r3, r0
	ldr	r2, .L152+96
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L150:
	mov	r0, fp
	bl	php_stream_close
	b	.L50
.L147:
	cmp	r5, #0
	beq	.L39
	mov	r0, r5
	bl	efree
.L39:
	cmp	r8, #0
	beq	.L40
	mov	r0, r8
	bl	efree
.L40:
	ldr	r0, [sp, #40]
	cmp	r0, #0
	beq	.L41
	mov	r1, #0
	bl	zend_string_release_ex
.L41:
	cmp	r10, #0
	beq	.L129
	mov	r0, fp
	bl	php_stream_close
	b	.L129
.L141:
	ldr	r3, .L152+92
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	mov	r1, r9
	mov	r3, r0
	ldr	r2, .L152+100
	mov	r0, r4
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L149:
	ldr	r0, [r7, #20]
	bl	php_stream_close
	ldr	r7, [r6]
	b	.L49
.L144:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	ldr	r2, [sp, #32]
	mov	r3, r0
	str	r2, [sp]
	mov	r0, r4
	mov	r1, fp
	ldr	r2, .L152+104
	str	r8, [sp, #4]
	bl	zend_throw_exception_ex
	mov	r0, r5
	bl	efree
	b	.L131
.L139:
	ldr	r3, .L152+8
	ldr	r0, [r6]
	ldr	r4, [r3]
	bl	ZSTR_VAL
	ldr	r2, [sp, #32]
	mov	r3, r0
	str	r2, [sp]
	mov	r0, r4
	mov	r1, fp
	ldr	r2, .L152+104
	str	r8, [sp, #4]
	bl	zend_throw_exception_ex
	b	.L47
.L148:
	ldr	r2, [sp, #36]
	ldr	r0, .L152+92
	mov	r1, r6
	ldr	r3, [sp, #20]
	ldr	r0, [r0]
	str	r2, [sp]
	ldr	r2, .L152+108
	bl	zend_throw_exception_ex
	ldr	r0, [sp, #36]
	bl	efree
	cmp	r5, #0
	beq	.L44
	mov	r0, r5
	bl	efree
.L44:
	ldr	r0, [sp, #40]
	cmp	r0, #0
	beq	.L45
	mov	r1, #0
	bl	zend_string_release_ex
.L45:
	cmp	r8, #0
	beq	.L46
	mov	r0, r8
	bl	efree
.L46:
	cmp	r10, #0
	beq	.L47
	mov	r0, fp
	bl	php_stream_close
	b	.L47
.L143:
	ldr	r3, .L152+8
	mov	r1, r8
	ldr	r0, [r3]
	ldr	r2, .L152+112
	bl	zend_throw_exception_ex
	mov	r0, r5
	bl	efree
	b	.L47
.L151:
	ldr	r0, [sp, #32]
	bl	efree
	ldr	r3, .L152+36
	ldr	r0, [r3]
	b	.L1
.L138:
	ldr	r3, .L152+8
	mov	r1, r8
	ldr	r0, [r3]
	ldr	r2, .L152+112
	bl	zend_throw_exception_ex
	b	.L47
.L142:
	ldr	r3, .L152+8
	mov	r1, r0
	ldr	r2, .L152+112
	ldr	r0, [r3]
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L21:
	ldr	r3, .L152+8
	mov	r1, #0
	ldr	r0, [r3]
	ldr	r2, .L152+112
	bl	zend_throw_exception_ex
	ldr	r3, .L152+16
	ldr	r0, [r3]
	b	.L1
.L137:
	bl	__stack_chk_fail
.L153:
	.align	2
.L152:
	.word	.LC15
	.word	exception
	.word	spl_ce_UnexpectedValueException
	.word	.LC7
	.word	ZEND_HASH_APPLY_STOP
	.word	STREAM_MUST_SEEK
	.word	.LC10
	.word	.LC11
	.word	spl_ce_SplFileInfo
	.word	ZEND_HASH_APPLY_KEEP
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.word	.LC12
	.word	.LC13
	.word	PHAR_MOD
	.word	PHAR_UFP
	.word	PHP_STREAM_COPY_ALL
	.word	DEFAULT_SLASH
	.word	.LC5
	.word	FS_IS_DIR
	.word	IS_TRUE
	.word	.LC9
	.word	spl_ce_BadMethodCallException
	.word	.LC1
	.word	.LC4
	.word	.LC8
	.word	.LC14
	.word	.LC6
	.size	phar_build, .-phar_build
	.comm	spl_ce_UnexpectedValueException,4,4
	.comm	spl_ce_SplFileInfo,4,4
	.comm	spl_ce_BadMethodCallException,4,4
	.comm	exception,4,4
	.comm	ZEND_HASH_APPLY_STOP,4,4
	.comm	ZEND_HASH_APPLY_KEEP,4,4
	.comm	STREAM_MUST_SEEK,4,4
	.comm	PHP_STREAM_COPY_ALL,4,4
	.comm	PHAR_UFP,4,4
	.comm	PHAR_MOD,4,4
	.comm	IS_TRUE,4,4
	.comm	FS_IS_DIR,4,4
	.comm	DEFAULT_SLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
