	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_filesystem_file_rewind
_spl_filesystem_file_rewind:            ## @spl_filesystem_file_rewind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	callq	_php_stream_rewind
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_spl_filesystem_file_free_line
	movq	$0, 8(%rbx)
	jmp	LBB0_4
LBB0_6:
	movq	_spl_ce_RuntimeException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_zend_throw_exception_ex        ## TAILCALL
LBB0_2:
	movq	_spl_ce_RuntimeException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
LBB0_4:
	movl	(%rbx), %edi
	movq	_SPL_FILE_OBJECT_READ_AHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SPL_HAS_FLAG
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spl_filesystem_file_read_line  ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spl_ce_RuntimeException,4,2    ## @spl_ce_RuntimeException
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Object not initialized"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot rewind file %s"

	.comm	_SPL_FILE_OBJECT_READ_AHEAD,4,2 ## @SPL_FILE_OBJECT_READ_AHEAD
	.no_dead_strip	_spl_filesystem_file_rewind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spl_filesystem_file_rewind
_spl_filesystem_file_rewind:            ; @spl_filesystem_file_rewind
	.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
	mov	x20, x0
	ldr	w0, [x1, #16]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x1
	bl	_php_stream_rewind
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_spl_filesystem_file_free_line
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _spl_ce_RuntimeException@GOTPAGE
Lloh1:
	ldr	x8, [x8, _spl_ce_RuntimeException@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_zend_throw_exception_ex
LBB0_4:
Lloh5:
	adrp	x8, _spl_ce_RuntimeException@GOTPAGE
Lloh6:
	ldr	x8, [x8, _spl_ce_RuntimeException@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
LBB0_5:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _SPL_FILE_OBJECT_READ_AHEAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPL_FILE_OBJECT_READ_AHEAD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_SPL_HAS_FLAG
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_spl_filesystem_file_read_line
LBB0_7:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_spl_ce_RuntimeException,4,2    ; @spl_ce_RuntimeException
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Object not initialized"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot rewind file %s"

	.comm	_SPL_FILE_OBJECT_READ_AHEAD,4,2 ; @SPL_FILE_OBJECT_READ_AHEAD
	.no_dead_strip	_spl_filesystem_file_rewind
.subsections_via_symbols
