	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function groupConcatStep
_groupConcatStep:                       ## @groupConcatStep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leal	-1(%r12), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_assert
	movq	(%r15), %rdi
	callq	_sqlite3_value_type
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_sqlite3_aggregate_context
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sqlite3_context_db_handle
	cmpq	$0, (%r14)
	movq	(%rax), %rax
	movq	_SQLITE_LIMIT_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r14)
	je	LBB0_8
## %bb.3:
	cmpl	$2, %r12d
	jne	LBB0_4
## %bb.5:
	movq	8(%r15), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	callq	_sqlite3_value_bytes
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_4:
	movl	$1, %edx
	leaq	L_.str(%rip), %rbx
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3_str_append
LBB0_8:
	movq	(%r15), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_sqlite3_value_bytes
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_str_append             ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NULL,8,3                ## @SQLITE_NULL
	.comm	_SQLITE_LIMIT_LENGTH,8,3        ## @SQLITE_LIMIT_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

	.no_dead_strip	_groupConcatStep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function groupConcatStep
_groupConcatStep:                       ; @groupConcatStep
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	sub	w8, w1, #1
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	ldr	x0, [x19]
	bl	_sqlite3_value_type
Lloh0:
	adrp	x8, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.1:
	mov	x0, x22
	mov	w1, #8
	bl	_sqlite3_aggregate_context
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	mov	x0, x22
	bl	_sqlite3_context_db_handle
	ldr	x8, [x20]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _SQLITE_LIMIT_LENGTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SQLITE_LIMIT_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	str	x9, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	cmp	w21, #2
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_sqlite3_value_text
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_sqlite3_value_bytes
	cbz	x21, LBB0_8
; %bb.5:
	mov	x2, x0
	b	LBB0_7
LBB0_6:
	mov	w2, #1
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_sqlite3_str_append
LBB0_8:
	ldr	x0, [x19]
	bl	_sqlite3_value_text
	mov	x21, x0
	ldr	x0, [x19]
	bl	_sqlite3_value_bytes
	cbz	x21, LBB0_10
; %bb.9:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	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
	b	_sqlite3_str_append
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NULL,8,3                ; @SQLITE_NULL
	.comm	_SQLITE_LIMIT_LENGTH,8,3        ; @SQLITE_LIMIT_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

	.no_dead_strip	_groupConcatStep
.subsections_via_symbols
