	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tabIsReadOnly
_tabIsReadOnly:                         ## @tabIsReadOnly
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_IsVirtual
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3GetVTable
	movq	(%rax), %rax
	movq	(%rax), %r14
LBB0_8:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	sete	%bl
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %eax
	movq	_TF_Readonly@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_TF_Shadow@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, %edx
	orl	%ecx, %edx
	xorl	%ebx, %ebx
	testl	%eax, %edx
	je	LBB0_9
## %bb.3:
	movq	8(%r14), %r15
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_sqlite3WritableSchema
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_5:
	andl	%eax, %edi
	callq	_assert
	movq	_SQLITE_Defensive@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%r15)
	jne	LBB0_9
## %bb.7:
	addq	$16, %r15
	movq	%r15, %r14
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TF_Readonly,4,2                ## @TF_Readonly
	.comm	_TF_Shadow,4,2                  ## @TF_Shadow
	.comm	_SQLITE_Defensive,4,2           ## @SQLITE_Defensive
	.no_dead_strip	_tabIsReadOnly
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tabIsReadOnly
_tabIsReadOnly:                         ; @tabIsReadOnly
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_IsVirtual
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_sqlite3GetVTable
	ldr	x8, [x0]
	ldr	x19, [x8]
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_9
LBB0_3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TF_Readonly@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_Readonly@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _TF_Shadow@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TF_Shadow@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w11, w9, w10
	tst	w11, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	x20, [x19, #8]
	tst	w10, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_sqlite3WritableSchema
	cbnz	x0, LBB0_8
	b	LBB0_2
LBB0_6:
	and	w0, w9, w8
	bl	_assert
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _SQLITE_Defensive@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQLITE_Defensive@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x19, x20, #16
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_Readonly,4,2                ; @TF_Readonly
	.comm	_TF_Shadow,4,2                  ; @TF_Shadow
	.comm	_SQLITE_Defensive,4,2           ; @SQLITE_Defensive
	.no_dead_strip	_tabIsReadOnly
.subsections_via_symbols
