	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function computeLimitRegisters
_computeLimitRegisters:                 ## @computeLimitRegisters
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rsi)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %r13
	movq	24(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r14
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	_TK_LIMIT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_assert
	movl	(%r14), %r15d
	incl	%r15d
	movl	%r15d, (%r14)
	movl	%r15d, (%r13)
	movq	%r14, %rdi
	callq	_sqlite3GetVdbe
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%rbx), %rdi
	leaq	-44(%rbp), %rsi
	callq	_sqlite3ExprIsInteger
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	leaq	L_.str(%rip), %rdi
	callq	_VdbeComment
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	js	LBB0_9
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	movq	8(%r13), %r12
	callq	_sqlite3LogEst
	cmpq	%rax, %r12
	movq	%r14, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_9
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_sqlite3LogEst
	movq	%rax, 8(%r13)
	movq	_SF_FixedLimit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sqlite3ExprCode
	movq	_OP_MustBeInt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_sqlite3VdbeAddOp1
	movq	%r12, %rdi
	callq	_VdbeCoverage
	leaq	L_.str(%rip), %rdi
	callq	_VdbeComment
	movq	_OP_IfNot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movq	%r12, %rdi
	callq	_VdbeCoverage
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3VdbeGoto
LBB0_9:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	movq	%r12, %r14
	leal	1(%rbx), %r12d
	movl	%r12d, 16(%r13)
	addl	$2, %ebx
	movl	%ebx, (%rdi)
	movl	%r12d, %edx
	callq	_sqlite3ExprCode
	movq	_OP_MustBeInt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_sqlite3VdbeAddOp1
	movq	%r14, %rdi
	callq	_VdbeCoverage
	leaq	L_.str.1(%rip), %rdi
	callq	_VdbeComment
	movq	_OP_OffsetLimit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_sqlite3VdbeAddOp3
	leaq	L_.str.2(%rip), %rdi
	callq	_VdbeComment
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_LIMIT,8,3                   ## @TK_LIMIT
	.comm	_OP_Integer,4,2                 ## @OP_Integer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LIMIT counter"

	.comm	_SF_FixedLimit,4,2              ## @SF_FixedLimit
	.comm	_OP_MustBeInt,4,2               ## @OP_MustBeInt
	.comm	_OP_IfNot,4,2                   ## @OP_IfNot
L_.str.1:                               ## @.str.1
	.asciz	"OFFSET counter"

	.comm	_OP_OffsetLimit,4,2             ## @OP_OffsetLimit
L_.str.2:                               ## @.str.2
	.asciz	"LIMIT+OFFSET"

	.no_dead_strip	_computeLimitRegisters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function computeLimitRegisters
_computeLimitRegisters:                 ; @computeLimitRegisters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x24, [x1, #24]
	ldr	w8, [x1]
	cmp	w8, #0
	ccmp	x24, #0, #4, eq
	b.eq	LBB0_9
; %bb.1:
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _TK_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TK_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x20]
	add	w19, w8, #1
	str	w19, [x20]
	str	w19, [x21]
	mov	x0, x20
	bl	_sqlite3GetVdbe
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x24, #8]
	add	x1, sp, #12
	bl	_sqlite3ExprIsInteger
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _OP_Integer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OP_Integer@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x22
	mov	x3, x19
	bl	_sqlite3VdbeAddOp2
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VdbeComment
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_10
; %bb.3:
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x23, [x21, #8]
	bl	_sqlite3LogEst
	cmp	x23, x0
	b.le	LBB0_7
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_sqlite3LogEst
	str	x0, [x21, #8]
Lloh8:
	adrp	x8, _SF_FixedLimit@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SF_FixedLimit@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21, #20]
	orr	w8, w9, w8
	str	w8, [x21, #20]
	ldr	x1, [x24, #16]
	cbnz	x1, LBB0_8
	b	LBB0_9
LBB0_6:
	ldr	x1, [x24, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_sqlite3ExprCode
Lloh11:
	adrp	x8, _OP_MustBeInt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_MustBeInt@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_sqlite3VdbeAddOp1
	mov	x0, x22
	bl	_VdbeCoverage
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VdbeComment
Lloh16:
	adrp	x8, _OP_IfNot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OP_IfNot@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	mov	x3, x23
	bl	_sqlite3VdbeAddOp2
	mov	x0, x22
	bl	_VdbeCoverage
LBB0_7:
	ldr	x1, [x24, #16]
	cbz	x1, LBB0_9
LBB0_8:
	ldr	w8, [x20]
	add	w23, w8, #1
	str	w23, [x21, #16]
	add	w21, w8, #2
	str	w21, [x20]
	mov	x0, x20
	mov	x2, x23
	bl	_sqlite3ExprCode
Lloh19:
	adrp	x8, _OP_MustBeInt@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OP_MustBeInt@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_sqlite3VdbeAddOp1
	mov	x0, x22
	bl	_VdbeCoverage
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VdbeComment
Lloh24:
	adrp	x8, _OP_OffsetLimit@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OP_OffsetLimit@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	mov	x3, x21
	mov	x4, x23
	bl	_sqlite3VdbeAddOp3
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_VdbeComment
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x22
	mov	x1, x23
	bl	_sqlite3VdbeGoto
	ldr	x1, [x24, #16]
	cbnz	x1, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_LIMIT,8,3                   ; @TK_LIMIT
	.comm	_OP_Integer,4,2                 ; @OP_Integer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LIMIT counter"

	.comm	_SF_FixedLimit,4,2              ; @SF_FixedLimit
	.comm	_OP_MustBeInt,4,2               ; @OP_MustBeInt
	.comm	_OP_IfNot,4,2                   ; @OP_IfNot
l_.str.1:                               ; @.str.1
	.asciz	"OFFSET counter"

	.comm	_OP_OffsetLimit,4,2             ; @OP_OffsetLimit
l_.str.2:                               ; @.str.2
	.asciz	"LIMIT+OFFSET"

	.no_dead_strip	_computeLimitRegisters
.subsections_via_symbols
