	.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)
	je	LBB0_1
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_sqlite3ExprCacheClear
	cmpl	$0, 20(%rbx)
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	setne	%dil
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
LBB0_4:
	callq	_assert
	cmpl	$0, 24(%rbx)
	je	LBB0_15
## %bb.5:
	movl	(%r12), %r15d
	incl	%r15d
	movl	%r15d, (%r12)
	movl	%r15d, (%rbx)
	movq	%r12, %rdi
	callq	_sqlite3GetVdbe
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_NEVER
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movl	24(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_sqlite3ExprIsInteger
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	leaq	L_.str(%rip), %rdi
	callq	_VdbeComment
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	cvtsi2sd	%eax, %xmm0
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_13
## %bb.10:
	movsd	%xmm0, 8(%rbx)
	jmp	LBB0_13
LBB0_11:
	movl	24(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_sqlite3ExprCode
	movq	_OP_MustBeInt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sqlite3VdbeAddOp1
	leaq	L_.str(%rip), %rdi
	callq	_VdbeComment
	movq	_OP_IfZero@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	jmp	LBB0_12
LBB0_8:
	movq	_OP_Goto@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_12:
	movl	%r13d, %ecx
	callq	_sqlite3VdbeAddOp2
LBB0_13:
	movl	20(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_15
## %bb.14:
	movl	(%r12), %eax
	leal	1(%rax), %r13d
	movl	%r13d, 16(%rbx)
	addl	$2, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r12)
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_sqlite3ExprCode
	movq	_OP_MustBeInt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_sqlite3VdbeAddOp1
	leaq	L_.str.1(%rip), %rdi
	callq	_VdbeComment
	movq	_OP_IfPos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_sqlite3VdbeAddOp1
	movl	%eax, %ebx
	movq	_OP_Integer@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sqlite3VdbeJumpHere
	movq	_OP_Add@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_sqlite3VdbeAddOp3
	leaq	L_.str.2(%rip), %rdi
	callq	_VdbeComment
	movq	_OP_IfPos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sqlite3VdbeAddOp1
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sqlite3VdbeJumpHere
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_Integer,4,2                 ## @OP_Integer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LIMIT counter"

	.comm	_OP_Goto,4,2                    ## @OP_Goto
	.comm	_OP_MustBeInt,4,2               ## @OP_MustBeInt
	.comm	_OP_IfZero,4,2                  ## @OP_IfZero
L_.str.1:                               ## @.str.1
	.asciz	"OFFSET counter"

	.comm	_OP_IfPos,4,2                   ## @OP_IfPos
	.comm	_OP_Add,4,2                     ## @OP_Add
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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_sqlite3ExprCacheClear
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x22, #24]
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	bl	_assert
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_1
; %bb.6:
	ldr	w8, [x21]
	add	w20, w8, #1
	str	w20, [x21]
	str	w20, [x22]
	mov	x0, x21
	bl	_sqlite3GetVdbe
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_NEVER
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	w0, [x22, #24]
	add	x1, sp, #12
	bl	_sqlite3ExprIsInteger
Lloh0:
	adrp	x24, _OP_Integer@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OP_Integer@GOTPAGEOFF]
Lloh2:
	adrp	x25, _OP_MustBeInt@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OP_MustBeInt@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x3, x20
	bl	_sqlite3VdbeAddOp2
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VdbeComment
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_12
; %bb.9:
	ldr	d1, [x22, #8]
	scvtf	d0, w8
	fcmp	d1, d0
	b.le	LBB0_14
; %bb.10:
	str	d0, [x22, #8]
	b	LBB0_14
LBB0_11:
	ldr	w1, [x22, #24]
	mov	x0, x21
	mov	x2, x20
	bl	_sqlite3ExprCode
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_sqlite3VdbeAddOp1
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VdbeComment
Lloh8:
	adrp	x8, _OP_IfZero@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OP_IfZero@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _OP_Goto@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_Goto@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_13:
	mov	x3, x23
	bl	_sqlite3VdbeAddOp2
LBB0_14:
	ldr	w1, [x22, #20]
	cbz	w1, LBB0_1
; %bb.15:
	ldr	w8, [x21]
	add	w23, w8, #1
	str	w23, [x22, #16]
	add	w22, w8, #2
	str	w22, [x21]
	mov	x0, x21
	mov	x2, x23
	bl	_sqlite3ExprCode
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x23
	bl	_sqlite3VdbeAddOp1
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VdbeComment
Lloh16:
	adrp	x25, _OP_IfPos@GOTPAGE
Lloh17:
	ldr	x25, [x25, _OP_IfPos@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x23
	bl	_sqlite3VdbeAddOp1
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x23
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	mov	x1, x21
	bl	_sqlite3VdbeJumpHere
Lloh18:
	adrp	x8, _OP_Add@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OP_Add@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_sqlite3VdbeAddOp3
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_VdbeComment
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_sqlite3VdbeAddOp1
	mov	x20, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #-1
	mov	x3, x22
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3VdbeJumpHere
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_Integer,4,2                 ; @OP_Integer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LIMIT counter"

	.comm	_OP_Goto,4,2                    ; @OP_Goto
	.comm	_OP_MustBeInt,4,2               ; @OP_MustBeInt
	.comm	_OP_IfZero,4,2                  ; @OP_IfZero
l_.str.1:                               ; @.str.1
	.asciz	"OFFSET counter"

	.comm	_OP_IfPos,4,2                   ; @OP_IfPos
	.comm	_OP_Add,4,2                     ; @OP_Add
l_.str.2:                               ; @.str.2
	.asciz	"LIMIT+OFFSET"

	.no_dead_strip	_computeLimitRegisters
.subsections_via_symbols
