	.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, %r15
	movq	24(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	(%rcx), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_13
LBB0_2:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdx, %r14
	movq	_INITFLAG_AlterTable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sqlite3DbStrDup
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	(%r15), %rdx
	movq	%rax, (%rdx)
	jmp	LBB0_12
LBB0_5:
	movq	_SQLITE_WriteSchema@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_7:
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rdx
	cmovneq	%rsi, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sqlite3MPrintf
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	cmpb	$0, (%r14)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_sqlite3MPrintf
LBB0_10:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM_BKPT,8,3          ## @SQLITE_NOMEM_BKPT
	.comm	_INITFLAG_AlterTable,4,2        ## @INITFLAG_AlterTable
	.comm	_SQLITE_ERROR,8,3               ## @SQLITE_ERROR
	.comm	_SQLITE_WriteSchema,4,2         ## @SQLITE_WriteSchema
	.comm	_SQLITE_CORRUPT_BKPT,8,3        ## @SQLITE_CORRUPT_BKPT
	.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	"%z - %s"

	.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:
	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	x19, x0
	ldr	x21, [x0, #24]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_4:
	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_5:
	mov	x20, x2
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _INITFLAG_AlterTable@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INITFLAG_AlterTable@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_sqlite3DbStrDup
	mov	x2, x0
Lloh5:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	x9, [x19]
	str	x2, [x9]
	b	LBB0_2
LBB0_8:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _SQLITE_WriteSchema@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SQLITE_WriteSchema@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh12:
	adrp	x8, l_.str@PAGE
Lloh13:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x2, x8, x1, eq
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sqlite3MPrintf
	mov	x2, x0
	cbz	x20, LBB0_13
; %bb.11:
	ldrb	w8, [x20]
	cbz	w8, LBB0_13
; %bb.12:
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_sqlite3MPrintf
	mov	x2, x0
LBB0_13:
Lloh18:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM_BKPT,8,3          ; @SQLITE_NOMEM_BKPT
	.comm	_INITFLAG_AlterTable,4,2        ; @INITFLAG_AlterTable
	.comm	_SQLITE_ERROR,8,3               ; @SQLITE_ERROR
	.comm	_SQLITE_WriteSchema,4,2         ; @SQLITE_WriteSchema
	.comm	_SQLITE_CORRUPT_BKPT,8,3        ; @SQLITE_CORRUPT_BKPT
	.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	"%z - %s"

	.no_dead_strip	_corruptSchema
.subsections_via_symbols
