	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decodeFlags
_decodeFlags:                           ## @decodeFlags
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$1, 4(%rdi)
	movl	%esi, %r14d
	movl	$100, %ecx
	cmovnel	%eax, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, (%rbx)
	sete	%dil
	callq	_assert
	movq	48(%rbx), %rax
	movl	20(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	%r14d, %eax
	sarl	$3, %eax
	movl	%eax, 8(%rbx)
	movq	_PTF_LEAF@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	$8, (%r15)
	sete	%dil
	callq	_assert
	movl	(%r15), %eax
	notl	%eax
	andl	%r14d, %eax
	movl	8(%rbx), %ecx
	shll	$2, %ecx
	movl	$4, %edx
	subl	%ecx, %edx
	movl	%edx, 12(%rbx)
	movq	_cellSizePtr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	48(%rbx), %r14
	movq	_PTF_LEAFDATA@GOTPCREL(%rip), %r12
	movq	_PTF_INTKEY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	cmpl	$5, %eax
	sete	%dil
	callq	_assert
	movl	(%r13), %eax
	orl	(%r12), %eax
	orl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	$13, %eax
	sete	%dil
	callq	_assert
	movl	$1, 16(%rbx)
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_btreeParseCellPtr@GOTPCREL(%rip), %rax
	movl	$1, %ecx
	jmp	LBB0_4
LBB0_5:
	movq	_PTF_ZERODATA@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	cmpl	$2, %eax
	sete	%dil
	callq	_assert
	movl	(%r15), %eax
	orl	(%r12), %eax
	xorl	%edi, %edi
	cmpl	$10, %eax
	sete	%dil
	callq	_assert
	movq	$0, 16(%rbx)
	movq	_btreeParseCellPtrIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 32(%rbx)
	leaq	4(%r14), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SQLITE_CORRUPT_PAGE            ## TAILCALL
LBB0_3:
	movq	_cellSizePtrNoPayload@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_btreeParseCellPtrNoPayload@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
LBB0_4:
	movl	(%rax), %eax
	movl	%ecx, 20(%rbx)
	movl	%eax, 36(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 32(%rbx)
	leaq	12(%r14), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTF_LEAF,4,2                   ## @PTF_LEAF
	.comm	_cellSizePtr,4,2                ## @cellSizePtr
	.comm	_PTF_LEAFDATA,4,2               ## @PTF_LEAFDATA
	.comm	_PTF_INTKEY,4,2                 ## @PTF_INTKEY
	.comm	_btreeParseCellPtr,4,2          ## @btreeParseCellPtr
	.comm	_cellSizePtrNoPayload,4,2       ## @cellSizePtrNoPayload
	.comm	_btreeParseCellPtrNoPayload,4,2 ## @btreeParseCellPtrNoPayload
	.comm	_PTF_ZERODATA,4,2               ## @PTF_ZERODATA
	.comm	_btreeParseCellPtrIndex,4,2     ## @btreeParseCellPtrIndex
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_decodeFlags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decodeFlags
_decodeFlags:                           ; @decodeFlags
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	mov	w10, #100
	cmp	w9, #1
	csel	w9, w10, wzr, eq
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #20]
	bl	_sqlite3_mutex_held
	bl	_assert
	asr	w8, w20, #3
	str	w8, [x19, #8]
Lloh0:
	adrp	x21, _PTF_LEAF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PTF_LEAF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	bic	w8, w20, w8
	ldr	w9, [x19, #8]
	mov	w10, #4
	sub	w9, w10, w9, lsl #2
Lloh2:
	adrp	x10, _cellSizePtr@GOTPAGE
Lloh3:
	ldr	x10, [x10, _cellSizePtr@GOTPAGEOFF]
	str	w9, [x19, #12]
Lloh4:
	ldr	w9, [x10]
	str	w9, [x19, #40]
	ldr	x20, [x19, #48]
Lloh5:
	adrp	x22, _PTF_LEAFDATA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PTF_LEAFDATA@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh7:
	adrp	x23, _PTF_INTKEY@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PTF_INTKEY@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	cmp	w8, #5
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	cmp	w8, #13
	cset	w0, eq
	bl	_assert
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_6
; %bb.2:
Lloh9:
	adrp	x9, _btreeParseCellPtr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _btreeParseCellPtr@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh11:
	adrp	x22, _PTF_ZERODATA@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PTF_ZERODATA@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	cmp	w8, #2
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	cmp	w8, #10
	cset	w0, eq
	bl	_assert
Lloh13:
	adrp	x8, _btreeParseCellPtrIndex@GOTPAGE
Lloh14:
	ldr	x8, [x8, _btreeParseCellPtrIndex@GOTPAGEOFF]
	str	xzr, [x19, #16]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w9, w8, [x19, #32]
	add	x8, x20, #4
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SQLITE_CORRUPT_PAGE
LBB0_6:
	mov	w8, #0
Lloh16:
	adrp	x9, _cellSizePtrNoPayload@GOTPAGE
Lloh17:
	ldr	x9, [x9, _cellSizePtrNoPayload@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x19, #40]
Lloh19:
	adrp	x9, _btreeParseCellPtrNoPayload@GOTPAGE
Lloh20:
	ldr	x9, [x9, _btreeParseCellPtrNoPayload@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	str	w8, [x19, #20]
	str	w9, [x19, #36]
	ldr	w8, [x20, #16]
	str	w8, [x19, #32]
	add	x8, x20, #12
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #24]
Lloh21:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PTF_LEAF,4,2                   ; @PTF_LEAF
	.comm	_cellSizePtr,4,2                ; @cellSizePtr
	.comm	_PTF_LEAFDATA,4,2               ; @PTF_LEAFDATA
	.comm	_PTF_INTKEY,4,2                 ; @PTF_INTKEY
	.comm	_btreeParseCellPtr,4,2          ; @btreeParseCellPtr
	.comm	_cellSizePtrNoPayload,4,2       ; @cellSizePtrNoPayload
	.comm	_btreeParseCellPtrNoPayload,4,2 ; @btreeParseCellPtrNoPayload
	.comm	_PTF_ZERODATA,4,2               ; @PTF_ZERODATA
	.comm	_btreeParseCellPtrIndex,4,2     ; @btreeParseCellPtrIndex
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_decodeFlags
.subsections_via_symbols
