	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_filesystem_file_read
_spl_filesystem_file_read:              ## @spl_filesystem_file_read
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movl	$1, %r15d
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	callq	_Z_ISUNDEF
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
LBB0_2:
	movq	%rbx, %rdi
	callq	_spl_filesystem_file_free_line
	movl	28(%rbx), %edi
	callq	_php_stream_eof
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_FAILURE@GOTPCREL(%rip), %r15
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.4:
	movq	_spl_ce_RuntimeException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_zend_throw_exception_ex
	jmp	LBB0_15
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_8
## %bb.6:
	incq	%rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_safe_emalloc
	movq	%rax, %r14
	movl	28(%rbx), %edi
	movq	8(%rbx), %rdx
	incq	%rdx
	leaq	-32(%rbp), %rcx
	movq	%rax, %rsi
	callq	_php_stream_get_line
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	-32(%rbp), %rax
	movb	$0, (%r14,%rax)
	jmp	LBB0_11
LBB0_8:
	movl	28(%rbx), %edi
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_php_stream_get_line
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	movl	40(%rbx), %edi
	movq	_SPL_FILE_OBJECT_DROP_NEW_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SPL_HAS_FLAG
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	movq	%rax, -32(%rbp)
	movb	$0, (%r14,%rax)
LBB0_13:
	movq	%r14, (%rbx)
	movq	-32(%rbp), %rax
	jmp	LBB0_14
LBB0_7:
	movq	%r14, %rdi
	callq	_efree
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_estrdup
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 16(%rbx)
	addl	%r15d, 24(%rbx)
	movq	_SUCCESS@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	"Cannot read from file %s"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_SPL_FILE_OBJECT_DROP_NEW_LINE,4,2 ## @SPL_FILE_OBJECT_DROP_NEW_LINE
L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_spl_filesystem_file_read
.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_read
_spl_filesystem_file_read:              ; @spl_filesystem_file_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_Z_ISUNDEF
	cmp	w0, #0
	cset	w21, eq
LBB0_3:
	mov	x0, x19
	bl	_spl_filesystem_file_free_line
	ldr	w0, [x19, #28]
	bl	_php_stream_eof
	cbz	x0, LBB0_7
; %bb.4:
	cbnz	w20, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _spl_ce_RuntimeException@GOTPAGE
Lloh1:
	ldr	x8, [x8, _spl_ce_RuntimeException@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x19, #44]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
LBB0_6:
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.8:
	add	x0, x8, #1
	mov	w1, #1
	mov	w2, #0
	bl	_safe_emalloc
	mov	x20, x0
	ldr	w0, [x19, #28]
	ldr	x8, [x19, #8]
	add	x2, x8, #1
	add	x3, sp, #8
	mov	x1, x20
	bl	_php_stream_get_line
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [sp, #8]
	strb	wzr, [x20, x8]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #28]
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_php_stream_get_line
	mov	x20, x0
	cbz	x0, LBB0_15
LBB0_11:
	ldr	w0, [x19, #40]
Lloh7:
	adrp	x8, _SPL_FILE_OBJECT_DROP_NEW_LINE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPL_FILE_OBJECT_DROP_NEW_LINE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_SPL_HAS_FLAG
	cbz	x0, LBB0_13
; %bb.12:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcspn
	str	x0, [sp, #8]
	strb	wzr, [x20, x0]
LBB0_13:
	str	x20, [x19]
	ldr	x8, [sp, #8]
	b	LBB0_16
LBB0_14:
	mov	x0, x20
	bl	_efree
LBB0_15:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_estrdup
	mov	x8, #0
	str	x0, [x19]
LBB0_16:
	str	x8, [x19, #16]
	ldr	w8, [x19, #24]
	add	w8, w8, w21
	str	w8, [x19, #24]
Lloh14:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_spl_ce_RuntimeException,4,2    ; @spl_ce_RuntimeException
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot read from file %s"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_SPL_FILE_OBJECT_DROP_NEW_LINE,4,2 ; @SPL_FILE_OBJECT_DROP_NEW_LINE
l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_spl_filesystem_file_read
.subsections_via_symbols
