	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_stream_flush
_phar_stream_flush:                     ## @phar_stream_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	xorl	%edi, %edi
	callq	_time
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	leaq	-32(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_phar_flush
	movl	%eax, %r14d
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_php_stream_wrapper_log_error
	movq	-32(%rbp), %rdi
	callq	_efree
	jmp	LBB0_4
LBB0_3:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_ERRORS,4,2              ## @REPORT_ERRORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_phar_stream_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_stream_flush
_phar_stream_flush:                     ; @phar_stream_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #0
	bl	_time
	ldr	x8, [x20, #8]
	str	w0, [x8]
	ldr	w0, [x20]
	add	x4, sp, #8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_phar_flush
	mov	x20, x0
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _REPORT_ERRORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_ERRORS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_php_stream_wrapper_log_error
	ldr	x0, [sp, #8]
	bl	_efree
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EOF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_ERRORS,4,2              ; @REPORT_ERRORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_phar_stream_flush
.subsections_via_symbols
