	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_copy_file_contents
_phar_copy_file_contents:               ## @phar_copy_file_contents
	.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	$24, %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, %r12
	movq	_FAILURE@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_phar_open_entry_fp
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.1:
	movq	-56(%rbp), %r9
	movq	_spl_ce_UnexpectedValueException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r12), %rax
	movl	(%rax), %ecx
	movl	32(%r12), %r8d
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
	movq	-56(%rbp), %rdi
	callq	_efree
	jmp	LBB0_9
LBB0_4:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_phar_seek_efp
	movq	%r14, %rdi
	callq	_php_stream_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_phar_get_link_source
	movq	%rax, %rbx
	testq	%rax, %rax
	cmoveq	%r12, %rbx
	movq	_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_phar_get_efp
	movl	48(%rbx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_php_stream_copy_to_stream_ex
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.6:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	(%r12), %rax
	movq	_PHAR_MOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	16(%r12), %rax
	movq	%rax, 24(%r12)
	movq	$0, 16(%r12)
LBB0_8:
	movq	_PHAR_FP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	%edx, 8(%r12)
	jmp	LBB0_9
LBB0_5:
	movq	_spl_ce_UnexpectedValueException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r12), %rax
	movl	(%rax), %ecx
	movl	32(%r12), %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
	movq	_FAILURE@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
LBB0_9:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_spl_ce_UnexpectedValueException,4,2 ## @spl_ce_UnexpectedValueException
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Cannot convert phar archive \"%s\", unable to copy entry \"%s\" contents"

	.comm	_PHAR_MOD,8,3                   ## @PHAR_MOD
	.comm	_PHAR_FP,8,3                    ## @PHAR_FP
	.no_dead_strip	_phar_copy_file_contents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_copy_file_contents
_phar_copy_file_contents:               ; @phar_copy_file_contents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_phar_open_entry_fp
	cmp	x21, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _spl_ce_UnexpectedValueException@GOTPAGE
Lloh4:
	ldr	x9, [x9, _spl_ce_UnexpectedValueException@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	x9, [x19, #40]
	ldr	w3, [x9]
	ldr	w4, [x19, #32]
	cbz	x8, LBB0_8
; %bb.2:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	str	x8, [sp]
	mov	w1, #0
	bl	_zend_throw_exception_ex
	ldr	x0, [sp, #8]
	bl	_efree
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #1
	bl	_phar_seek_efp
	mov	x0, x20
	bl	_php_stream_tell
	mov	x21, x0
	mov	x0, x19
	bl	_phar_get_link_source
	cmp	x0, #0
	csel	x22, x19, x0, eq
Lloh11:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_phar_get_efp
	ldr	w2, [x22, #48]
	mov	x1, x20
	mov	x3, #0
	bl	_php_stream_copy_to_stream_ex
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _PHAR_MOD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PHAR_MOD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	stp	xzr, x8, [x19, #16]
LBB0_6:
Lloh17:
	adrp	x8, _PHAR_FP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHAR_FP@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19]
	str	w21, [x19, #8]
Lloh20:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh22:
	adrp	x8, _spl_ce_UnexpectedValueException@GOTPAGE
Lloh23:
	ldr	x8, [x8, _spl_ce_UnexpectedValueException@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x19, #40]
	ldr	w3, [x8]
	ldr	w4, [x19, #32]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	w1, #0
	bl	_zend_throw_exception_ex
LBB0_10:
Lloh29:
	adrp	x8, _FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_spl_ce_UnexpectedValueException,4,2 ; @spl_ce_UnexpectedValueException
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Cannot convert phar archive \"%s\", unable to copy entry \"%s\" contents"

	.comm	_PHAR_MOD,8,3                   ; @PHAR_MOD
	.comm	_PHAR_FP,8,3                    ; @PHAR_FP
	.no_dead_strip	_phar_copy_file_contents
.subsections_via_symbols
