	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function withDup
_withDup:                               ## @withDup
	.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
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %eax
	leal	(%rax,%rax,2), %eax
	leal	4(,%rax,4), %esi
	callq	_sqlite3DbMallocZero
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	%eax, (%r14)
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	8(%rax,%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_sqlite3SelectDup
	movq	8(%r14), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movq	8(%r12), %rax
	movl	4(%rax,%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_sqlite3ExprListDup
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %esi
	movq	%r15, %rdi
	callq	_sqlite3DbStrDup
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx)
	incq	%r13
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_withDup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function withDup
_withDup:                               ; @withDup
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	mov	w9, #12
	orr	w10, wzr, #0x4
	madd	w1, w8, w9, w10
	bl	_sqlite3DbMallocZero
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	str	w8, [x21]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_sqlite3SelectDup
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	str	w0, [x8, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	w2, #0
	bl	_sqlite3ExprListDup
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	str	w0, [x8, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_sqlite3DbStrDup
	ldr	x8, [x21, #8]
	str	w0, [x8, x22]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #12
	cmp	x23, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_withDup
.subsections_via_symbols
