	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_sqlite3_stream_read
_php_sqlite3_stream_read:               ## @php_sqlite3_stream_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	8(%rdi), %r14
	movq	(%r14), %rcx
	movq	8(%r14), %rax
	addq	%rcx, %rdx
	cmpq	%rax, %rdx
	jb	LBB0_2
## %bb.1:
	subq	%rcx, %rax
	movl	$1, (%rdi)
	movq	%rax, %rbx
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movl	16(%r14), %edi
	movq	%rbx, %rdx
	callq	_sqlite3_blob_read
	movq	%rax, %rcx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	addq	%rbx, (%r14)
LBB0_5:
	movl	%ebx, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,8,3                  ## @SQLITE_OK
	.no_dead_strip	_php_sqlite3_stream_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_sqlite3_stream_read
_php_sqlite3_stream_read:               ; @php_sqlite3_stream_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x20, [x0, #8]
	ldp	x3, x8, [x20]
	add	x9, x3, x2
	cmp	x9, x8
	b.lo	LBB0_2
; %bb.1:
	sub	x19, x8, x3
	mov	w8, #1
	str	w8, [x0]
LBB0_2:
	cbz	x19, LBB0_6
; %bb.3:
	ldr	w0, [x20, #16]
	mov	x2, x19
	bl	_sqlite3_blob_read
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,8,3                  ; @SQLITE_OK
	.no_dead_strip	_php_sqlite3_stream_read
.subsections_via_symbols
