	.file	"extr_sqlite3.c_setChildPtrmaps.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setChildPtrmaps, @function
setChildPtrmaps:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 40[rdi]
	mov	edi, DWORD PTR [r14]
	mov	DWORD PTR 12[rsp], eax
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L16
	mov	eax, DWORD PTR SQLITE_OK[rip]
	mov	DWORD PTR 20[rsp], eax
.L4:
	mov	r13d, DWORD PTR [rbx]
	xor	r15d, r15d
	lea	r12, 20[rsp]
	test	r13d, r13d
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 16[rbx]
	test	edx, edx
	je	.L17
.L7:
	mov	eax, DWORD PTR 20[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	get4byte@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	r8, r12
	mov	rdi, r14
	mov	edx, DWORD PTR PTRMAP_BTREE[rip]
	mov	esi, eax
	call	ptrmapPut@PLT
.L8:
	add	r15d, 1
	cmp	r13d, r15d
	je	.L9
.L5:
	mov	esi, r15d
	mov	rdi, rbx
	call	findCell@PLT
	mov	rdx, r12
	mov	rdi, rbx
	mov	rsi, rax
	mov	rbp, rax
	call	ptrmapPutOvflPtr@PLT
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L8
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbx
	call	btreeInitPage@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	DWORD PTR 20[rsp], eax
	je	.L4
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movsx	rdx, DWORD PTR 4[rbx]
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 32[rax+rdx*4]
	call	get4byte@PLT
	mov	ecx, DWORD PTR 12[rsp]
	lea	r8, 20[rsp]
	mov	rdi, r14
	mov	edx, DWORD PTR PTRMAP_BTREE[rip]
	mov	esi, eax
	call	ptrmapPut@PLT
	jmp	.L7
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setChildPtrmaps, .-setChildPtrmaps
	.comm	SQLITE_OK,4,4
	.comm	PTRMAP_BTREE,4,4
	.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_setChildPtrmaps.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setChildPtrmaps, %function
setChildPtrmaps:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r8, [r0, #20]
	ldr	r3, .L19
	sub	sp, sp, #16
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [r4, #24]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [sp, #8]
.L4:
	ldr	r7, [r4]
	cmp	r7, #0
	movgt	r6, #0
	ldrgt	r10, .L19+8
	bgt	.L5
.L9:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L16
.L7:
	ldr	r0, [sp, #8]
	b	.L1
.L17:
	mov	r0, r5
	bl	get4byte
	add	r3, sp, #8
	mov	r1, r0
	str	r3, [sp]
	mov	r0, r8
	mov	r3, r9
	ldr	r2, [r10]
	bl	ptrmapPut
.L8:
	add	r6, r6, #1
	cmp	r7, r6
	beq	.L9
.L5:
	mov	r1, r6
	mov	r0, r4
	bl	findCell
	add	r2, sp, #8
	mov	r1, r0
	mov	r5, r0
	mov	r0, r4
	bl	ptrmapPutOvflPtr
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L8
	b	.L17
.L15:
	mov	r0, r4
	bl	btreeInitPage
	ldr	r3, .L19+4
	str	r0, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, [r4, #4]
	ldr	r0, [r4, #8]
	add	r3, r3, #8
	add	r0, r0, r3, lsl #2
	bl	get4byte
	ldr	r2, .L19+8
	add	ip, sp, #8
	mov	r1, r0
	ldr	r2, [r2]
	mov	r3, r9
	mov	r0, r8
	str	ip, [sp]
	bl	ptrmapPut
	b	.L7
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	SQLITE_OK
	.word	PTRMAP_BTREE
	.size	setChildPtrmaps, .-setChildPtrmaps
	.comm	SQLITE_OK,4,4
	.comm	PTRMAP_BTREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
