	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_filesystem_file_open
_spl_filesystem_file_open:              ## @spl_filesystem_file_open
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_SPL_FS_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rdi)
	movq	(%rdi), %rdi
	movl	8(%rbx), %esi
	movq	_FS_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	callq	_php_stat
	movl	-20(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, 24(%rbx)
	movq	$0, (%rbx)
	movq	_spl_ce_LogicException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
	jmp	LBB0_16
LBB0_2:
	movl	64(%rbx), %edi
	xorl	%esi, %esi
	callq	_php_stream_context_from_zval
	movl	%eax, 60(%rbx)
	movq	(%rbx), %rdi
	movq	24(%rbx), %rsi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_USE_PATH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_4:
	movq	_REPORT_ERRORS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_php_stream_open_wrapper_ex
	movq	%rax, 48(%rbx)
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.5:
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpl	$2, %esi
	jl	LBB0_9
## %bb.7:
	movq	(%rbx), %rdi
	decl	%esi
	callq	_IS_SLASH_AT
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	decl	8(%rbx)
LBB0_9:
	movq	48(%rbx), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_estrndup
	movq	%rax, 72(%rbx)
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_estrndup
	movq	%rax, (%rbx)
	movq	24(%rbx), %rdi
	movl	32(%rbx), %esi
	callq	_estrndup
	movq	%rax, 24(%rbx)
	leaq	56(%rbx), %rdi
	movq	48(%rbx), %rax
	movl	8(%rax), %esi
	callq	_ZVAL_RES
	movw	$8748, 36(%rbx)                 ## imm = 0x222C
	movb	$92, 38(%rbx)
	movq	16(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$14, %edx
	callq	_zend_hash_str_find_ptr
	movl	%eax, 40(%rbx)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	_spl_ce_RuntimeException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, 8(%rbx)
	je	LBB0_13
## %bb.12:
	movq	(%rbx), %rcx
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rcx
LBB0_14:
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_zend_throw_exception_ex
LBB0_15:
	movq	$0, (%rbx)
	movq	$0, 24(%rbx)
LBB0_16:
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPL_FS_FILE,4,2                ## @SPL_FS_FILE
	.comm	_FS_IS_DIR,4,2                  ## @FS_IS_DIR
	.comm	_IS_TRUE,8,3                    ## @IS_TRUE
	.comm	_spl_ce_LogicException,4,2      ## @spl_ce_LogicException
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot use SplFileObject with directories"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_USE_PATH,4,2                   ## @USE_PATH
	.comm	_REPORT_ERRORS,4,2              ## @REPORT_ERRORS
	.comm	_exception,4,2                  ## @exception
	.comm	_spl_ce_RuntimeException,4,2    ## @spl_ce_RuntimeException
L_.str.1:                               ## @.str.1
	.asciz	"Cannot open file '%s'"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"getcurrentline"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_spl_filesystem_file_open
.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_open
_spl_filesystem_file_open:              ; @spl_filesystem_file_open
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SPL_FS_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPL_FS_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #80]
	ldr	x0, [x0]
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _FS_IS_DIR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FS_IS_DIR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_php_stat
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh6:
	adrp	x8, _IS_TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IS_TRUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19, #24]
	str	xzr, [x19]
Lloh9:
	adrp	x8, _spl_ce_LogicException@GOTPAGE
Lloh10:
	ldr	x8, [x8, _spl_ce_LogicException@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
	b	LBB0_14
LBB0_2:
	ldr	w0, [x19, #64]
	mov	w1, #0
	bl	_php_stream_context_from_zval
	mov	x4, x0
	str	w0, [x19, #60]
	ldr	x0, [x19]
	ldr	x1, [x19, #24]
Lloh14:
	adrp	x8, _USE_PATH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USE_PATH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
Lloh17:
	adrp	x9, _REPORT_ERRORS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REPORT_ERRORS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x3, #0
	bl	_php_stream_open_wrapper_ex
	str	x0, [x19, #48]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.3:
	cbz	x0, LBB0_8
; %bb.4:
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	x0, [x19]
	sub	w1, w8, #1
	bl	_IS_SLASH_AT
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
LBB0_7:
	ldr	x8, [x19, #48]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_estrndup
	str	x0, [x19, #72]
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_estrndup
	str	x0, [x19]
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #32]
	bl	_estrndup
	str	x0, [x19, #24]
	add	x0, x19, #56
	ldr	x8, [x19, #48]
	ldr	w1, [x8, #8]
	bl	_ZVAL_RES
	mov	w8, #8748
	strh	w8, [x19, #36]
	mov	w8, #92
	strb	w8, [x19, #38]
	ldr	x0, [x19, #16]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #14
	bl	_zend_hash_str_find_ptr
	str	w0, [x19, #40]
Lloh22:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh24:
	adrp	x8, _exception@GOTPAGE
Lloh25:
	ldr	x8, [x8, _exception@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_EG
	cbnz	w0, LBB0_13
; %bb.9:
Lloh27:
	adrp	x8, _spl_ce_RuntimeException@GOTPAGE
Lloh28:
	ldr	x8, [x8, _spl_ce_RuntimeException@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x8, l_.str.2@PAGE
Lloh31:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_12:
	str	x8, [sp]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
LBB0_13:
	str	xzr, [x19]
	str	xzr, [x19, #24]
LBB0_14:
Lloh34:
	adrp	x8, _FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SPL_FS_FILE,4,2                ; @SPL_FS_FILE
	.comm	_FS_IS_DIR,4,2                  ; @FS_IS_DIR
	.comm	_IS_TRUE,8,3                    ; @IS_TRUE
	.comm	_spl_ce_LogicException,4,2      ; @spl_ce_LogicException
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot use SplFileObject with directories"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_USE_PATH,4,2                   ; @USE_PATH
	.comm	_REPORT_ERRORS,4,2              ; @REPORT_ERRORS
	.comm	_exception,4,2                  ; @exception
	.comm	_spl_ce_RuntimeException,4,2    ; @spl_ce_RuntimeException
l_.str.1:                               ; @.str.1
	.asciz	"Cannot open file '%s'"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"getcurrentline"

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