	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	40(%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), %ecx
	notl	%ecx
	andl	%r14d, %ecx
	movl	8(%rbx), %edx
	leal	(,%rdx,4), %eax
	movl	$4, %esi
	subl	%eax, %esi
	movl	%esi, 12(%rbx)
	movq	40(%rbx), %rax
	movq	_PTF_LEAFDATA@GOTPCREL(%rip), %rsi
	movq	_PTF_INTKEY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	cmpl	%edi, %ecx
	jne	LBB0_2
## %bb.1:
	movl	$1, 16(%rbx)
	movl	%edx, 20(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 32(%rbx)
	leaq	12(%rax), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	_PTF_ZERODATA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.4:
	movq	$0, 16(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 32(%rbx)
	leaq	4(%rax), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTF_LEAF,4,2                   ## @PTF_LEAF
	.comm	_PTF_LEAFDATA,4,2               ## @PTF_LEAFDATA
	.comm	_PTF_INTKEY,4,2                 ## @PTF_INTKEY
	.comm	_PTF_ZERODATA,4,2               ## @PTF_ZERODATA
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.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	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	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, #40]
	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	w10, w20, w8
	ldr	w9, [x19, #8]
	mov	w8, #4
	sub	w8, w8, w9, lsl #2
	str	w8, [x19, #12]
	ldr	x8, [x19, #40]
Lloh2:
	adrp	x11, _PTF_LEAFDATA@GOTPAGE
Lloh3:
	ldr	x11, [x11, _PTF_LEAFDATA@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
Lloh5:
	adrp	x12, _PTF_INTKEY@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PTF_INTKEY@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #1
	stp	w10, w9, [x19, #16]
	ldr	w9, [x8, #16]
	str	w9, [x19, #32]
	add	x9, x8, #12
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _PTF_ZERODATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PTF_ZERODATA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w10, w9
	b.ne	LBB0_5
; %bb.3:
	str	xzr, [x19, #16]
	ldr	w9, [x8, #8]
	str	w9, [x19, #32]
	add	x9, x8, #4
LBB0_4:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x19, #24]
Lloh11:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PTF_LEAF,4,2                   ; @PTF_LEAF
	.comm	_PTF_LEAFDATA,4,2               ; @PTF_LEAFDATA
	.comm	_PTF_INTKEY,4,2                 ; @PTF_INTKEY
	.comm	_PTF_ZERODATA,4,2               ; @PTF_ZERODATA
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_decodeFlags
.subsections_via_symbols
