	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_extract_file
_phar_extract_file:                     ## @phar_extract_file
	.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	_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	$0, 32(%rsi)
	jne	LBB0_21
## %bb.1:
	movq	%r8, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$5, (%rsi)
	jb	LBB0_3
## %bb.2:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_21
LBB0_3:
	movl	$2, %edi
	callq	_emalloc
	movq	%rax, -72(%rbp)
	movq	_DEFAULT_SLASH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
	movq	-72(%rbp), %rax
	movb	$0, 1(%rax)
	movl	$1, -64(%rbp)
	movq	8(%r12), %rsi
	movq	_CWD_EXPAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rdi
	xorl	%edx, %edx
	callq	_virtual_file_ex
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movl	-64(%rbp), %eax
	cmpl	$1, %eax
	jle	LBB0_9
## %bb.5:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14
	incq	%r14
	leaq	L_.str.3(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_spprintf
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_13
## %bb.6:
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	-48(%rbp), %rdi
	callq	_php_check_open_basedir
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_16
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	cmpl	$51, (%r12)
	jl	LBB0_12
## %bb.11:
	movq	8(%r12), %rdi
	movl	$50, %esi
	callq	_estrndup
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%rax, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_spprintf
	movq	%r14, %rdi
	jmp	LBB0_19
LBB0_12:
	movq	8(%r12), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_20
LBB0_13:
	movq	-48(%rbp), %r8
	movb	$0, 50(%r8)
	cmpl	$51, (%r12)
	movq	8(%r12), %rcx
	jl	LBB0_15
## %bb.14:
	movq	%rcx, %rdi
	movl	$50, %esi
	callq	_estrndup
	movq	%rax, %rbx
	movq	-48(%rbp), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_spprintf
	movq	%rbx, %rdi
	callq	_efree
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.4(%rip), %rdx
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_18
LBB0_17:
	movq	8(%r12), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
LBB0_18:
	movq	-48(%rbp), %rdi
LBB0_19:
	callq	_efree
LBB0_20:
	movq	-72(%rbp), %rdi
	callq	_efree
	movq	_FAILURE@GOTPCREL(%rip), %r14
LBB0_21:
	movl	(%r14), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	testl	%r13d, %r13d
	jne	LBB0_25
## %bb.23:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_php_stream_stat_path
	cmpl	%eax, %ebx
	jne	LBB0_25
## %bb.24:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_16
LBB0_25:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	decl	%edx
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_zend_memrchr
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rcx
	subq	%r14, %rcx
	testq	%rax, %rax
	movq	-48(%rbp), %rdx
	leaq	1(%rcx,%rax), %r13
	cmoveq	%rsi, %r13
	movb	$0, (%rdx,%r13)
	movq	_FAILURE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	-48(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_php_stream_stat_path
	cmpl	%eax, %ebx
	jne	LBB0_30
## %bb.26:
	cmpq	$0, 24(%r12)
	movq	-48(%rbp), %rdi
	je	LBB0_28
## %bb.27:
	movq	_PHAR_ENT_PERM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	16(%r12), %esi
	movq	_PHP_STREAM_MKDIR_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_29
LBB0_28:
	movq	_PHP_STREAM_MKDIR_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$511, %esi                      ## imm = 0x1FF
LBB0_29:
	xorl	%ecx, %ecx
	callq	_php_stream_mkdir
	testl	%eax, %eax
	je	LBB0_37
LBB0_30:
	movq	-48(%rbp), %rax
	movb	$47, (%rax,%r13)
	movq	-72(%rbp), %rdi
	callq	_efree
	cmpq	$0, 24(%r12)
	movq	-48(%rbp), %rdi
	je	LBB0_32
## %bb.31:
	callq	_efree
	movq	_SUCCESS@GOTPCREL(%rip), %r14
	jmp	LBB0_21
LBB0_32:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_php_stream_open_wrapper
	testq	%rax, %rax
	je	LBB0_40
## %bb.33:
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_phar_get_efp
	testl	%eax, %eax
	jne	LBB0_38
## %bb.34:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	%rax, %r13
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_phar_open_entry_fp
	cmpl	%eax, %ebx
	jne	LBB0_38
## %bb.35:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.36:
	movq	(%rdi), %r9
	leaq	L_.str.10(%rip), %rdx
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_49
LBB0_37:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.7(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	movq	-48(%rbp), %rdi
	callq	_efree
	movq	-72(%rbp), %rdi
	callq	_efree
	jmp	LBB0_21
LBB0_38:
	movl	(%r14), %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_phar_seek_efp
	cmpl	%eax, %ebx
	jne	LBB0_42
## %bb.39:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.12(%rip), %rdx
	jmp	LBB0_46
LBB0_40:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.9(%rip), %rdx
LBB0_41:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	movq	-48(%rbp), %rdi
	callq	_efree
	jmp	LBB0_21
LBB0_42:
	movq	_SUCCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_phar_get_efp
	movl	20(%r12), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_php_stream_copy_to_stream_ex
	cmpl	%eax, %ebx
	jne	LBB0_45
## %bb.43:
	movq	%r15, %rdi
	callq	_php_stream_close
	movq	_PHAR_ENT_PERM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	16(%r12), %esi
	movq	_FAILURE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	-48(%rbp), %rdi
	callq	_VCWD_CHMOD
	cmpl	%eax, %ebx
	jne	LBB0_47
## %bb.44:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.14(%rip), %rdx
	jmp	LBB0_41
LBB0_45:
	movq	8(%r12), %rcx
	movq	-48(%rbp), %r8
	leaq	L_.str.13(%rip), %rdx
LBB0_46:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_50
LBB0_47:
	movq	-48(%rbp), %rdi
	callq	_efree
	movq	%r13, %r14
	jmp	LBB0_21
LBB0_48:
	leaq	L_.str.11(%rip), %rdx
	xorl	%edi, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%eax, %eax
	callq	_spprintf
LBB0_49:
	movq	%r13, %r14
LBB0_50:
	movq	-48(%rbp), %rdi
	callq	_efree
	movq	%r15, %rdi
	callq	_php_stream_close
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".phar"

	.comm	_DEFAULT_SLASH,1,0              ## @DEFAULT_SLASH
	.comm	_CWD_EXPAND,4,2                 ## @CWD_EXPAND
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Cannot extract \"%s...\" to \"%s...\", extracted filename is too long for filesystem"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot extract \"%s\", internal error"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"%s/%s"

	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
L_.str.4:                               ## @.str.4
	.asciz	"Cannot extract \"%s\" to \"%s...\", extracted filename is too long for filesystem"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot extract \"%s\" to \"%s\", path already exists"

	.comm	_PHAR_ENT_PERM_MASK,4,2         ## @PHAR_ENT_PERM_MASK
	.comm	_PHP_STREAM_MKDIR_RECURSIVE,4,2 ## @PHP_STREAM_MKDIR_RECURSIVE
L_.str.7:                               ## @.str.7
	.asciz	"Cannot extract \"%s\", could not create directory \"%s\""

L_.str.8:                               ## @.str.8
	.asciz	"w+b"

	.comm	_REPORT_ERRORS,4,2              ## @REPORT_ERRORS
L_.str.9:                               ## @.str.9
	.asciz	"Cannot extract \"%s\", could not open for writing \"%s\""

L_.str.10:                              ## @.str.10
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to open internal file pointer: %s"

L_.str.11:                              ## @.str.11
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to open internal file pointer"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.12:                              ## @.str.12
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer"

L_.str.13:                              ## @.str.13
	.asciz	"Cannot extract \"%s\" to \"%s\", copying contents failed"

L_.str.14:                              ## @.str.14
	.asciz	"Cannot extract \"%s\" to \"%s\", setting file permissions failed"

	.no_dead_strip	_phar_extract_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_extract_file
_phar_extract_file:                     ; @phar_extract_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	ldr	x8, [x1, #32]
Lloh0:
	adrp	x25, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SUCCESS@GOTPAGEOFF]
	cbnz	x8, LBB0_33
; %bb.1:
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w8, [x1]
	cmp	w8, #5
	b.lo	LBB0_3
; %bb.2:
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_memcmp
	cbz	w0, LBB0_32
LBB0_3:
	mov	w0, #2
	bl	_emalloc
	str	x0, [sp, #16]
Lloh4:
	adrp	x8, _DEFAULT_SLASH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEFAULT_SLASH@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x0]
	ldr	x8, [sp, #16]
	strb	wzr, [x8, #1]
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	x1, [x20, #8]
Lloh6:
	adrp	x8, _CWD_EXPAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CWD_EXPAND@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x0, sp, #16
	mov	x2, #0
	bl	_virtual_file_ex
	ldr	w26, [sp, #24]
	cmp	x0, #0
	ccmp	w26, #1, #4, eq
	b.gt	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #51
	b.lt	LBB0_11
; %bb.6:
	ldr	x0, [x20, #8]
	mov	w1, #50
	bl	_estrndup
	mov	x20, x0
	str	x22, [sp]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #4096
	mov	x3, x20
	bl	_spprintf
	mov	x0, x20
	b	LBB0_18
LBB0_7:
	ldr	x8, [sp, #16]
	add	x24, x8, #1
	str	x24, [sp]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #32
	mov	w1, #0
	mov	x3, x22
	bl	_spprintf
Lloh19:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_12
; %bb.8:
	cbz	x0, LBB0_15
; %bb.9:
	ldr	x0, [sp, #32]
	bl	_php_check_open_basedir
	cbz	x0, LBB0_22
; %bb.10:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_11:
	ldr	x3, [x20, #8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #4096
	bl	_spprintf
	b	LBB0_19
LBB0_12:
	ldr	x8, [sp, #32]
	strb	wzr, [x8, #50]
	ldr	w9, [x20]
	ldr	x3, [x20, #8]
	cmp	w9, #51
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x3
	mov	w1, #50
	bl	_estrndup
	mov	x20, x0
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #4096
	mov	x3, x20
	bl	_spprintf
	mov	x0, x20
	bl	_efree
	b	LBB0_17
LBB0_14:
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
	ldr	x3, [x20, #8]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	w1, #4096
	bl	_spprintf
LBB0_17:
	ldr	x0, [sp, #32]
LBB0_18:
	bl	_efree
LBB0_19:
	ldr	x0, [sp, #16]
LBB0_20:
	bl	_efree
LBB0_21:
Lloh32:
	adrp	x25, _FAILURE@GOTPAGE
Lloh33:
	ldr	x25, [x25, _FAILURE@GOTPAGEOFF]
	b	LBB0_33
LBB0_22:
	cbnz	w23, LBB0_25
; %bb.23:
	ldr	w22, [x25]
	ldr	x0, [sp, #32]
	add	x1, sp, #44
	bl	_php_stream_stat_path
	cmp	w22, w0
	b.ne	LBB0_25
; %bb.24:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh34:
	adrp	x2, l_.str.6@PAGE
Lloh35:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_25:
	sub	w2, w26, #1
	mov	w23, #47
	mov	x0, x24
	mov	w1, #47
	bl	_zend_memrchr
	ldr	x8, [sp, #32]
	sub	x9, x21, x24
	add	x9, x9, x0
	cmp	x0, #0
	csinc	x21, x21, x9, eq
	strb	wzr, [x8, x21]
Lloh36:
	adrp	x22, _FAILURE@GOTPAGE
Lloh37:
	ldr	x22, [x22, _FAILURE@GOTPAGEOFF]
	ldr	w24, [x22]
	ldr	x0, [sp, #32]
	add	x1, sp, #44
	bl	_php_stream_stat_path
	cmp	w24, w0
	b.ne	LBB0_30
; %bb.26:
	ldr	x8, [x20, #24]
	ldr	x0, [sp, #32]
	cbz	x8, LBB0_28
; %bb.27:
Lloh38:
	adrp	x8, _PHAR_ENT_PERM_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PHAR_ENT_PERM_MASK@GOTPAGEOFF]
	ldr	w9, [x20, #16]
Lloh40:
	ldr	w8, [x8]
	and	w1, w8, w9
Lloh41:
	adrp	x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	b	LBB0_29
LBB0_28:
Lloh44:
	adrp	x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PHP_STREAM_MKDIR_RECURSIVE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	w1, #511
LBB0_29:
	mov	x3, #0
	bl	_php_stream_mkdir
	cbz	w0, LBB0_39
LBB0_30:
	ldr	x8, [sp, #32]
	strb	w23, [x8, x21]
	ldr	x0, [sp, #16]
	bl	_efree
	ldr	x8, [x20, #24]
	ldr	x0, [sp, #32]
	cbz	x8, LBB0_34
LBB0_31:
	bl	_efree
LBB0_32:
Lloh47:
	adrp	x25, _SUCCESS@GOTPAGE
Lloh48:
	ldr	x25, [x25, _SUCCESS@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x25]
	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
	add	sp, sp, #128
	ret
LBB0_34:
Lloh49:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x3, #0
	bl	_php_stream_open_wrapper
	cbz	x0, LBB0_42
; %bb.35:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_phar_get_efp
	cbnz	w0, LBB0_40
; %bb.36:
	ldr	w23, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_phar_open_entry_fp
	cmp	w23, w0
	b.ne	LBB0_40
; %bb.37:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	cbz	x19, LBB0_49
; %bb.38:
	ldr	x9, [x19]
	stp	x8, x9, [sp]
Lloh54:
	adrp	x2, l_.str.10@PAGE
Lloh55:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	b	LBB0_50
LBB0_39:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh56:
	adrp	x2, l_.str.7@PAGE
Lloh57:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_40:
	ldr	w23, [x22]
Lloh58:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_phar_seek_efp
	cmp	w23, w0
	b.ne	LBB0_44
; %bb.41:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh61:
	adrp	x2, l_.str.12@PAGE
Lloh62:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	b	LBB0_50
LBB0_42:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh63:
	adrp	x2, l_.str.9@PAGE
Lloh64:
	add	x2, x2, l_.str.9@PAGEOFF
LBB0_43:
	mov	x0, x19
	mov	w1, #4096
	bl	_spprintf
	ldr	x0, [sp, #32]
	b	LBB0_20
LBB0_44:
	ldr	w23, [x25]
	mov	x0, x20
	mov	w1, #0
	bl	_phar_get_efp
	ldr	w2, [x20, #20]
	mov	x1, x21
	mov	x3, #0
	bl	_php_stream_copy_to_stream_ex
	cmp	w23, w0
	b.ne	LBB0_47
; %bb.45:
	mov	x0, x21
	bl	_php_stream_close
	ldr	w8, [x20, #16]
Lloh65:
	adrp	x9, _PHAR_ENT_PERM_MASK@GOTPAGE
Lloh66:
	ldr	x9, [x9, _PHAR_ENT_PERM_MASK@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	and	w1, w9, w8
	ldr	w21, [x22]
	ldr	x0, [sp, #32]
	bl	_VCWD_CHMOD
	cmp	w21, w0
	b.ne	LBB0_48
; %bb.46:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh68:
	adrp	x2, l_.str.14@PAGE
Lloh69:
	add	x2, x2, l_.str.14@PAGEOFF
	b	LBB0_43
LBB0_47:
	ldr	x3, [x20, #8]
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh70:
	adrp	x2, l_.str.13@PAGE
Lloh71:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x19
	b	LBB0_50
LBB0_48:
	ldr	x0, [sp, #32]
	b	LBB0_31
LBB0_49:
	str	x8, [sp]
Lloh72:
	adrp	x2, l_.str.11@PAGE
Lloh73:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, #0
LBB0_50:
	mov	w1, #4096
	bl	_spprintf
	ldr	x0, [sp, #32]
	bl	_efree
	mov	x0, x21
	bl	_php_stream_close
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".phar"

	.comm	_DEFAULT_SLASH,1,0              ; @DEFAULT_SLASH
	.comm	_CWD_EXPAND,4,2                 ; @CWD_EXPAND
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Cannot extract \"%s...\" to \"%s...\", extracted filename is too long for filesystem"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot extract \"%s\", internal error"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"%s/%s"

	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
l_.str.4:                               ; @.str.4
	.asciz	"Cannot extract \"%s\" to \"%s...\", extracted filename is too long for filesystem"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot extract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot extract \"%s\" to \"%s\", path already exists"

	.comm	_PHAR_ENT_PERM_MASK,4,2         ; @PHAR_ENT_PERM_MASK
	.comm	_PHP_STREAM_MKDIR_RECURSIVE,4,2 ; @PHP_STREAM_MKDIR_RECURSIVE
l_.str.7:                               ; @.str.7
	.asciz	"Cannot extract \"%s\", could not create directory \"%s\""

l_.str.8:                               ; @.str.8
	.asciz	"w+b"

	.comm	_REPORT_ERRORS,4,2              ; @REPORT_ERRORS
l_.str.9:                               ; @.str.9
	.asciz	"Cannot extract \"%s\", could not open for writing \"%s\""

l_.str.10:                              ; @.str.10
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to open internal file pointer: %s"

l_.str.11:                              ; @.str.11
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to open internal file pointer"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.12:                              ; @.str.12
	.asciz	"Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer"

l_.str.13:                              ; @.str.13
	.asciz	"Cannot extract \"%s\" to \"%s\", copying contents failed"

l_.str.14:                              ; @.str.14
	.asciz	"Cannot extract \"%s\" to \"%s\", setting file permissions failed"

	.no_dead_strip	_phar_extract_file
.subsections_via_symbols
