	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixRead
_unixRead:                              ## @unixRead
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_assert
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setg	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_seekAndRead
	cmpl	%r12d, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_storeLastErrno
	movl	%ebx, %eax
	addq	%rax, %r14
	subl	%ebx, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	_SQLITE_IOERR_SHORT_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SQLITE_IOERR_READ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_IOERR_READ,4,2          ## @SQLITE_IOERR_READ
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ## @SQLITE_IOERR_SHORT_READ
	.comm	_PENDING_BYTE,4,2               ## @PENDING_BYTE
	.no_dead_strip	_unixRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixRead
_unixRead:                              ; @unixRead
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_assert
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	cmp	w19, #0
	cset	w0, gt
	bl	_assert
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_seekAndRead
	cmp	w0, w19
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_storeLastErrno
	add	x0, x20, w22, uxtw
	sub	w2, w19, w22
	mov	w1, #0
	bl	_memset
Lloh2:
	adrp	x8, _SQLITE_IOERR_SHORT_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_IOERR_SHORT_READ@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _SQLITE_IOERR_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_IOERR_READ@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_IOERR_READ,4,2          ; @SQLITE_IOERR_READ
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ; @SQLITE_IOERR_SHORT_READ
	.comm	_PENDING_BYTE,4,2               ; @PENDING_BYTE
	.no_dead_strip	_unixRead
.subsections_via_symbols
