	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whereClauseInsert
_whereClauseInsert:                     ## @whereClauseInsert
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_TERM_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%edx, %edi
	callq	_testcase
	movq	(%r15), %r12
	movq	8(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_8
## %bb.1:
	movq	16(%r15), %r12
	movq	32(%r15), %rcx
	movq	(%rcx), %r13
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	movq	%r13, %rdi
	callq	_sqlite3DbMallocRaw
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	(%r15), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %edx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	cmpq	24(%r15), %r12
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sqlite3DbFree
LBB0_7:
	movq	16(%r15), %rsi
	movq	%r13, %rdi
	callq	_sqlite3DbMallocSize
	cltq
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	movq	%rdx, 8(%r15)
	movq	(%r15), %r12
LBB0_8:
	movq	%rbx, %rdi
	movq	16(%r15), %rbx
	leaq	1(%r12), %rax
	movq	%rax, (%r15)
	movslq	%r12d, %r13
	callq	_sqlite3ExprSkipCollate
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movl	%eax, 16(%rbx,%rcx,8)
	movl	%r14d, (%rbx,%rcx,8)
	movq	%r15, 8(%rbx,%rcx,8)
	movl	$-1, 4(%rbx,%rcx,8)
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_TERM_DYNAMIC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3ExprDelete
LBB0_4:
	movq	%r12, 16(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TERM_VIRTUAL,4,2               ## @TERM_VIRTUAL
	.comm	_TERM_DYNAMIC,4,2               ## @TERM_DYNAMIC
	.no_dead_strip	_whereClauseInsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whereClauseInsert
_whereClauseInsert:                     ; @whereClauseInsert
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TERM_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TERM_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w2
	bl	_testcase
	ldp	x23, x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_5
; %bb.1:
	ldr	x22, [x19, #16]
	ldr	x9, [x19, #32]
	ldr	x23, [x9]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #4
	mov	x0, x23
	bl	_sqlite3DbMallocRaw
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x19, #24]
	cmp	x22, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	_sqlite3DbFree
LBB0_4:
	ldr	x1, [x19, #16]
	mov	x0, x23
	bl	_sqlite3DbMallocSize
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	lsr	x8, x8, #4
	str	x8, [x19, #8]
	ldr	x23, [x19]
LBB0_5:
	ldr	x22, [x19, #16]
	add	x8, x23, #1
	str	x8, [x19]
	mov	x0, x21
	bl	_sqlite3ExprSkipCollate
	mov	w8, #24
	smaddl	x8, w23, w8, x22
	str	w0, [x8, #16]
	str	x19, [x8, #8]
	mov	w9, #-1
	stp	w20, w9, [x8]
LBB0_6:
	mov	x0, x23
	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
LBB0_7:
Lloh3:
	adrp	x8, _TERM_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TERM_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	bl	_sqlite3ExprDelete
LBB0_9:
	mov	w23, #0
	str	x22, [x19, #16]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TERM_VIRTUAL,4,2               ; @TERM_VIRTUAL
	.comm	_TERM_DYNAMIC,4,2               ; @TERM_DYNAMIC
	.no_dead_strip	_whereClauseInsert
.subsections_via_symbols
