	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corruptSchema
_corruptSchema:                         ## @corruptSchema
	.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	%rdi, %r14
	movq	16(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	_SQLITE_RecoveryMode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%rdx, %r15
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rcx
	cmovneq	%rsi, %rcx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_sqlite3SetString
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movq	%r15, %r8
	callq	_sqlite3MAppendf
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_RecoveryMode,4,2        ## @SQLITE_RecoveryMode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?"

L_.str.1:                               ## @.str.1
	.asciz	"malformed database schema (%s)"

L_.str.2:                               ## @.str.2
	.asciz	"%s - %s"

	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_corruptSchema
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corruptSchema
_corruptSchema:                         ; @corruptSchema
	.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	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SQLITE_RecoveryMode@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SQLITE_RecoveryMode@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x21, x2
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x3, x8, x1, eq
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_sqlite3SetString
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x1
	mov	x4, x21
	bl	_sqlite3MAppendf
	ldr	x8, [x19, #8]
	str	w0, [x8]
LBB0_4:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _SQLITE_NOMEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh11:
	adrp	x10, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_RecoveryMode,4,2        ; @SQLITE_RecoveryMode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?"

l_.str.1:                               ; @.str.1
	.asciz	"malformed database schema (%s)"

l_.str.2:                               ; @.str.2
	.asciz	"%s - %s"

	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_corruptSchema
.subsections_via_symbols
