	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_filesystem_file_read_line_ex
_spl_filesystem_file_read_line_ex:      ## @spl_filesystem_file_read_line_ex
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	48(%rsi), %edi
	movq	_SPL_FILE_OBJECT_READ_CSV@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_SPL_HAS_FLAG
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	_spl_ce_SplFileObject@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.17:
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spl_filesystem_file_read       ## TAILCALL
LBB0_2:
	movl	44(%r15), %edi
	callq	_php_stream_eof
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_spl_ce_RuntimeException@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	52(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_zend_throw_exception_ex
	jmp	LBB0_5
LBB0_6:
	movl	48(%r15), %edi
	movl	(%r12), %esi
	callq	_SPL_HAS_FLAG
	testq	%rax, %rax
	je	LBB0_7
## %bb.16:
	movl	40(%r15), %esi
	movl	32(%r15), %ecx
	movl	36(%r15), %edx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spl_filesystem_file_read_csv   ## TAILCALL
LBB0_7:
	movq	_current_execute_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	movq	%r14, %rdi
	callq	_Z_OBJ_P
	movl	%eax, %ebx
	movq	_ZEND_THIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Z_OBJCE_P
	leaq	24(%r15), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-36(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_zend_call_method_with_0_params
	movl	-36(%rbp), %edi
	callq	_Z_ISUNDEF
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	$0, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_Z_ISUNDEF
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	incl	16(%r15)
LBB0_11:
	movq	%r15, %rdi
	callq	_spl_filesystem_file_free_line
	movl	-36(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	-36(%rbp), %edi
	callq	_Z_STRVAL
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_Z_STRLEN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_estrndup
	movq	%rax, 8(%r15)
	movl	-36(%rbp), %edi
	callq	_Z_STRLEN
	movl	%eax, 4(%r15)
	jmp	LBB0_14
LBB0_13:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ZVAL_COPY_DEREF
LBB0_14:
	leaq	-36(%rbp), %rdi
	callq	_zval_ptr_dtor
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SPL_FILE_OBJECT_READ_CSV,4,2   ## @SPL_FILE_OBJECT_READ_CSV
	.comm	_spl_ce_SplFileObject,8,3       ## @spl_ce_SplFileObject
	.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
	.comm	_current_execute_data,4,2       ## @current_execute_data
	.comm	_ZEND_THIS,4,2                  ## @ZEND_THIS
L_.str.1:                               ## @.str.1
	.asciz	"getCurrentLine"

	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_spl_filesystem_file_read_line_ex
.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_line_ex
_spl_filesystem_file_read_line_ex:      ; @spl_filesystem_file_read_line_ex
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #48]
Lloh0:
	adrp	x22, _SPL_FILE_OBJECT_READ_CSV@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPL_FILE_OBJECT_READ_CSV@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_SPL_HAS_FLAG
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _spl_ce_SplFileObject@GOTPAGE
Lloh3:
	ldr	x9, [x9, _spl_ce_SplFileObject@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	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
	b	_spl_filesystem_file_read
LBB0_3:
	ldr	w0, [x19, #44]
	bl	_php_stream_eof
	cbz	x0, LBB0_6
; %bb.4:
	cbnz	w21, LBB0_9
; %bb.5:
Lloh5:
	adrp	x8, _spl_ce_RuntimeException@GOTPAGE
Lloh6:
	ldr	x8, [x8, _spl_ce_RuntimeException@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w3, [x19, #52]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #48]
	ldr	w1, [x22]
	bl	_SPL_HAS_FLAG
	cbz	x0, LBB0_8
; %bb.7:
	ldp	w2, w1, [x19, #36]
	ldr	w3, [x19, #32]
	mov	x0, x19
	mov	x4, #0
	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
	b	_spl_filesystem_file_read_csv
LBB0_8:
Lloh10:
	adrp	x8, _current_execute_data@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current_execute_data@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_EG
	mov	x0, x20
	bl	_Z_OBJ_P
	mov	x20, x0
Lloh13:
	adrp	x8, _ZEND_THIS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZEND_THIS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_Z_OBJCE_P
	mov	x1, x0
	add	x2, x19, #24
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #12
	mov	x0, x20
	bl	_zend_call_method_with_0_params
	ldr	w0, [sp, #12]
	bl	_Z_ISUNDEF
	cbz	w0, LBB0_11
LBB0_9:
Lloh18:
	adrp	x8, _FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_10:
	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
LBB0_11:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x19]
	bl	_Z_ISUNDEF
	cbnz	w0, LBB0_14
LBB0_13:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_14:
	mov	x0, x19
	bl	_spl_filesystem_file_free_line
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh20:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [sp, #12]
	bl	_Z_STRVAL
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_Z_STRLEN
	mov	x1, x0
	mov	x0, x20
	bl	_estrndup
	str	x0, [x19, #8]
	ldr	w0, [sp, #12]
	bl	_Z_STRLEN
	str	w0, [x19, #4]
	b	LBB0_17
LBB0_16:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ZVAL_COPY_DEREF
LBB0_17:
	add	x0, sp, #12
	bl	_zval_ptr_dtor
Lloh23:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SPL_FILE_OBJECT_READ_CSV,4,2   ; @SPL_FILE_OBJECT_READ_CSV
	.comm	_spl_ce_SplFileObject,8,3       ; @spl_ce_SplFileObject
	.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
	.comm	_current_execute_data,4,2       ; @current_execute_data
	.comm	_ZEND_THIS,4,2                  ; @ZEND_THIS
l_.str.1:                               ; @.str.1
	.asciz	"getCurrentLine"

	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_spl_filesystem_file_read_line_ex
.subsections_via_symbols
