	.file	"extr_sqlite3.c_countStep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	countStep, @function
countStep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	mov	esi, 16
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sqlite3_aggregate_context@PLT
	mov	rbx, rax
	test	ebp, ebp
	jne	.L2
.L5:
	test	rbx, rbx
	je	.L4
	add	DWORD PTR [rbx], 1
.L6:
	cmp	ebp, 1
	je	.L4
	test	rbx, rbx
	je	.L4
	cmp	QWORD PTR 8[rbx], 0
	je	.L10
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	assert@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[r13]
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ebx, DWORD PTR [rbx]
	mov	rdi, r12
	call	sqlite3_aggregate_count@PLT
	xor	edi, edi
	cmp	ebx, eax
	sete	dil
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	assert@PLT
	.cfi_endproc
.LFE0:
	.size	countStep, .-countStep
	.comm	SQLITE_NULL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_countStep.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	countStep, %function
countStep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r1, #8
	mov	r6, r2
	mov	r7, r0
	bl	sqlite3_aggregate_context
	cmp	r5, #0
	mov	r4, r0
	bne	.L2
.L5:
	cmp	r4, #0
	beq	.L4
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L6:
	cmp	r4, #0
	cmpne	r5, #1
	beq	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L10
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #1
	b	assert
.L2:
	ldr	r0, [r6]
	bl	sqlite3_value_type
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L5
	b	.L6
.L10:
	mov	r0, r7
	ldr	r4, [r4]
	bl	sqlite3_aggregate_count
	sub	r0, r4, r0
	clz	r0, r0
	pop	{r4, r5, r6, r7, r8, lr}
	lsr	r0, r0, #5
	b	assert
.L12:
	.align	2
.L11:
	.word	SQLITE_NULL
	.size	countStep, .-countStep
	.comm	SQLITE_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
