	.file	"extr_sqlite3.c_applyAffinity.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	applyAffinity, @function
applyAffinity:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	eax, BYTE PTR SQLITE_AFF_NUMERIC[rip]
	cmp	al, sil
	jg	.L2
	cmp	BYTE PTR SQLITE_AFF_INTEGER[rip], sil
	mov	edi, 1
	je	.L3
	cmp	BYTE PTR SQLITE_AFF_REAL[rip], sil
	sete	dil
	cmp	al, sil
	sete	al
	or	edi, eax
	movzx	edi, dil
.L3:
	call	assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MEM_Int[rip], eax
	jne	.L1
	test	DWORD PTR MEM_Real[rip], eax
	jne	.L6
	test	DWORD PTR MEM_Str[rip], eax
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	applyNumericAffinity@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	BYTE PTR SQLITE_AFF_TEXT[rip], sil
	jne	.L1
	mov	eax, DWORD PTR MEM_Real[rip]
	mov	r12d, edx
	mov	edx, DWORD PTR MEM_Int[rip]
	mov	edi, DWORD PTR [rdi]
	or	eax, edx
	or	eax, DWORD PTR MEM_IntReal[rip]
	test	DWORD PTR MEM_Str[rip], edi
	jne	.L8
	test	edi, eax
	jne	.L18
.L8:
	not	eax
	and	eax, edi
	mov	DWORD PTR 0[rbp], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sqlite3VdbeIntegerAffinity@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	and	edi, edx
	call	testcase@PLT
	mov	edi, DWORD PTR 0[rbp]
	and	edi, DWORD PTR MEM_Real[rip]
	call	testcase@PLT
	mov	edi, DWORD PTR 0[rbp]
	and	edi, DWORD PTR MEM_IntReal[rip]
	call	testcase@PLT
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, r12d
	call	sqlite3VdbeMemStringify@PLT
	mov	eax, DWORD PTR MEM_IntReal[rip]
	mov	edx, DWORD PTR MEM_Real[rip]
	or	edx, DWORD PTR MEM_Int[rip]
	mov	edi, DWORD PTR 0[rbp]
	or	eax, edx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	applyAffinity, .-applyAffinity
	.comm	SQLITE_AFF_TEXT,1,1
	.comm	SQLITE_AFF_REAL,1,1
	.comm	SQLITE_AFF_NUMERIC,1,1
	.comm	SQLITE_AFF_INTEGER,1,1
	.comm	MEM_Str,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_IntReal,4,4
	.comm	MEM_Int,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_applyAffinity.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	applyAffinity, %function
applyAffinity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L19
	mov	r4, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	sp, sp, #12
	cmp	r3, r1
	bhi	.L2
	ldr	r2, .L19+4
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, r1
	moveq	r0, #1
	beq	.L3
	ldr	r2, .L19+8
	ldrb	r0, [r2]	@ zero_extendqisi2
	cmp	r3, r1
	cmpne	r0, r1
	moveq	r0, #1
	movne	r0, #0
.L3:
	bl	assert
	ldr	r2, .L19+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L1
	ldr	r2, .L19+16
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L6
	ldr	r2, .L19+20
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L1
	mov	r0, r4
	mov	r1, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	applyNumericAffinity
.L2:
	ldr	r3, .L19+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r1
	bne	.L1
	ldr	r1, .L19+20
	ldr	r6, .L19+12
	ldr	r7, .L19+16
	ldr	r5, .L19+28
	ldr	lr, [r1]
	ldr	r0, [r6]
	ldr	r3, [r7]
	ldr	r1, [r4]
	ldr	ip, [r5]
	orr	r3, r0, r3
	tst	r1, lr
	orr	r3, r3, ip
	bne	.L8
	tst	r1, r3
	bne	.L18
.L8:
	bic	r3, r1, r3
	str	r3, [r4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	sqlite3VdbeIntegerAffinity
.L18:
	and	r0, r0, r1
	str	r2, [sp, #4]
	bl	testcase
	ldr	r3, [r7]
	ldr	r0, [r4]
	and	r0, r0, r3
	bl	testcase
	ldr	r3, [r5]
	ldr	r0, [r4]
	and	r0, r0, r3
	bl	testcase
	ldr	r2, [sp, #4]
	mov	r0, r4
	mov	r1, r2
	mov	r2, #1
	bl	sqlite3VdbeMemStringify
	ldr	r3, [r7]
	ldr	r2, [r6]
	ldr	r0, [r5]
	orr	r2, r3, r2
	ldr	r1, [r4]
	orr	r3, r2, r0
	b	.L8
.L20:
	.align	2
.L19:
	.word	SQLITE_AFF_NUMERIC
	.word	SQLITE_AFF_INTEGER
	.word	SQLITE_AFF_REAL
	.word	MEM_Int
	.word	MEM_Real
	.word	MEM_Str
	.word	SQLITE_AFF_TEXT
	.word	MEM_IntReal
	.size	applyAffinity, .-applyAffinity
	.comm	SQLITE_AFF_TEXT,1,1
	.comm	SQLITE_AFF_REAL,1,1
	.comm	SQLITE_AFF_NUMERIC,1,1
	.comm	SQLITE_AFF_INTEGER,1,1
	.comm	MEM_Str,4,4
	.comm	MEM_Real,4,4
	.comm	MEM_IntReal,4,4
	.comm	MEM_Int,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
